Flasher Archive
[Previous] [Next] - [Index] [Thread Index] - [Previous in Thread] [Next in Thread]
| Subject: | Re: FLASH: When to Use (Eval)? |
| From: | Helen Triolo |
| Date: | Mon, 12 Jun 2000 17:02:30 +0100 |
"Marc Hoffman, Poison Dart Frog Media" wrote:
>
> I'm looking for a clear explanation of when to use (Eval) and when not to
> use it. Can someone come up with a clear rule I can pass along to my students?
>
Marc,
Perhaps someone will have a clearer rule, but in my experience (from
trial and error), you need to use eval in assignment and conditional
statements when the variable would normally *not* have quotes around it
(eg, the right hand side of assignment statements and anywhere in a
conditional statement), in cases where you are "building" the variable
name by concatenating one or more variable names and strings together.
(As a side note, the reason I say specifically assignment and
conditional statements is that you don't, for example, use eval when
defining a frame name in a Goto and play statement -- there if you want
to concatenate a variable name and a string, you just do that, with no
eval).
I don't know how clear that is, but it's the only way I can remember
(besides going back and looking at examples, which is actually my
preferred method). I tend to think in terms of "what needs quotes and
what doesn't", too, instead of string literals vs expressions, which may
not work for everyone. ;-)
Regards,
Helen
----------------------------------------
helen triolo � http://i-technica.com
designer
----------------------------------------
flasher is generously supported by...
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
flashforward2000 and the Flash(tm) Film Festival
July 24-26, 2000, NEW YORK CITY, Hammerstein Ballroom
www.flashforward2000.com
Produced by United Digital Artists and lynda.com
Sponsored by Macromedia, Adobe Systems, Fusion, Inc, AtomFilms,
shockwave.com and Electric Rain.
1.877.4.FLASH.4 or (1.805.640.6679 outside the US and Canada)
Register before June 30 and save $200!!-- www.flashforward2000.com
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
To unsubscribe or change your list settings go to
http://www.chinwag.com/flasher or email help
Replies
FLASH: When to Use (Eval)?, Marc Hoffman, Poison Dart
[Previous] [Next] - [Index] [Thread Index] - [Next in Thread] [Previous in Thread]

