Flasher Archive

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


Subject: Re: FLASH: Going Loopy
From: John Croteau
Date: Sat, 9 Oct 1999 20:41:15 +0100

Hi Cheri,

> >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
The big problem with this code is you keep resetting index to 1!!!!
This would be better.
The best would be to use labels as Neurtik suggeste but there is no need
to separate the index + 1 equation. Since index starts at zero, your
index count will go from 1 to 5 (at the if comparison) and since this is
at the end of your routine then when five are completed you want the
comparison to be index < 5.
If you needed to set the variable index = 1 then it would have to be set
before the loop in this case in frame zero :-).

Set Variable: "index" = index + 1
If (index < 5)
Go to and Play (1)
Else
Go to and Stop (25)
End If

--
Coming Soon Flash 4 Web Animation F/X and Design
http://www.amazon.com/exec/obidos/ASIN/1576105555/flashcentral
----------- -----------------------
John Croteau croteauaterols [dot] com (mailto:croteauaterols [dot] com)
------------- -------------------------
FlashTek (Advanced Websites with Flash) http://www.FlashTek.com/
Flash Bible (Fast track to good Flash) http://www.FlashBible.com/
Flash Central(The Universe Starts Here) http://www.FlashCentral.com/
The Flash Tech Resource (Tech Notes) http://www.FlashCentral.com/tech/
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


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, Cheri Harder

Replies
  Re: FLASH: Going Loopy, 2Nerotik

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