PDA

View Full Version : loading movie into level



namegoeshere
November 5th, 2002, 06:10 PM
I am loading a swf into a level, but need to use actionscript to manipulate its location in the root movie. This is my code:

stop ();
loadMovieNum ("logo_sm.swf", 1);
_level1._x = 300;
// whatever you want for upperleft x
_level1._y = 300;
// whatever you want for upperleft y

yet the loaded swf continues to load in its native position, rather than at any coordinate which I specify. It is riding in the upper left hand corner, even tho here I am indicating a much different position. What am I doing wrong?

?

richie
November 6th, 2002, 04:54 AM
have you tried to load into target? into a empty MC let's say...
you could just put this empty mc into a level you want , and then load into this mc and put it into the coordinates you want.

namegoeshere
November 6th, 2002, 10:16 AM
I prefer loading a SWF because of file size. Besides, I know it is possible and common to do it this way and if only for the sake of thoroughness I ought to know how to do it.

thx anyway

namegoeshere
November 6th, 2002, 12:58 PM
In case anyone else has this problem, I found a solution through another forum:

create a movie clip "holder" rather than an actual MC, and specify the coordinates of the "holder"

richie
November 6th, 2002, 01:31 PM
that was what i said, i guess you just didn't understand, sorry if was that, my English is not good as you can see...

namegoeshere
November 6th, 2002, 01:51 PM
sorry! thx anyway!