A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: Skip Intro

  1. #1
    Junior Member
    Join Date
    Oct 2016
    Posts
    3

    Skip Intro

    i have some problems. I'm making Skip button but the problem is, the skip is executed and it jumps from 207 to 1346 smoothly with no problems but it loops back to frame 207 after few seconds on frame 1346 and yes there is stop(); after 1352 so there is no reason for it to loop back. the two frames are on different layers, could that be a problem?

    I have read all the solutions provided for this problem but so far been unsuccesful. if you can help me and point out to the problem, I have uploaded the *fla file to my google drive (https://drive.google.com/open?id=0B4...lg5SUFVTXdEZlk ) it is only 4 frames or so as this is an example of what i'm facing.


    this is the code i'm using
    skip_btn1.addEventListener(MouseEvent.CLICK, Skip)

    function Skip(MouseEvent):void
    {
    gotoAndPlay(15);
    SoundMixer.stopAll();
    }

  2. #2
    . fruitbeard's Avatar
    Join Date
    Oct 2011
    Posts
    1,780
    Hi,


    Perhaps you should try clearing the timeouts.
    Like so.

    PHP Code:
    var interval_A:uint setTimeout(hello2000);// 2 seconds

    function hello():void
    {
        
    clearTimeout(interval_A);
        
    gotoAndPlay(2);


  3. #3
    Junior Member
    Join Date
    Oct 2016
    Posts
    3
    Thank you very much, you saved my project from collapse, many thanks my friend

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