Flasher Archive

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


Subject: FLASH: re: random text variables
From: David James
Date: Wed, 23 Aug 2000 22:39:29 +0100

Hi Mark,
Here is the correct code for your program:

On (Release)
Begin Tell Target ("/plate/sheet/field"&g)
Set Variable: "cell" = eval("k" & random(5))
End Tell Target
Trace ("g="&g)
Call ("1")
End On

The little EVAL above makes Flash display the variable as indicated by your
expression, rather than just the name of the variable. Your code, k &
random(5), is equivilant to eval("k") & random(5), which is very different
from eval("k" & random(5))

--- Original Message ---

Date: Wed, 23 Aug 2000 16:08:06 GMT
From: "mark carolin" <mcarolinathotmail [dot] com>
Subject: FLASH: random text variables

hello, i am not sure if flash 5 would fix this problem, but i've been having
trouble loading a random text variable into a text field cell...

here's the code

On (Release)
Begin Tell Target ("/plate/sheet/field"&g)
Set Variable: "cell" = k&random(5)
End Tell Target
Trace ("g="&g)
Call ("1")
End On

k0 k1 k2 k3 k4 are variables in a text document
the variables are loaded before hand.

it will load the variables individually but gives a the generated number
when i try this code.

any ideas?



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
NudeGuru.com is proud to sponsor the Flasher list
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
IT'S THE ART OF MONEY, HONEY!
Tips and Advice from some of the most popular Flash
artists + industry power-brokers on how to hold onto
your rights, negotiate contracts and get full value
for your work.http://www.nudeguru.com from Franke James
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
To unsubscribe or change your list settings go to
http://www.chinwag.com/flasher or email helpatchinwag [dot] com


Replies
  FLASH: Flash 5 download - Mac, Ken Lanxner

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