Flasher Archive

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


Subject: FLASH: RE: FLASH - Random Numbers
From: Sean Renet
Date: Fri, 17 Mar 2000 23:00:39 GMT

actually, I took the cheap way out because I did not know about the GetTimer
function. What I did is basically made the movie call a scene (that is
nothing more than 6 frames) inbetween loops. This gives me atleast half a
second before it checks for the number again.

Thanks for the response. I will check into that function
----- Original Message -----
From: "Conlon, Matthew" <Matthew [dot] ConlonatGD-CS [dot] COM>
To: <flasheratchinwag [dot] com>
Sent: Friday, March 17, 2000 10:12 AM
Subject: FLASH: RE: FLASH - Random Numbers


> Yes, it can run through a random function rather quickly - it's a simple
> math call. You are seeing the proof of this - you could test it just to
see
> that concept made plain. Yes, you can reduce your odds (like the lottery)
by
> making the number pool larger. Someone with a statistics background could
> give you a better insight into this, but basically, random means just
that,
> random, so you could just as easily have your "Chosen" look for 1,2,3, or
4
> as any other set of numbers.
>
> However, if you really want to control the time, you might try using a
> function built from a variable, a little math, and the GetTimer call, and
> pair that with your random function. (In which case, you may as well use a
> Random (4)+1 function and pick from 1, 2, 3 or 4.)
>
>
>
> MattC
>
>
> Date: Fri, 17 Mar 2000 01:16:08 -0800
> From: "Sean Renet" <seanatbroadcastdynamics [dot] com>
> Subject: FLASH: Random Numbers
>
> 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
>
>


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: RE: FLASH - Random Numbers, Conlon, Matthew

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