Flasher Archive

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


Subject: FLASH: Random Numbers
From: Sean Renet
Date: Fri, 17 Mar 2000 15:21:41 GMT

Okay I am trying to make a paused timer of sorts. The idea is that I want flash to pick a number between 1 and 300. If the number is one of the four I have chosen, I want flash to play the associated frame. If its not one of my chosen numbers, I want it to keep looking for a number til it hits one of my four. Now this works for randomization of the play order of the frames, however it seems that flash is picking one of the four fairly often. Is the random number function really this fast? Can I make the number be huge like 1000000000?
Does anyone know anything about random number functionality?



If Frame Is Loaded (1)
Set Variable: "chosen" = Random (500)
If (chosen = 10)
Go to and Play ("coming")
Else If (chosen = 63)
Go to and Play ("hol")
Else If (chosen = 99)
Go to and Play ("room")
Else If (chosen = 302)
Go to and Play ("thought")
Else
Go to and Play (2)
End If
End Frame Loaded

(frame 2 just sends the loop back to frame 1)


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


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