A Flash Developer Resource Site

Results 1 to 7 of 7

Thread: swapDepths issue

  1. #1
    Senior Member
    Join Date
    Aug 2004
    Location
    UK, near a garage
    Posts
    211

    swapDepths issue

    Hi,

    I have a number of MCs (7) that I have manually placed on the stage. I have this code on each MC:
    code:

    on (press) {
    _root.objectClip5.swapDepths(3);
    with (_root.objectClip5) {
    startDrag("_root");
    }
    }
    on (release) {
    stopDrag();
    }


    I cannor get rid of them when the timeline moves to Frame 1. I have tried adding the code below but it doesn't work :
    code:

    objectClip.swapDepths(10000);

    objectClip.removeMovieClip();


    Could someone please tell me where I am going wrong?

  2. #2
    Senior Member
    Join Date
    Aug 2004
    Location
    UK, near a garage
    Posts
    211
    anyone?

  3. #3
    half as fun, double the price senocular's Avatar
    Join Date
    Feb 2002
    Location
    San Francisco, CA (USA)
    Posts
    4,361
    in the onPress, try swapping to -1 instead of 3

  4. #4
    Do you have an example .fla? Or can you explain what exactly you want the MCs to do? Why swap to 3?
    I recently did a lot of "swaping business" in my .fla, so I might be able to help, but I can't really get to the point...

  5. #5
    Member
    Join Date
    Dec 2004
    Posts
    33
    I actually have the same problem. But mines a bit more complex I think..

    Put this in the frame you want the mc to disappear on,

    Code:
    _root.mc_instance.unloadMovie();
    Lindsay

  6. #6
    Senior Member
    Join Date
    Aug 2004
    Location
    UK, near a garage
    Posts
    211
    thank you but that didn't work either...any other ides?

  7. #7
    Senior Member
    Join Date
    Aug 2004
    Location
    UK, near a garage
    Posts
    211
    Sorry didn't see greencola's suggestion which works perfectly! Thank you!

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