Results 1 to 5 of 5
Thread: duplicateMovieclip issues...
-
February 10th, 2006, 04:13 PM #131Registered User
postsduplicateMovieclip issues...
ok...what i am trying to do is duplicate a movie clip a couple of times. I have got it so that part works, but the duplicates always come up in front the border/background(see file), but i want them to be behind it. One thing is, that the original MC always seems to go on the right depth. Any help would be appreciated
http://www.filefactory.com/get/f.php...e0438797a7c2d1
thanx in advanceLast edited by Flashh_n00b; February 11th, 2006 at 12:50 PM.
-
February 10th, 2006, 07:12 PM #2
you need to use swapDepths, the easiest way i can think of but uses more cpu usage is to use the
background.swapDepths(getNextHighestDepth())
or better yet you could do an if statement
not sure of the getDepth() and swapDepths(), if that is there correct names just go in the help files and lookCode:if(getNextHighestDepth()-1!=background.getDepth()){ background.swapDepths(getNextHighestDepth()) }
cheers
It hurts soo good
-
February 11th, 2006, 12:41 PM #331Registered User
postsok
i'll try that and see if i can get it to do anything
-
February 11th, 2006, 12:44 PM #431Registered User
postsnot quite...
this code doesn't seem to do anything at all, it just comes out the exact same as b4. I tried every wayi could think of to fix it but since im not very familiar with swapDepths i wasn't sure what was wrong...
Last edited by Flashh_n00b; February 11th, 2006 at 12:49 PM.
-
February 11th, 2006, 01:03 PM #5
ok in the line of as that you duplicate the movie clip
After:
_root.duplicateMovieClip(//blah,//blah,//blah)
Add:
if(getNextHighestDepth()-1!=background.getDepth()){
background.swapDepths(getNextHighestDepth())
}
like i said before though im not sure if the functions are spelled right so check the help folder, but this should do the trickIt hurts soo good
Similar Threads
-
Random DNS Issues
By overclocker23 in forum RandomReplies: 2Last Post: January 31st, 2006, 09:50 PM -
Cross Browser issues information
By thats all folks in forum Web (HTML5, CSS, JavaScript)Replies: 1Last Post: January 31st, 2006, 04:53 PM -
sub nav issues
By james182 in forum Flash IDEReplies: 1Last Post: January 18th, 2006, 12:21 AM -
xml dropdown menu AS issues
By subhababu in forum Flash IDEReplies: 2Last Post: December 31st, 2005, 05:46 PM

Reply With Quote

Bookmarks