A Flash Developer Resource Site

Results 1 to 16 of 16

Thread: Bingo Game Script

Hybrid View

  1. #1
    Senior Member
    Join Date
    Aug 2000
    Location
    Montréal
    Posts
    14,141
    root.gotoAndPlay(5) will not in the enterframe (as the playhead will keep on going to that frame and never pass it)

    You'll need to delete the enterFrame first:

    Buttons.onEnterFrame = function() {
    if (button01 && button02 && button03 && button04) {
    delete Buttons.onEnterFrame;
    _root.gotoAndPlay(5);
    }
    };

    gparis

  2. #2
    Junior Member
    Join Date
    Feb 2003
    Posts
    25
    Right now the mc that has the buttons and this script is running on Frame 4 of the main timeline. When all the buttons have been clicked I want it to go to Frame 5 or the next frame in the main timeline.

    Buttons.onEnterFrame = function() {
    if (button01 && button02 && button03 && button04) {
    delete Buttons.onEnterFrame;
    _root.gotoAndPlay(5);
    }
    };


    does this delete my mc? I put it in the 1st frame of the mc but it's still not advancing.

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