PDA

View Full Version : [mx] Co-ordinates?



Lacuna
February 16th, 2003, 05:06 PM
Could anyone point me in the direction of the tutorial that teaches how to apply coordinates to movies that will be externally loaded? I've seen it around somewhere but I can't seem to find it again.
It'll be something like :
x_coordinate =
y_coordinate =

:love:
~ Seretha

p.s. thanks for all the eariler help subquark but i really need to use it this way for the time being.

pom
February 16th, 2003, 06:16 PM
You'll have to set a little preloader to know when your movie is fully loaded:
this.createEmptyMovieClip("yourContainer",0);
yourContainer.loadMovie("your_movie.swf");
this.onEnterFrame=function(){
var l=yourContainer.getBytesLoaded();
var t=yourContainer.getBytesTotal();
if (l > 0 && l >=t){
yourContainer._x=150;
yourContainer._y=150;
}
}Untested, but it should look like that.

pom :cowboy:

Lacuna
February 16th, 2003, 06:27 PM
thank you very much. that is exactly the thing i've been looking for. it's already running fine .. now just to do the fine detailing.

:love:
~ Seretha