Flasher Archive

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


Subject: Re: FLASH: Going Loopy
From: 2Nerotik
Date: Sat, 9 Oct 1999 19:40:52 +0100

You were close the second time

Do this instead:

1st frame in loop
Set Variable: "index"=index+1

last frame in loop
If (index=5)
Go To and Stop (25)
Else
Go to and Play (1)
End If

Note: You really should use labels when doing something like this, even if
you don't need
them here it's a good habit to get into, because frames numbers can change
on you but
the frame labels don't.

So something like this would be a better way:

1st frame in loop has now been labeled "Start Loop"
Set Variable: "index"=index+1

last frame in loop now labeled "End Loop"
If (index=5)
Go To and Stop (Continue Movie)
Else
Go to and Play (Start Loop)
End If

Frame 25 has now been labeled "Continue Movie"

This way if any of the frames get moved the labels are still the same and
you don't need
to go back and change the frame numbers in the IF statements.

At 03:19 AM 10/10/99 -0500, Quack the Duck wrote:

>On my main timeline, I want the to repeat the first few frames 5 times,
>and then go to frame 25 when it has.
>
>I tried Loop while.... had no luck.
>So i tried IF blagh....
>
>
>Set Variable: "index" = 1
>If (index <= 5)
> Go to and Play (1)
> Set Variable: "index" = index + 1
>Else
> Go to and Stop (25)
>End If
>
>
>[ I had this in the last frame of the section I wanted repeated. ]
>
>and came up with that.
>Still no luck.
>
>I know there are many easier ways to do this, like copy and paste frames,
>MC's etc, but this is my first attempt at scripting, and wanted to know
>how to do it that way.
>Please educate me.
>
>Quack

.oOo.
|| Nobody will ever win the battle of the sexes.
|| There's too much fraternizing with the enemy.
||
|| Addicted 2 Swing ---> http://www.nisa.net/~2nerotik/
|| Fontaholic ? ---> http://www.fontsanon.com
|| HTML Writers Guild ---> http://www.hwg.org


flasher is generously supported by...
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Streaming Media WEST '99 Conference & Exhibition
"The Worlds largest Internet Audio & Video Event"
December 7 - 9, San Jose Convention Center, California

Reserve your space today at http://www.streamingmedia.com
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
To unsubscribe or change your list settings go to
http://www.chinwag.com/flasher or email helpatchinwag [dot] com


Replies
  Re: FLASH: Going Loopy, John Croteau

Replies
  FLASH: Going Loopy, Quack the Duck

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