PDA

View Full Version : Positioning Movie Loaded in _level1



earph
October 19th, 2002, 08:29 PM
[FMX]

I have tried everything to get my movie loaded in _level1 to be positioned correctly. The movie always jumps back to the top left corner.

Here's my code:

stop();
unloadMovie(1);
loadMovieNum("1dictate.swf", 1);
_level1._x=random=(164.3);
_level1._y=random(111.4);

Everyone says the code is right, but it doesn't work!!

Please help....

pom
October 20th, 2002, 03:15 AM
You're accessing _level1 too soon. You have to wait for the clip to load before you access the _x and _y properties. Technically, at least one frame.

Cheers.

pom :asian:

earph
October 20th, 2002, 07:19 PM
So, you're saying to just put this:


_level1._x=164.3;
_level1._y=111.4;



in a frame right after my loadMovie? I did that and it' not working for me. The movie still doesn't position. WTF?

What am I doing wrong?

pom
October 21st, 2002, 04:56 AM
I'm not sure. Are you doing this online or locally? If it's online, you'll have to preload I guess, and if it's local, then I'm totally wrong. :-\

activebone
October 21st, 2002, 10:27 AM
_level1._x = (number);
_level1._y = (number);

i would suggest the same thing.
:)

earph
October 21st, 2002, 06:36 PM
Thanks guys... I finally figured it out. I was putting my coordinates in the wrong frame. I was trying to do them on the button rather than the enterFrame on the loadMovie....

Thanks for all the help....

cheers