A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: Setting depth for an instance on the stage

  1. #1
    yeah yeah yeah sandyrivers's Avatar
    Join Date
    Jul 2002
    Location
    Jibblies!
    Posts
    477

    Setting depth for an instance on the stage

    Hi gang,

    This is an easy question that for some reason is escaping me. I have a MC instance on the stage that becomes the mouse cursor when the swf is loaded, and a linked mc that is dynamically generated to travel across the stage. All of that is working just fine, but I wanted the cursor to be set to the highest depth so that it's on top of everything else. I think I know how to set depth to a dynamically loaded mc, but I forgot how to set depth for something already on the stage. Moving the layers around does nothing.

    MX04 and AS2.0

    Any help is most appreciated!

    -Sandy

  2. #2
    Senior Member
    Join Date
    Apr 2001
    Location
    Philadelphia, PA, USA, Earth, Sol System, Spiral Arm of Milky Way, Local Group, Virgo Supercluster, Known Universe
    Posts
    470
    myClip_mc.swapDepths(-100);

    Use negative numbers higher than -16383.
    Argon Zark!, The original interactive webcomic (since 1995)

  3. #3
    yeah yeah yeah sandyrivers's Avatar
    Join Date
    Jul 2002
    Location
    Jibblies!
    Posts
    477
    Thanks! I looked at the help on swapDepths, and I thought it only worked for two instances of the same MC, so I didn't try it. Works just fine, now!

    Thanks again,

    -Sandy

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