Flasher Archive

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


Subject: Re: FLASH: Random quotes from text file.
From: Nathan Dicken
Date: Tue, 18 Apr 2000 15:42:29 +0100

If you have say, three quotes, your text file could look something like this...

&quoteCount=3&
&quote1=This is quote number 1&
&quote2=This is quote number 2&
&quote3=This is quote number 3&

What you'd need to do is bring these variables into Flash with the Load
Variables command. You'd need to have an editable text field with a
variable that you'd set from this data. In this case the text field
variable is "quote" and "rNum" is a random variable set...

Set Variable: "rNum" = random(quoteCount)+1
Set Variable: "quote" = eval("quote"&rNum)

Hope that helps...

Nathan Dicken
Fusionary Media



>have a client that wants a random quote pulled from a text file. fairly new
>at this sort of thing, in flash anyway, so any help on how to do this would
>be appreciated.
>i l l o g i c
>w e b d e s i g n
>
>
>flasher is generously supported by...
>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> Get the last 100 messages from the flasher list NOW
> http://www.chinwag.com/flasher/last100.shtml
>
> Flash books http://www.chinwag.com/flasher/books.shtml
>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>To unsubscribe or change your list settings go to
>http://www.chinwag.com/flasher or email helpatchinwag [dot] com



flasher is generously supported by...
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Get the last 100 messages from the flasher list NOW
http://www.chinwag.com/flasher/last100.shtml

Flash books http://www.chinwag.com/flasher/books.shtml
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
To unsubscribe or change your list settings go to
http://www.chinwag.com/flasher or email helpatchinwag [dot] com


Replies
  FLASH: Random quotes from text file., illogic

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