Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    Flash




Absolute Positioning Flash Object



Can a flash object be absolutely or relatively positioned in html page? Can I use z-index with it?



SitePoint > Design Your Site > Flash and Actionscript
Posted on: Dec 28, 2006, 03:09


View Complete Forum Thread with Replies

See Related Forum Messages: Follow the Links Below to View Complete Thread

Absolute Positioning With Flash..
a la; http://www.notsosimpleton.com/2005/

i'd like to get certain elements in my flash movie to keep their position (i.e., against the right side of the screen) regardless of screen size/window resizing..

mind is blank.
paint me a picture.

Absolute Positioning Of A Swf
I am trying to position an swf movie over the html/php pages.
It doesn't work in some IE version 6.0.xxx (on XP professional). It does work on other IE6 browsers.

This area is probably giving me problems:
<OBJECT ID="flash_obj" STYLE="z-index:1; position:absolute; left:123; top:18" classid="clsid27CDB6E-AE6D-11cf-96B8-444553540000"


Here is an example of my code:

<SCRIPT LANGUAGE=JavaScript type="text/javascript">
<!--
var plugin = 0;
if (navigator.mimeTypes && navigator.mimeTypes["application/x-shockwave-flash"] && navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin) {
if (navigator.plugins && navigator.plugins["Shockwave Flash"])
plugin = 1;
}
else if (navigator.userAgent && navigator.userAgent.indexOf("MSIE")>=0
&& (navigator.userAgent.indexOf("Windows 95")>=0 || navigator.userAgent.indexOf("Windows 98")>=0 || navigator.userAgent.indexOf("Windows NT")>=0)) {
document.write('<SCRIPT LANGUAGE=VBScript>
');
document.write('on error resume next
');
document.write('plugin = ( IsObject(CreateObject("ShockwaveFlash.ShockwaveFla sh.3")))
');
document.write('if ( plugin <= 0 ) then plugin = ( IsObject(CreateObject("ShockwaveFlash.ShockwaveFla sh.4")))
');
document.write('if ( plugin <= 0 ) then plugin = ( IsObject(CreateObject("ShockwaveFlash.ShockwaveFla sh.5")))
');
document.write('if ( plugin <= 0 ) then plugin = ( IsObject(CreateObject("ShockwaveFlash.ShockwaveFla sh.6")))
');
document.write('</SCRIPT>
');
}
if ( plugin ) {
document.write('<OBJECT ID="flash_obj" STYLE="z-index:1; position:absolute; left:123; top:18" classid="clsid27CDB6E-AE6D-11cf-96B8-444553540000"');
document.write(' codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0"');
document.write(' WIDTH="677" HEIGHT="439" id="attbi_showcase2" ALIGN="">');
document.write(' <PARAM NAME=movie VALUE="http://shop.pittsburghlive.com/banners/attbishowcase2/attbi_showcase2.swf"> <PARAM NAME=quality VALUE=high> <PARAM NAME=wmode VALUE=transparent> <PARAM NAME=bgcolor VALUE=#FFFFFF>');
document.write('<EMBED src="http://shop.pittsburghlive.com/banners/attbishowcase2/attbi_showcase2.swf" quality=high bgcolor=#FFFFFF');
document.write(' WIDTH="677" HEIGHT="439"');
document.write(' TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer">');
document.write('</EMBED>');
document.write('</OBJECT>');
} else if (!(navigator.appName && navigator.appName.indexOf("Netscape")>=0 && navigator.appVersion.indexOf("2.")>=0)){
document.write(' ');
}
//-->
</SCRIPT>
<NOEMBED> </NOEMBED>
<NOSCRIPT> </NOSCRIPT>

Absolute Positioning
I need to make a full screen website were elements are placed in the upper right corner, lower left corner etc..

exactly like this website: http://thunderdome.com/

how do position elements that way?

I tried so far to use action script to position a movieclip on 0,0. but all it does is to position in the top left corner of the stage, and not the whole window:

test._x = 0;
test._y = 0;

is there a script that position it relative to the window and not the stage..?

I'm fairly new to flash btw, so please bear with me..

Absolute Positioning.
I am looking for a tutorial on Absolute Positioning in Flash. I have noticed a ton of sites where something will stay in a spacific area.

For instance in my new site, i am looking to give credit to people who have helped me. I want it to be a hitTest area that stays on the bottom of the screen no matter how large or small the movie gets with a limit on the small side so it stops getting smaller when the screen is smaller than 800 x 600. This way the movie clip will expand depending upon the users screen size but the content of the hidden area will stay the same size so it does not distort. I think Solenior(sp) did this and maybe a few others.

If someone knows how to do this or could point me in the right direction that would be very helpful...I am looking to learn the actions script behind it not just a "here you go" type of deal...I want to really learn AS not just copy and paste it.

Absolute Positioning And Hierarchies - Help
OK Flashers. Someone enlighten me on this problem, please...

I'm trying to orient several small MCs to anchor points on a larger MC which is designed to rotate like a wheel. The catch is that I want the back (anchor) movie clip to rotate around while the small movies remain upright. Like the cars on a ferris wheel (if that helps you visualize).

I've tried setting absolute variables which are set frame-by-frame (hidden MC) to the XY co-ords of the anchor points on the "wheel" but my problem is that while they "cars" track the X-Y if the anchor clip is moved or dragged, they do NOT track rotation of the background MC. This is because the anchor points track their position in relation to their embedded movie and NOT the main movie.

My question is this: Is there any way to define a MC in relation to the stage as VS its parent movie? Or, failing that - any way to link anchors so I can track the relative movement of a rotating MC?

Any help would be appreciated!

MAJOR ISSUE With Absolute Positioning
Please Help

I am constantly getting IEXPLORER.EXE Application Errors on pages that contain my embeded SWF files. I have a drop down menu I created in Flash MX and another embed movie running on the same page. The problem is that I had to use FrontPage to give them absolute postioning and Z- orders so the menu drops over the HTML and other embeded SWF file. When clicking a link to go to this page form the Flash menu, I get the IEXPLORER.EXE Application Error. If I do not use Absolute postioning, then I do not get the error.

I have to be able to use Absolute position thouh...please help. I have tried everything I know and nothing is working.

Thank you,
Ynygma

Zoom Detect Or Absolute Positioning
Is it possible to have a floating control bar?

In other words, let say there is an image in the BG and in the foreground is the navigation controls, if the user right clicks and choose to zoom in, the picture in the BG zooms in but the navigation controls remain the same size and at the same position. Can I do this within one self-contained movie file?

Thanks for your wisdom,
Dustbunny

Positioning Bg Image To Absolute Middle Of Stage?
hey peeps, im trying to achieve a Full Browser Flash and i want my bgimage to remain in the centre of the stage whilst other objects move round it depending on mouse movements but how would i go about centering the bgimage through AS??

Ralative Positioning A Flash Object
Hi there.
I'm having a problem with positioning a flash object in my site.
The flash object is sitting inside a div element with a relative position. The problem is the flash object is sometimes placed inside the div and sometimes align to the left end of the browser. I think it gut something to do with the swf file loading duration (maybe loaded after the page is already displayed.
You can see an example here:
http://ledesign.co.il/?q=he/node/36
comparing to this
http://ledesign.co.il/?q=en/node/33
Have someone experience this kind of troubles before ? Any ideas how to fix that issue ?

HELP Need To Retrieve Absolute Path To An Object...
Hello all

I need to retrieve a string with the absolute path to an object.

Lets say i have an instance

myObj = new Object();

then, i want to know the absolute path to myObj...
how can I do that?
I need a string with the absolute path (i.e. "_level2.myObj") to pass it to a host application with FSCommand, but I canīt find a way....

please heeeeeeeeeeelp!!!!!!

Placing A Movie Or Any Object On Absolute Top.
This has to be a very simple thing to do but I can't figure it out.

When summoning a movie object.... how do I force it so that it is always on top (of everything like as if it is a popupmenu)? Is there an action script I can add so that it does this?

Currently, when I attach a movie from a different timeline... only those things on that time line are below the movie. Objects from a different time line remain on top of this movie object obstructing my view.

Any ideas to remedy this problem?

Thank you for the help.

MX: Retrieve The Absolute Path To An Object Variable...
Hello,

i cannot see a way to obtain a stirng with the absolute path to a variable...

If i go like:

myObj = new Object();
myObj.myVar = "Hello";

then, i would like to retrieve the full absolute path to the variable myVar. I know I could simply type "_root.myObj.myVar" But I am building a Class which must find the absolute path by itself....
And it must be a string because i have to send it to a host application via a FSCommand.

If i go with "myObj.toString()" I only get the datatype of the object...

For a MovieClip itīs ok to use the "myMovieClip._target"
but i cannot find anything similar for an Object or a variable....

Got any idea?

thanks
Pippo

Determining The Absolute Coordinates Of An Object Within Nested Movie Clips?
...when I say absolute location I mean with reference to the stage with (0,0) at the top left. Using ._x and ._y only return relative coordinates.

Is there any easy way to do this?


Thanks anyone,
I'm pulling my hair out over this one.

Aidan

Positioning LoadMovieNum Object
Hi..

I have this problem where I should place the loaded video to a flash movie to a particular place. I have the line

loadMovieNum ("AnalogClock_4.swf", 1); and it works but it's located in the top-left corner.

How can I set the coordinates to that swf object?

thx

Browser Resize And Object Positioning
I'm currently attempting to make a function that repositions all my display objects on the screen anytime the user resizes the browser. At the moment I only have two objects created, a .FLV and a .PNG

I'm using BulkLoader for all my loading needs. My dilemma is this:

The .FLV repositions as intended perfectly when the browser is resized, but the .PNG will not reposition from it's original coordinates. I receive no errors when I debug. Any thoughts?


Code:
package port {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.net.*;
import br.com.stimuli.loading.*;
import caurina.transitions.*;

public class Portfolio extends MovieClip {

var loader : BulkLoader = new BulkLoader("main-site");
var bgVideo : Video = new Video(737, 600);
var rememberIcon : Bitmap = new Bitmap();

public function Portfolio() {
stage.align = StageAlign.TOP_LEFT;
stage.scaleMode = StageScaleMode.NO_SCALE;
this.stage.addEventListener(Event.RESIZE, resizeHandler);

loader.add("background.flv", {type:"video", pausedAtStart:true});
loader.add("iconRemember.png", {id:"remember"});
loader.addEventListener(BulkLoader.COMPLETE, allLoaded);
loader.start();
}

public function allLoaded(e:Event):void {
bgVideo.x = (stage.stageWidth / 2) - (bgVideo.width / 2);
bgVideo.y = (stage.stageHeight / 2) - (bgVideo.height / 2);
var bgNS:NetStream = loader.getNetStream("background.flv");
bgVideo.attachNetStream(bgNS);
bgVideo.smoothing = true;
addChild(bgVideo);
bgNS.resume();

var rememberIcon : Bitmap = loader.getBitmap("remember")
rememberIcon.x = (stage.stageWidth / 2) - (rememberIcon.width / 2);
rememberIcon.y = (stage.stageHeight / 2) - (rememberIcon.height / 2);
addChild(rememberIcon);
}

public function resizeHandler(event:Event):void {
bgVideo.x = (stage.stageWidth / 2) - (bgVideo.width / 2);
bgVideo.y = (stage.stageHeight / 2) - (bgVideo.height / 2);
rememberIcon.x = (stage.stageWidth / 2) - (rememberIcon.width / 2);
rememberIcon.y = (stage.stageHeight / 2) - (rememberIcon.height / 2);
}
}
}

Choosing The Point For Object Positioning?
Hello

In the property of each object, I can set the X and Y position.
This coordinate seems to be for the upper_left corner of the object.
Is it possible to apply the X and Y position to the bottom right corner (for example) ?

Thanks

gz

Intervals Using Relative Object Positioning?
Hey guys check this code out:


ActionScript Code:
function moveClip() {  if (myClip_mc._x < 400) {    // the _x value is less than 400, so increase _x by 1px,    // and let setInterval execute this function again    myClip_mc._x += 1; // move the clip 1 px to the right  } else {    // the _x value is greater than 400,     // so stop the setInterval from executing anymore    clearInterval(myInterval);  } // end "if myClip_mc._x < 400"  } // end moveClip()// do this when "myButton_btn" is clickedmyButton_btn.onPress = function() {  // execute the "moveClip" function every 10 milliseconds  myInterval = setInterval(moveClip, 5);} // end myButton_btn.onPress()  


I was wondering, is there a way to change if (myClip_mc._x < 400) { to a relative position of myClip_mc.
I mean, i want myClip_mc to move 100px from it's current position everytime the button is clicked. Instead of only moving it
if it's x position is less than 400.
So it needs to somehow check it's current position everytime the button is clicked and then make it shift from that position.

I know this is a long winded way of doing it but i want it this way so i can use it for something different.

Any ideas?

Browser Resize And Object Positioning
I'm currently attempting to make a function that repositions all my display objects on the screen anytime the user resizes the browser. At the moment I only have two objects created, a .FLV and a .PNG

I'm using BulkLoader for all my loading needs. My dilemma is this:

The .FLV repositions as intended perfectly when the browser is resized, but the .PNG will not reposition from it's original coordinates. I receive no errors when I debug. Any thoughts?

Code:

package port {
   import flash.display.*;
   import flash.events.*;
   import flash.media.*;
   import flash.net.*;
   import br.com.stimuli.loading.*;
   import caurina.transitions.*;
   
   public class Portfolio extends MovieClip {
      
      var loader : BulkLoader = new BulkLoader("main-site");
      var bgVideo  : Video = new Video(737, 600);
      var rememberIcon : Bitmap = new Bitmap();
      
      public function Portfolio() {
         stage.align = StageAlign.TOP_LEFT;
         stage.scaleMode = StageScaleMode.NO_SCALE;
         this.stage.addEventListener(Event.RESIZE, resizeHandler);
         
         loader.add("background.flv", {type:"video", pausedAtStart:true});
         loader.add("iconRemember.png", {id:"remember"});
         loader.addEventListener(BulkLoader.COMPLETE, allLoaded);
         loader.start();
      }
      
      public function allLoaded(e:Event):void {
         bgVideo.x = (stage.stageWidth / 2) - (bgVideo.width / 2);
         bgVideo.y = (stage.stageHeight / 2) - (bgVideo.height / 2);
         var bgNS:NetStream = loader.getNetStream("background.flv");
         bgVideo.attachNetStream(bgNS);
         bgVideo.smoothing = true;
         addChild(bgVideo);
         bgNS.resume();
         
         var rememberIcon : Bitmap = loader.getBitmap("remember")
         rememberIcon.x = (stage.stageWidth / 2) - (rememberIcon.width / 2);
         rememberIcon.y = (stage.stageHeight / 2) - (rememberIcon.height / 2);
         addChild(rememberIcon);
      }
      
      public function resizeHandler(event:Event):void {     
         bgVideo.x = (stage.stageWidth / 2) - (bgVideo.width / 2);
         bgVideo.y = (stage.stageHeight / 2) - (bgVideo.height / 2);
         rememberIcon.x = (stage.stageWidth / 2) - (rememberIcon.width / 2);
         rememberIcon.y = (stage.stageHeight / 2) - (rememberIcon.height / 2);
      }
   }
}

Stage Object Movie Positioning In Corner
hello,

does anyone have any advice on this. I am trying to make it so that when a fullscreen movie loads a movie clip is positioned in the top left corner of the full screen flash site.
This code is on the first frame of my flash movie.

It works when i resize the window but not when the movie loads for the first time in an existing window. meaning some poeple cannot see the menu bar .
does this code work on all browsers?

ActionScript Code:
fscommand("allowscale", "false");
Stage.scaleMode = "showALL";
Stage.originalWidth = Stage.Width;
Stage.originalHeight = Stage.Height;
Stage.scaleMode = "noScale";
Stage.getLeft = function() {
    return -1*(this.width-this.originalWidth)/2;
};
Stage.getTop = function() {
    return -1*(this.height-this.originalHeight)/2;
};
Stage.addListener(titleblocknav);
Stage.addListener(preloader);
titleblocknav.onResize = function() {
    this._x = Stage.getLeft()+50;
    this._y = Stage.getTop()+25;
};
preloader.onResize = function() {
    this._x = Stage.getLeft()+330;
    this._y = Stage.getTop()+48;
};

can anyone spot any mistakes?

Thanks

Michael

Positioning Objects, And Object Registration Coordinates.
Thanks for taking the time to read my query.

Here's my problem...

I import png's to my library, and align everything in place where I desire it to be on the mainstage. Next, I distribute each object to it's own respective layer - each object maintaining it's respective X and Y coordinates. I then create a new movie clip, cutting the objects and from the main-stage area, pasting them into the new movie clip. Once I setup my tweening, alpha level etc, I have a perfectly working movie clip that I then place in a single frame of the timeline on the mainstage area.

However, when I preview the animation, the movie clip inside the single frame of the main timeline is not positioned in the center of the stage, but elsewhere resulting in the movie being clipped.

Logically, it would make sense that the original alignment established in setting up the main stage would remain consistent when cut and pasted "in place" to a new movieclip, sadly that's not the case. Instead of the boundaries of the main stage remaining visible when editing a movie, they disappear and the positional coordinates of the content become subjective (or so it appears).

I really have no idea how to fully explain it, but it seems like flash wasn't designed to have things done in a logical manner, but adheres to a system that has become familiar over time, which requires the users to learn to adapt to that system. There seems to be virtually no documentation that I've been able to find that explains the details of "registration" in a clear and concise manner.

Any helps would be great appreciated.

Thanks.

Absolute Noob To Flash
Somebody please help me. For some reason unbeknownst to me, I can't seem to animate a person properly. I don't really know how to be specific as I am a newb at flash, but I can say that I've read many a million flash tutorials all around the net, and I can't seem to find anything that I understand. I have had flash for months, and I just don't get it. I can say that the tutorials I've read about animation are little to none, but they do point out that I have to have each limb in a layer, and a symbol. The problem is, that when I go to the playhead and test it out, I get the same result: the limbs appear to move off of the torso, and aren't attached to the torso at all. It looks really bad, I don't know where to post this, as I just joined the forums yesterday, but any help would be appreciated. Please someone tell me, how to animate using tween animation, because when I do it, I get the same result, the god forsaken dotted line. Somebody help. Thanks.

Any Flash 5 Tutorials For The Absolute Beginner?
I've tried my darndest to make something, ANYTHING with flash, but I can't even edit the examples that come with the program! I looked on this site and I couldn't find any tutorials that explained exactly what symbols, groups, etc. represent, and I can't even finish Macromedia's button tutorial because I can't edit anything in the Actions window. As if this weren't distressing enough, I spend half my day on a computer, and I'm an experienced programmer. I've never seen anything so user-unfriendly!

Positioning An Object With The "info" Panel
Hey y'all!

I have a problem with positioning an object in the upper left corner (x=0 and y=0) of the stage.

When I do this using the "info" panel, the object, instead of going to the upper left corner of the stage, will place itself in the exact middle of the stage.

Does any one know why this is and how I can solve it? Is there a way to solve it using ActionScript?

Thanx,
Maurits

Positioning An Object With The "info" Panel
Hey y'all!

I have a problem with positioning an object in the upper left corner (x=0 and y=0) of the stage.

When I do this using the "info" panel, the object, instead of going to the upper left corner of the stage, will place itself in the exact middle of the stage.

Does any one know why this is and how I can solve it? Is there a way to solve it using ActionScript?

Thanx,
Maurits

Flash Game Absolute Beginner Where To Start?
i am an absolute beginner to flash. i have made some half finished games in game maker, but nothing impressive. want to start making games in flash, but the flash authoring tool is very hard for me to understand. things like frames and stuff like that, don't seem to be aimed at game developers. i know flash is for alot more than games.
i have searched on the net, but couldn't find any, real absolute beginner tutorials. i need to understand the authoring tool interface, understand what frames, and symbols etc are for and how to think of them, and how they work. and i need to know some basics of the programming language. i kinda get the idea of object based programming, but only a little bit.

also i'd like to know if there's alist of built-in functions of the programming language.
also what authoring tool is the best for games, in flash (opposed to movies etc);
it would really help if someone could give me some direction.

thanks.

Absolute Links To Parts Of Flash Site
This is basically similar to a "back" button functionality in a flash site. But what we really want our site to do, is to be able to assign webaddresses to parts of our flash site. That way, Flash can read in the variables and then tell the flash program to animate to that portion of the site.

Right now our site is:
www.haleypro.com

We would like to be able to say:
www.haleypro.com/?page=studiotour
Then, if someone goes to that link, the flash site will load, with the variable set, and the animation will immediately trigger to the studio tour part of our site.

Now, we already have a system that allows us to pick pages out of our site. I was just not really sure how we should setup the variable read ins. Should it be a function that checks for the variable's value, if not equal to undefined then tell it to animate? We are using ASP for our database structure of our site. Thanks in advance for any answers given.

How Do I...Do Absolute Center Alignment For A Flash Document In Dreamweaver?
I'm trying to get my flash document in the absolute middle of the page, meaning in the middle horizontally and vertically. I'm working in Flash 8, and the publish settings are set to middle alignment vertically and horizontally, but the problem is that once I bring it into Dreamweaver to upload, when I view it in a browser, the Flash doc sits at the top middle of the page, rather than the center.

Pretty simple question, help!

thanks!

www.maryelise.com
www.forthemodernman.com
www.shop-modern.com

Positioning A Pop-up In Flash
I have a site with multiple pop-ups containing information, forms,etc... right now the pop-ups come up in the exact center of the stage... but I'd like them to be in the upper right. How do I do that?

Here's what I have to bring up the pop-ups now:

on (release) {
_root.popup_pressed = 1;
_root.scrHEIGHT = 280;
_root.scroller.scroller.gotoAndStop(2);
_root.TM_title = "Horse Trails Survey";
_root.READ = 1;
_root.scroller.gotoAndPlay("s1");
}

PLS HELP POSITIONING THE FLASH MC
Hello guys!!!
Check this: http://www.inwww.ltd.uk/final/main_mc.html

How are the margins on your computer?
On mine in the left and in the right is about 5 milimiters with red....but on my collegues there are no red margins and the flash_mc is not all visible...(at me there are 5mm of red and on them 5mm from the flash_mc it's not visible......left and right).

How can i fix this?

Regards,


http://www.inwww.ltd.uk



Positioning My 'pop-up' Flash Window?
I am at a loss how to make my 'new window' created from the index page centre to my/the screen (or how iI would give it exact position commands??) I have an 'index' page that has a 'get url' command which sizes the new window to fit the shape of the swf file i created - but often it positions it half on half of the screen?

Please can anyone advise me on what I have missed - thanks

Furrball

Aligning And Positioning In Flash
I'm doing a site in flash and I've encountered a strange thing. I want to acurately place an item on the stage but when I type in the position I want in for the X or Y in the info palate, Flash changes it. Like if I type in 30 flash changes it to 29.8, no matter what. But if I type in 29.8 for both items, when I render the movie the items are not aligned.

I can not use the align palate for this because it is a whole grid I am creating so if I align one row or column then another wont be aligned. Can anyone help?
Thanks,

Flash Websites Positioning
hi everyone

got an idea, and would like to know your opinion if it's worth trying (as I'm not sure if it is possible and how to do it

so.. Google has already started to index flash sites using the text inside the .swf files but.. it doesn't index the site but a single flash file and the link leads to this .swf file not the website.. the effect of such a link could be dissapointing

so maybe the .swf could check if it is opened in it's native site and if not then re-open the whole website in the current browser window..

and now are the two basic questions:
1. does it make any sense?
2. if yes how to do it?

will be really greatfull for any ideas and opinions

Positioning Buttons In Flash With AS3
My level of AS3 understanding: beginner (I am not a programmer, never used AS1 or AS2).

I am building a photo slide show Flash website from scratch and I am starting with the button. I am learning AS3 and Flash in the process and I am stuck at the beginning.

I created a custom button (actually 2) using this tutorial:
http://www.youtube.com/watch?v=hMzhJOCY6ik

(Now, I realize I could have used AS3 to create the button(s), however I decided not to at this point.)

Like that tutorial, the button embeds several movie clips and works exactly as I want it to: animated roll over and click.

What I want to do next is to create something similar to the YouTube (or other) movie player with just one button (not the entire bar at the bottom, just the animated full screen button).

1. Click on the button (let's call it A) and go full screen
2. On full screen button A turns into button B (and vice versa on Normal screen, just like the full screen button on YouTube)
3. Button A/B positions itself always in the same location onto the stage, no matter what the size of the browser is (that is some specific distance from the bottom right corner)
3. The size of the button remains the same while the size of the photo slide (when that is created) scales with the stage which is the same size of the browser window (or full screen, with cropping). Similar to a direct YouTube link:
http://www.youtube.com/v/hMzhJOCY6ik&hl=en

Now, I know this is the easiest part of the site, the slide show will be the hardest, but I am having difficulty in finding a good tutorial that teaches me this with some clean and simple AS3 code.

All I know at this point is that I create a package, import some classes, create classes, functions and variables. I get the general idea and I can create a logical flow. I still do not quite understand the syntax.

Are there any tutorials out there that can help me with this?

I can just start with positioning one of the buttons on the stage, I think that should be enough code for me to digest.

I want to understand this not just copy and paste...

Thanks.

Flash Movies And CSS Positioning
Is there any css tricks to get a flash movie to butt up tightly to the upper left hand corners? I can sort of get it to work in Netscape and Foxfire. IE is stubborn though. Has anyone done this before?

Thanks

Flash Resizing And Re-positioning
I have a flash app located at

http://www.triniscene.com/tsv7/galleries/?page=flash

now I want the flash dimensions to set to any reasonable size dimension in the HTML...while the movie adapts to the Stage dimensions. The problem I am having seems to be a browser issue. While in IE the movie takes the upper left hand side...it doesn't in FF...

I have the stage set to Stage.scaleMode = 'noScale'; and then set the _x and _y to 0...

what is the issue with FF here and is there any work around?

Positioning External SWF In Flash
I'm having a lot of trouble doing a simple positioning of an external SWF with AS3. I have a timeline animation that this external file plays in. It works but I can't get it to play in the right position.
Thanks for any help you can give!

The code I'm using is as follows. I tried:
thisLoader.x = 500
thisLoader.y = 500

but it has no effect...







Attach Code

// Part I -- Loading an external swf file and casting it as a useable movie clip

var thisMovieClip:MovieClip;

var thisLoader:Loader = new Loader();
thisLoader.contentLoaderInfo.addEventListener(Event.INIT, doneLoading);
thisLoader.load( new URLRequest("OBRotation.swf") );
thisLoader.x = 500
thisLoader.y = 500

function doneLoading(evt:Event):void {
thisMovieClip = MovieClip(thisLoader.content);
stage.addChild(thisMovieClip);

thisMovieClip.stop();
}

Positioning Text In Flash
guys - im a bit wet behind the ears so please have mercy.

im working on positioning text so that it comes out crisp and clean. is the only way of doing this letter by letter? it seems so cumbersome, i bet there must be some tricks or shortcuts?

but then, unless i "break apart" the letters and do them individually, a few always end up blurred.

thoughts?

any help would be fantastic.
anrick...

Positioning Flash Movie In A <div>
Hi all,

I want to place my .swf in the header of my CMS Page. But I'm having trouble positioning it in Intenet Explorer. I want it to show be vertical aligned at the bottom of a div.

This is the code I tried:


Code:
<div valign="bottom">
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="370" height="41" id="Header" align="bottom">
<param name="allowScriptAccess" value="sameDomain" />
<param name="movie" value="header.swf" />
<param name="quality" value="high" />
<param name="bgcolor" value="#144787" />
<embed src="header.swf" quality="high" bgcolor="#144787" width="370" height="41" align="bottom" name="header" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
</object>
</div>
Can anyone point me in the right direction?

Apologies if I posted in the wrong forum....

Regards
Beuvema

[Flash 8] DuplicateMovieClip Positioning
I am having a problem that seems similar to the one shown here: http://www.kirupa.com/forum/showthread.php?t=215026

The Scenario: I started trying to learn Flash last week, and I feel like I've covered most of the basics. Pushing forward, I've been giving myself little tasks that I'll eventually combine into a larger project. Right now, I want to mouseover an object, and have a number of movie clips appear in a circle around it. So far, I have a test object to hover over, and a test clip to duplicate.

The Code: I only want this to happen once, so I'm using a global variable to determine if it's already happened, which is set to 0 when the swf loads. The Actionscript is on the icon clip.


ActionScript Code:
this.onRollOver= function(){    if (circleMade == 0) {// Number of clips to duplicate        var nItems = 5;// Radius of circle        var circleRad = 45;        for (i=0;i<5;i++){           var currentMenuButton = "roundMenuButton" + i;           duplicateMovieClip (_root.roundMenuButton, currentMenuButton, _root.getNextHighestDepth());// Determine angle of rotation for current clip           var nAngle = ( 360 / nItems ) * (1 + i);// Set X and Y based on rotation and radius           var nX = circleRad * Math.cos(nAngle);           var nY = circleRad * Math.sin(nAngle);           currentMenuButton._x =  nX;           currentMenuButton._y =  nY;        }    }    else {}    _global.circleMade = 1;}}


The Problem: As you can see here (http://www.fishspeaker.com/motion/flashtest/index3.html), hovering over the center icon seems to do nothing . . . but wait! The small silver ball is indeed being duplicated, just in place. Checking the debug Object List confirms this - what am I doing wrong with the positioning?

Feel free to ignore the window that pops up when the icon is clicked - that's another project entirely.

Positioning And Scalling In Flash 8
hi i'm creating a flash 8 website i have set a basic structure so far but when i view the site in a browser i cant get the stage of the website in the centre i have tried Stage.scaleMode = "noscale";
but cant get it to work can anyone help?

Positioning Objects On Flash
Hi,

How can i positioning a image on flash just like FWA Awards that many websites put on the corner left or Right. That when we change the size of the window the imagem still on corner left.

Images that i would like to positioning on a swf, 100% size, in html.

For example, this website have a bar on top and other on the bottom:

http://bowenstudios.com/

Thank you!

Positioning Text In Flash
guys - im a bit wet behind the ears so please have mercy.

im working on positioning text so that it comes out crisp and clean. is the only way of doing this letter by letter? it seems so cumbersome, i bet there must be some tricks or shortcuts?

but then, unless i "break apart" the letters and do them individually, a few always end up blurred.

thoughts?

any help would be fantastic.
anrick...

Positioning Problems In Flash
Hi!

I don't know if I'm just plain stupid or if there are more people out there that have the same trouble I used to have with positioning mc's in flash, but I have now just discovered the solution!

I am talking about the difference in Flash between positions the Flash GUI uses and those used by ActionScript. Positioning in ActionScript doesn't always use the same coordinates as the GUI does, but as I said, I've found the solution (finally!):
When you select the mc and open the 'info' window, you see the x and y positions on the right and to the left of this (in the middle of the window) there is a small array of squares... which are clickable. These let you select the corner of the mc to use in setting the position. By selecting the top left square it will always use the top left corner, even when the origin of the mc sits in the middle!

Again, I'm risking my reputation here , but I gladly do so to make sure everyone knows about this, 'cause it's been driving me crazy for years!

I hope this information will also help someone alse out there...

Z-Index Positioning Flash
Hey,

This is either going to be a simple question, or a really ugly one ; )

I'm short on space in this project I'm working on, and I want to dynamically render a absolute positioned DIV on top of a flash 5 movie.  

I've got the DIV, I've got the movie, but I can't find a way of making the DIV appear on top of the movie, instead of behind it.

Is there a trick to this, or is it just not possible. (netscape 6.2 and IE compatable way that is)

Jher

The Jhereg
=~=~=~=~=~=~=~=~=~=~
I never lie.
I'm building a reputation for honesty so I can blow it when something big comes along... This ain't it.


Positioning A Flash Movie...
Okay, now that I have my button issue cleared up, I have an even stranger problem.

I have a flash movie that is 128x374 pixels.
I want to put it into a frame that is exactly 128x374 pixels, and I set the frame to have border=0 on all four sides.

So it should fit, right?

Well, no. It looks like the movie needs to be moved one pixel to the left, and one pixel up in order to fit perfectly.

But the movie is using a .jpg that fits perfectly, outside of the flash movie.

But here is the strangest part - the movie still fits within the frame. It isn't as though the .jpg was off by a pixel when it was inside the flash movie. It was touching all four borders exactly. So why on earth is it not working properly?


Below, I have a link posted to a .zip file of the project. You can open the WithFlash.htm, and then the WithoutFlash.htm to see what I mean. It is the exact same .jpg file.



http://www.prosarche.com/Arrgh.zip

Thanks a ton if you can help!

--Jerry

Flash Positioning And Opera
Hi,

I have the following problem... I've made a flash slide show that I want to include on my page. It works as it is supposed to but will display wrong in Opera 8.52 while IE and Firefox are OK. Does anybody have any idea what it can be, what am I doing wrong? There is no CSS styling appliedat all. The same happens with the html file published by Flash.

Many thanks in advance!

Positioning An External Swf In A Flash Miovie
bonjour
can anyone tell me how i position an external swf file in a flash movie,

Flash In Html: Positioning Problem?
Hopefully you gurus can help me with this one...

I'm desigining a site in dreamweaver (html), with the menu made in Flash. I've imported it ok and everything works fine on my PC. The thing is, when I view it on other computers (namely the high end macs at uni) the flash menu sticks out to the side by 1 pixel.

This puzzels me, as it's fine on my PC and the flash menu is the exact same width as the html page. Is this flash anti aliasing?

I'd love to be able to resolve this.

Anyone have a clue?

Thanks.

Text Positioning Problem With Flash?
okay this problem is killing me so any help really appreciated. I have one movie clip that moves over another instance of the same clip then dissapears - because they are in the same position (yes they are!) and exactly the same clip! when the top one dissapears no one should notice! - but but.. the problem is the text (im using device fonts) - it seems that when you apply movement actions to a movie with text it renders the text in a certain way that is different from if you dont apply actions - the kerning is all different and so in fact is the line spacing! does anybody have an answer or is there any way to not use device fonts but still have the fonts not anti-aliased??

ive been working to solve this one for ages so please help you experts of flash you kings of new england!

Copyright Đ 2005-08 www.BigResource.com, All rights reserved