Results 1 to 5 of 5

Thread: duplicateMovieclip issues...

  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 01: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

  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 01: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

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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