Flasher Archive

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


Subject: Re: FLASH: random question
From: Randy Kato
Date: Thu, 31 Aug 2000 23:57:16 +0100

Julie,

The F4 random function returns values starting with 0 (not 1), so you'll want to
add 2 to skip frame 1.

HTH,
Randy


julie gargan wrote:

> I am trying to get an actions script to work where, when the user clicks on
> button it makes a movie clip go to a random frame. The movie clip (which is
> 12 frames long) starts out with a blank frame, so I don't want it to ever go
> to that frame. I thought that by putting the random number as 11 + 1 it
> would never end up on the first frame, since if it came up with 1 it would
> add one and make it two.... this is how I have the code:
>
> Go to and Stop (random (11) + 1)
>
> Unfortunately, sometimes it still brings up the blank frame. What am I
> doing wrong?

--
'''''' ' ' ' ' ' ' ' ' '
Randy Kato - Web Master
Braincraft

627 Broadway, Suite 504, NYC 10012
T 212.539.1680 F 212.539.1741
http://www.braincraft.com
...... . . . . . . . . .



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
NudeGuru.com is proud to sponsor the Flasher list
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
IT'S THE ART OF MONEY, HONEY!
Tips and Advice from some of the most popular Flash
artists + industry power-brokers on how to hold onto
your rights, negotiate contracts and get full value
for your work.http://www.nudeguru.com from Franke James
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
To unsubscribe or change your list settings go to
http://www.chinwag.com/flasher or email helpatchinwag [dot] com


Replies
  FLASH: random question, julie gargan

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