A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: How to loop my actions?

  1. #1
    Junior Member
    Join Date
    Sep 2015
    Posts
    4

    Question How to loop my actions?

    I looped my frames using the following code, lets say there is 6 frames.
    First frame code:
    var i = 0;
    Last frame code:
    f(i==0){

    gotoAndPlay(1);
    }
    Anything wrong? It loops perfectly. inbetween these two frames i have a shape tween. It loops the frames and the tween but it does not loop my other actions in between these frames? I have other actions in between the two frames for the buttons. During the first loop, all works perfectly but from second loop onwards, it just carried the actions from frame 5 forward and all frames have the same action for frame 5, why does it happen?

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

    Have you tried reseting all other vars within the loop finish function, if there are any that is.
    It's hard to say without seeing any other code or a file.

Tags for this Thread

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