A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: swapDepths makes sticky movie clips

  1. #1
    Junior Member
    Join Date
    Dec 2001
    Posts
    16

    swapDepths makes sticky movie clips

    Heya, I am using swapDepths on movie clips to control the layering in my movie.

    However, for any movie clip that I have manually set the depth (eg. someclip.swapDepths(900), that movie clip seems to persist from that point on, even on frames where it isn't on the timeline.

    What is going on here? Is this a bug or is there a correct solution for it?

    For example, I have some boat movie clips in Scene 1. I apply swapDepths to them to give them a depth manually.

    Then I go to another scene where there are no instances of the boat movie clips, BUT they are still on the screen (when I run the file)!!

    ARGH!!!!

    Anyone?

    Thanks

    ph00n

  2. #2
    Senior Member
    Join Date
    Jan 2001
    Posts
    1,017
    when u use swaptdepth the movie becomes independed
    u can use _level900.stop() to stop the movie or unload to make him dissapear or tell him to go to a blank frame
    mey the swartz be with you

    http://www.amirlotan.com

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