Forum Moderators: open

Message Too Old, No Replies

movie clips

loaded movie clip inside a movie clip

         

Ramon Holmes

3:30 am on Sep 5, 2006 (gmt 0)

10+ Year Member


I need some help with loading a movie clip to a specific x and y coordinate within my movie clip. I tried using a code that sits on my frame.
_root.createEmptyMovieClip("container",2);
loadMovieNum("player16.swf", 2);
_root.onEnterFrame = function(){
if (_level2!= undefined){
_level2._x = 473;
_level2._y = 172.5;
delete _root.onEnterFrame;
}
}
the only problem is when I use a button to take me to the exact frame it loads the SWF file in the top left hand corner and then in most cases it loads it in the correct x and y. I'm looking for a consistant result. Any help would be appreciated.

oxbaker

7:26 pm on Sep 12, 2006 (gmt 0)

10+ Year Member



do something like this:

_root.createEmptyMovieCLip("holderClip");
holderClip.loadMovie("theMovieyouwanttoload.swf");
//now the movie you want to load has effectively taken over holderClip so you can just set x and y for holderclip and itll move the target movie
holderClip._x = 100;
holderClip._y = 250;

hth,
mcm