Groups | Blog | Home
all groups > flash actionscript > february 2004 >

flash actionscript : Positioning Loaded Movie Clip


asiabackpacker
2/3/2004 5:54:58 PM
Does anyone know if there is a way to position a loaded movie within my main movie when it is loaded into a level (as opposed to being loaded into a target)?

Jack.
2/3/2004 6:05:29 PM
easiest method is, in the movie to be loaded -
this._x = 127;
this._y = 254;

regards
asiabackpacker
2/3/2004 6:10:16 PM
Thanks, but another part of the problem is, I don't have the FLA file for the .swf I am loading. Any ideas of other ways to affect the properties of this loaded clip? Thanks again

Jack.
2/3/2004 6:47:51 PM
loadMovieNum("dodgy.swf",1);

this.onEnterFrame = function(){
trace(_level1._x+" | "+_level1._y);
if(_level1){
_level1._x = 127;
_level1._y = 64;
trace(_level1._x+" | "+_level1._y);
delete this.onEnterFrame;
}
};

regards
asiabackpacker
2/3/2004 7:23:27 PM
Worked like a charm.

Thanks Jack

AddThis Social Bookmark Button