A Flash Developer Resource Site

Results 1 to 1 of 1

Thread: Make movies play sequentially, then stop.

  1. #1
    Member
    Join Date
    Apr 2004
    Location
    IA, USA
    Posts
    57

    How do I make movies play sequentially, then stop?

    Hey, I've never quite been able to get programming down, but I'm always trying. Can someone tell me what I'm doing wrong here?

    I'm using Flash MX.

    Basically, I want them to click a button, and one by one leaves will move of the screen. I just want to name the leaves "fallingLeaf1", "fallingLeaf2, "fallingLeaf3" and so forth, and keep going sequentially up the numbers until there are no fallingLeafs left.

    Here is the code:

    Code:
    on (release) {
        var i;
        i = "0";
        var leafMarker;
        leafMarker = "leafMarker1";
        var frameMarker;
        frameMarker = "1";
        do {
            i = i+1;
            leafMarker = "_root.fallingLeaf"+i;
            frameMarker = leafMarker._currentframe;
            if (frameMarker=2) {
                tellTarget (leafMarker) {
                    gotoAndPlay(2);
                }
            }
        } while (i!=2);
    }
    Last edited by Rancor; 10-04-2004 at 10:32 PM.

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