View Full Version : duplicate movie
bahrami
03-06-2001, 11:04 PM
I'm tryin to duplicate a movie. but it only seems to duplicate on top of the _root, how do i load a movie into a further back layer?
I heard about the "swapDepth()" action . But I really don't know how to use it...
Jesse
03-07-2001, 03:11 AM
We have a tutorial on swapDepths()
http://www.actionscripts.org/tutorials/intermediate/swap_depths/index.shtml
It's pretty easy really.
But I've just used a simple loop to show that you can indeeed duplicate below the current clip:
for (i=0; i<10; i++) {
duplicateMovieClip ("a", "a"+i, (-1)*i);
_root["a"+i]._x = i*50;
_root["a"+i]._alpha = "20";
}
If you run that (and make an MC with an instance name called 'a') you will see that the duplicates go below the orriginal. So just set the target level to a negative number. Like -1.
Cheers
Jesse
bahrami
03-07-2001, 09:09 AM
Thank you Jesse...Thanx for the tutorial that I kind of (indirect) requested from you...It helped me a lot...
I just want to say thanks to all of the guys here who give us newbies the help we need.
Sometimes I forget to show appreciation. ;)
vBulletin® v3.7.1, Copyright ©2000-2009, Jelsoft Enterprises Ltd.