Flasher Archive

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


Subject: RE: FLASH: Someone PLEASE help me with Random Variables
From: Raymond Chitolie
Date: Tue, 8 Feb 2000 17:27:48 GMT

> Somebody Please help me -
>
> I don't understand why this isn't working and I'm going *insane*.
> I'm trying to grab a random quote from a text file and insert
> it into a
> flash file. I have a text file (quotes.txt) set up with five quotes,
> each one is quote1, quote2, etc.
> I load the variables into my swf. from quotes.txt.
> I set these variables:
> Set Variable: "n" = Random (5)
> Set Variable: "text" = "quote"&n

Hi,

Make this:

Set Variable: "text" = eval("quote"&n)

> The text box I want the quotes to show up in is called "text".
> Please please please, what the heck am I doing wrong?
> �arah

You're creating a variable name which needs to be evaluated before
you can get the value you intended.

Hope this helps,

Ray.

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
  Re: FLASH: Someone PLEASE help me with R, Sarah Lamont

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