A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: skip intro alternative needed

  1. #1
    Senior Member
    Join Date
    May 2005
    Location
    Canada
    Posts
    212

    skip intro alternative needed

    here is my new site im working on
    http://www.rocketinnovations.ca/theesite8.html
    my question is i need to offer users the option to skip the intro. this should b simple but i use a time delay such as;
    stop();
    mi = setInterval(function () {
    //gotoAndPlay(14)
    play();
    clearInterval(mi);
    }, 12500);

    so when i try to use simple onrelease go to and play "main" it goes to main for 2 seconds then starts over. ne suggestions? without having to change all my pausing script

  2. #2
    Senior Member whispers's Avatar
    Join Date
    Mar 2001
    Location
    CFA2h (respect the HEX)
    Posts
    12,755
    you'll also want to clear the setInterval as well on the buton click:

    code:

    on(press){
    gotoAndPlay("main");
    clearInterval(mi);
    }


  3. #3
    Senior Member
    Join Date
    May 2005
    Location
    Canada
    Posts
    212
    thanks whisper for ur reply but im kinda a rookie and don't know what u mean.
    i made a button with
    on(press){
    gotoAndPlay("main");
    clearInterval(mi);
    }
    on it

    but what do i have to do to that pause script? that looks like this
    stop();
    mi = setInterval(function () {
    //gotoAndPlay(14)
    play();
    clearInterval(mi);
    }, 12500);

  4. #4
    Senior Member whispers's Avatar
    Join Date
    Mar 2001
    Location
    CFA2h (respect the HEX)
    Posts
    12,755
    once you press that button it should clear the pause script out...isnt that what you want to happen?

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