A Flash Developer Resource Site

Results 1 to 5 of 5

Thread: Is there any way...

  1. #1
    file not found Captain_404's Avatar
    Join Date
    Apr 2006
    Posts
    457

    Is there any way...

    Is there any way to, when a user clicks on a certain mc, move the mc that is clicked to the top of it's respective layer?

    EDIT: I'm using mx 2004

  2. #2
    FK Slacker
    Join Date
    Jun 2000
    Location
    vancouver
    Posts
    3,208

  3. #3
    file not found Captain_404's Avatar
    Join Date
    Apr 2006
    Posts
    457
    I'm using about 19 mc's, not just two...

    would I be able to

    my_mc.getDepth() : 1

    and then somehow send all the others down one?

  4. #4
    FK Slacker
    Join Date
    Jun 2000
    Location
    vancouver
    Posts
    3,208
    If you just want to move the clip that was clicked on to the top, you could do something like this:
    code:

    my_mc.onRelease=function(){
    this.swapDepths(99999);
    }



    K.

  5. #5
    file not found Captain_404's Avatar
    Join Date
    Apr 2006
    Posts
    457
    Ok, thanks, that works perfectly.

Posting Permissions

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




Click Here to Expand Forum to Full Width

HTML5 Development Center