Flasher Archive

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


Subject: Re: FLASH:random play--help!!
From: Sean Renet
Date: Sun, 19 Mar 2000 19:28:10 GMT

you need an else that plays that frame again if the the number is not 1 or
2.
Here is one I use:
If Frame Is Loaded (1)
Set Variable: "chosen" = Random (200)
If (chosen = 40)
Go to and Play ("coming")
Else If (chosen = 80)
Go to and Play ("hol")
Else If (chosen = 120)
Go to and Play ("room")
Else If (chosen = 160)
Go to and Play ("thought")
Else
Go to and Play (2)
End If
End Frame Loaded

Now if you want an infinite loop, you obviously have to put an action at the
end of those "frame sets" or scenes like:
Stop
Go to and Play (1)

The one thing I learned about infinite loops however is that flash is hella
fast, so you need to put some device to slow it down if you want the random
movies to come up less frequently. I used a second scene with 6 frames in
my else statement so it was 1/2 a second inbetween each number flash pulled.
someone else suggested using GetTimer function. I am a coldfusion
programmer and a total flash rookie so I did not know that function existed.
If you want to see the above code in action. Go to
http://www.houseofleaves.com/. This website is a work in progress and as I
said I am a flash rookie, so if any of you pros are going to rip it, send
code :-P


----- Original Message -----
From: "Ilia Pasymansky" <iliap999atyahoo [dot] com>
To: <flasheratchinwag [dot] com>
Sent: Saturday, March 18, 2000 9:46 AM
Subject: FLASH:random play--help!!


> Hi!
> >From my last frame in the main movie I would like to
> call
> different frames in the MC instance to randomly play
> different movies
> something like
> Set Variable: "x" = "random(5)"
> If (x=1)
> Begin Tell Target ("/absolut")
> Go to and Play ("play1")
> End Tell Target
> End If
> If (x=2)
> Begin Tell Target ("/absolut")
> Go to and Play ("play2")
> End Tell Target
> End If
>
> Stop
>
> my guess that the problem is that I have a stop on my
> last frame
> in the main movie, so it may call it only once...
> should I go and add one more frame and loop between
> them
> or there is an other approach to do this stuff
>
> Thanks a lot!
>
>
>
> __________________________________________________
> Do You Yahoo!?
> Talk to your friends online with Yahoo! Messenger.
> http://im.yahoo.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
>
>


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:random play--help!!, Ilia Pasymansky

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