A Flash Developer Resource Site

Results 1 to 14 of 14

Thread: timer weird behavior

Threaded View

  1. #1
    Junior Member
    Join Date
    Nov 2010
    Posts
    9

    timer weird behavior

    Hi, I have 3 frames and I need to switch between them after 5 seconds. My AS2.0 code for every frame is:

    function myTimee (){
    gotoAndStop(2);
    }

    setInterval(myTimee,5000);


    of course, function name and frame in gotoAndStop changes every time. The weird thing is that it works for the very first time, but then it is going crazy.

    1.2.3.
    2. // here it goes to frame 2 instead of 1

    3.1.2.3.1.2.3.1.2.3.
    2. // this is weird too
    3.1.2.3.1.
    Thank you


    .fla attached
    Attached Files Attached Files

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