Results 1 to 5 of 5
  1. #1

    duplicateMovieclip 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 advance
    Last edited by Flashh_n00b; February 11th, 2006 at 12:50 PM.

  2. #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
    Code:
    if(getNextHighestDepth()-1!=background.getDepth()){
    background.swapDepths(getNextHighestDepth())
    }
    not sure of the getDepth() and swapDepths(), if that is there correct names just go in the help files and look cheers
    It hurts soo good

  3. #3

    ok

    i'll try that and see if i can get it to do anything

  4. #4

    not 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.

  5. #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 trick
    It hurts soo good

Similar Threads

  1. Random DNS Issues
    By overclocker23 in forum Random
    Replies: 2
    Last Post: January 31st, 2006, 09:50 PM
  2. Cross Browser issues information
    By thats all folks in forum Web (HTML5, CSS, JavaScript)
    Replies: 1
    Last Post: January 31st, 2006, 04:53 PM
  3. sub nav issues
    By james182 in forum Flash IDE
    Replies: 1
    Last Post: January 18th, 2006, 12:21 AM
  4. xml dropdown menu AS issues
    By subhababu in forum Flash IDE
    Replies: 2
    Last Post: December 31st, 2005, 05:46 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

Home About kirupa.com Meet the Moderators Advertise

 Link to Us

 Credits

Copyright 1999 - 2012