| Home | Tutorials | Forums | Articles | Blogs | Movies | Library | Employment | Press | Buy templates |
|
|
#1 |
|
Senior Member
Join Date: Feb 2001
Location: sweden
Posts: 194
|
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... |
|
|
|
|
|
#2 |
|
Administrator
Join Date: Nov 2000
Location: Australia
Posts: 8,612
|
We have a tutorial on swapDepths()
http://www.actionscripts.org/tutoria...hs/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
__________________
Cheers Jesse Stratford ActionScript.org Cofounder Email: presented in this way to stop spam-bots: My email is composed of my first name (jesse) followed by my last name (stratford) followed by @ followed by actionscript.org Please don't email or PM me Flash questions, that's what the Forums are for! ![]() Please don't rely on me reading my PMs either. Email me about important stuff. |
|
|
|
|
|
|
|
|
#3 |
|
Senior Member
Join Date: Feb 2001
Location: sweden
Posts: 194
|
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. ![]() |
|
|
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Duplicate movie to new target path? | jasonoda | ActionScript 1.0 (and below) | 1 | 08-17-2006 04:15 PM |
| Duplicate Movie Clips | Shoe ButtBack | ActionScript 2.0 | 4 | 07-10-2006 03:39 PM |
| Detecting collision of 2 movie clips problem | talie | ActionScript 2.0 | 0 | 07-22-2005 07:07 AM |
| assign different variables to duplicate movie | toke | ActionScript 1.0 (and below) | 2 | 10-29-2002 09:28 PM |