A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: Movie Keeps playing despite stop();`

  1. #1

    Movie Keeps playing despite stop();`

    I have an swf loading on to my main timeline:

    _root.createEmptyMovieClip("container", 1);
    loadMovie("bucs.swf", "container");
    container._x = 549 ;
    container._y = 16 ;

    show_01.onRelease = function(){
    container.gotoAndStop(2);
    }
    show_02.onRelease = function(){
    container.gotoAndStop(3);
    }
    I have 9 buttons total.

    My problem is once the movie loads, the movie advances automatically. The bucs.swf movie has the following code on all 9 pages:

    stop();

    attachMovie("fader_mc","fader_mc", 10, {_x:35, _y:37});
    attachMovie("newMask_mc", "newMask_mc", 20, {_x:35, _y:37});

    this.onEnterFrame=function(){
    if(fader_mc._currentframe==fader_mc._totalframes){
    delete this.onEnterFrame;
    }}
    fader_mc.setMask(newMask_mc);

    This movie contains 9 different pics. I.m using a mask and an animated fader. I use the above function to check and see if the fader has already been loaded, if so it unloads the fader_mc before reloading on the next pic.

    Again, the problem is the movie scrolls through all frames on its own. Any ideas why?

  2. #2
    Member
    Join Date
    May 2009
    Posts
    30
    Try jst put

    stop()

    in the first layer

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