Flasher Archive

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


Subject: RE: FLASH: looping a certain number of times?
From: Waldo Smeets
Date: Thu, 27 Jan 2000 22:25:54 GMT

Yes, it's very simple.

I wrote this using FAST! So you can use it in your flash movie. Read the
comments to know what I've done.
Here it is:

Comment: ---------
Comment: Put this in the first frame of your movie
Comment: You can delete the comment rows if you want to. They're only to
explain.
Comment:
Comment: showXtimes defines how much time your movie has got to be looped
Set Variable: showXtimes = 10
Comment:
Comment: Loops tells you how much times the movie has been looped by you.
Comment: When the movie begins, it hasn't been looped yet; set "loops" to
zero.
Set Variable: loops = 0
Comment:
Comment: Till here
Comment: ---------


Label the beginning of the loop "beginLoopHere"
(that may not be the same frame as the frame mentioned above).
Label the frame where you want to go to after the loop has finished
"goHereAfterLoop"


Comment: ---------
Comment: Put this in the last frame of your loop
Comment:
If (loops < showXtimes)
Comment: Loops tells you how much times the movie has been looped by you.
Comment: You want it to be looped once more if that loop value (loops) is
less
Comment: than the the value you defined in showXtimes. So here we're going
to
Comment: tell flash what to do then.
Comment:
Comment: If your movie arrives here it has been played one more time,
Comment: so first update "loops" with one.
Set Variable: loops = loops + 1
Comment:
Comment:Now you want it to be played again, cause "loops" was "<
showXtimes"
Go to and Play ("beginLoopHere")
Comment:
Else
Comment: If loops is not smaller than showXtimes, the movie has been shown
as
Comment: often as you wanted to. So tell flash where to go now.
Go to and Stop ("goHereAfterLoop")
Comment:
Comment: If you want to you can change the action "Go to and Stop" into
"Go to and Play"
Comment: or into "Stop" or whatever you like.
End If
Comment:
Comment: Well, that's all!
Comment: This tutorial was made bij Waldo. Contact me at waldoatmailmij [dot] nl
Comment:
Comment: Till here
Comment: ---------


Be sure that the lines aren't "wrapped" by your browser. A new line always
begines with Comment, If, Else, End, Set or Go in this code.

If you've got any questions, please contact me at waldoatmailmij [dot] nl

Success,
Waldo Smeets




-----Oorspronkelijk bericht-----
Van: owneratchinwag [dot] com [owneratchinwag [dot] com]Namens">mailto:owneratchinwag [dot] com]Namens Carla Otto
Verzonden: donderdag 27 januari 2000 22:14
Aan: flasheratchinwag [dot] com
Onderwerp: FLASH: looping a certain number of times?


Hi,
Question: Will someone tell me if it's possible to have a number of frames
loop for X amount of times and then stop?

For example, I have 8 frames in this loop. On the main timeline, this loop
starts at frame 35, and I want it to continue looping until frame 127. Then
I want it to stop (and go away).

Is this possible to do with frame Actions?

Thanks,
Carla

*Web Site Design & Development by OttoGraphics*
web site ... http://www.ottographics.com/



flasher is generously supported by...
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
flashforward2000 and The Flash Film Festival
"The World�s Premier Flash Solutions Conference and Expo"
March 27-29, Nob Hill Masonic Center, San Francisco, California

-Register before Feb 25 and save $200!!-- www.flashforward2000.com
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
To unsubscribe or change your list settings go to
http://www.chinwag.com/flasher or email helpatchinwag [dot] com



flasher is generously supported by...
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
flashforward2000 and The Flash Film Festival
"The World�s Premier Flash Solutions Conference and Expo"
March 27-29, Nob Hill Masonic Center, San Francisco, California

-Register before Feb 25 and save $200!!-- www.flashforward2000.com
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
To unsubscribe or change your list settings go to
http://www.chinwag.com/flasher or email helpatchinwag [dot] com


Replies
  FLASH: looping a certain number of times, Carla Otto

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