Flasher Archive

[Previous] [Next] - [Index] [Thread Index] - [Previous in Thread] [Next in Thread]


Subject: Re: FLASH: loop script
From: Stephen
Date: Mon, 31 Jul 2000 10:31:05 +0100

Sorry, didn't think just now... anyway... here's an easier solution...
without a while loop. Assuming your animation runs from frame 2 to frame
10...

Frame 1:
Set Variable: "x" = 5

Frame 2:
// Start your animation here (which ends at frame 10)

Frame 10:
Set Variable: "x" = x - 1
If (x = 0)
Go to and Play (11)
Else
Go to and Play (2)
End If

Frame 11:
// Your other animation



Stephen


> Here is what I have so far, and it doesnt see to be working yet:
>
> Set Variable: x = "5"
> Loop While (x>0)
> Set Variable: "x" = "x-1"
> Go to and Play (2)
> End Loop
> Go to and Stop (9)
>
> on frame 20 I have a "goto 1 and Play"
>
>
> --------------------------------------------------------------------------
--
> ----------------
> I am starting to work with action scripts and I need to loop through a
> couple of frames so that they play back 5 times, then proceed to the next
> set of frames on the timeline..
> I know that I need to declare a variable, and set it to 5, and subtract 1
> from the variable every loop..
> and set a "while" condition to check the value of the variable each loop.
>
> I guess all I need is the Flash translation of a standard loop-while code.
> So if anyone can just tell me the code, or give a link to an online
> tutorial, it would be very helpful!
>
> thanks
>
> Jeremy
>
>
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> Full flasher archive now available online at:
> http://www.chinwag.com/flasher/archive.shtml
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> To unsubscribe or change your list settings go to
> http://www.chinwag.com/flasher or email helpatchinwag [dot] com


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Full flasher archive now available online at:
http://www.chinwag.com/flasher/archive.shtml
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
To unsubscribe or change your list settings go to
http://www.chinwag.com/flasher or email helpatchinwag [dot] com


Replies
  FLASH: loop script, Brack, Jeremy

[Previous] [Next] - [Index] [Thread Index] - [Next in Thread] [Previous in Thread]