all groups > flash (macromedia) > december 2005 >
You're in the

flash (macromedia)

group:

loadMovieNum position


loadMovieNum position HenrieMediaInc
12/3/2005 6:39:30 PM
flash (macromedia):
I am loading an external movie using the following script:
loadMovieNum("eventsCalendar.swf",999);

I know this positions the movie in the upper left hand corner. If I want this
movie to load in a different position, how do I load the X,y coordinates? Any
hlep would be appreciated!
Re: loadMovieNum position MWGum
12/3/2005 6:47:53 PM
i have tried to figure the same thing out. What i ended up doing was making
the external movie the same size of a movie as i was loading it into and then
positioned the content to where i wanted it to show up on the other movie.
For instance:
if you want your external movie to be x=100 and y=50 just make it so that the
external movie has its content at x=100 and y=50 so that it will line up like
you want it to when it loads in.

If anyone knows a better way to do this PLEASE post it.

Hope that this helps,
MWGum
Re: loadMovieNum position Rothrock
12/3/2005 8:01:03 PM
MWGum's suggestion is a nice easy way to do it. And it forces you to do a
little planning ? which is never a bad thing. Generally if you are going to
create a multiple _level kind of Flash application it is a good idea to get out
some tracing paper and plan where each bit will go on its own sheet and then
make each FLA the same dimensions.

However if you really need to adjust the position it can be done. You have to
wait until the content has loaded into the _level, in this case _level999. Then
you can adjust the whole level like this:

_level999._x=100;
_level999._y=50;

It is a little odd. And like I said, you can't address a level that has no
content ? it simply doesn't exist.
Re: loadMovieNum position Dan from Atlanta
12/3/2005 11:10:55 PM
Are you talking about loading external swfs into specific positions on another
swf, or loading an swf into a particular position on an HTML page?

For the former, I still use the very basic method of positioning empty movie
clips exactly where the upper left corner of swfs should load with loadMove.

If the latter, use CSS absolute or relatvie positioning for pixel-perfect
placment, regardless of what else is on the page. You can do some cool things
with transparent windowless Flash movies.
Re: loadMovieNum position urami_
12/4/2005 9:28:00 AM


[quoted text, click to view]

but, you could force it to reposition itself but placing the above into loaded movie
first frame :
this._y=100;
this._x=100;
you don't need to worry for it to load in order to apply its cords, whit that on first frame
the movie automatically loaded positioned. Tho, this is the action you might want to
add once the movie has been finalized, otherwise it will appear bit off stage while
authoring preview as the this._x and _y will take effect as well.


--
Regards

Urami

--


<urami>
http://www.Flashfugitive.com
</urami>

<web junk free>
http://www.firefox.com
AddThis Social Bookmark Button