A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: Persistant MovieClip

  1. #1
    Member
    Join Date
    Apr 2004
    Location
    IA, USA
    Posts
    57

    Persistant MovieClip

    I have a really small Flash file I'd like someone to look at.

    I've got a stop sign in frame 6, and when you click it, it's supposed to bring you back to the first frame, which it does. However, the stop sign movie clip doesn't disappear, even though I ONLY have it in frame 6 on the timeline.

    I've never seen this before. Can you look at it real quick and see if you notice anything strange?

    Thanks in advance.

    (Note: the fla calls an external SWF, but I'm not attaching it at the moment as it doesn't affect the problem; plus, it's top secret info at the moment.)
    Attached Files Attached Files

  2. #2
    Senior Member
    Join Date
    Nov 2005
    Location
    dante's inferno
    Posts
    904
    It appears this line of code, in frame 6 on the main timeline, is causing your problem
    stopSign.swapDepths(psa); I commented it out and the file works fine.

    I don't use swapDepths, but is stopSign getting loaded into another clip at the level where psa resides, is the movieclip being removed, it appears it is staying and that is why you now see the stopsign in the beginning.

    change your stop sign button code to the following
    code:

    on(release){
    _root.gotoAndPlay(1);
    _root.psa.removeMovieClip();
    _root.stopSign.removeMovieClip();
    }


    don't know why, but that seemed to do it.
    keep all other code the same..

    should work fine,

    IMS

  3. #3
    Member
    Join Date
    Apr 2004
    Location
    IA, USA
    Posts
    57
    I've used swapDepths before, but I don't remember it acting quite like this.

    At any rate, your simple addition works. Thank you.

  4. #4
    Senior Member
    Join Date
    Nov 2005
    Location
    dante's inferno
    Posts
    904
    no problem

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