Flasher Archive
[Previous] [Next] - [Index] [Thread Index] - [Previous in Thread] [Next in Thread]
Subject: | RE: FLASH: When to Use (Eval)? |
From: | Branden Hall |
Date: | Mon, 12 Jun 2000 17:22:14 +0100 |
You use it when you are dynamically "building" the name of a variable.
for example... say you have a ton of variables,
foo1, foo2, foo3, etc.
and you have a variable num. Which say, is 2.
Say you wanted to find out what the variable fooX was, where X is the value
of num.
Just building the string "foo"&num wouldn't work... its just a string. So
you would use eval!
eval("foo"&num)
would find the value of that variable.
-= Branden J. Hall
-= Multimedia Developer / Instructor
-= Fig Leaf Software - "We've got you covered!"
-----Original Message-----
From: ownerchinwag [dot] com [ownerchinwag [dot] com]On">mailto:ownerchinwag [dot] com]On Behalf Of Marc
Hoffman, Poison Dart Frog Media
Sent: Monday, June 12, 2000 9:35 AM
To: flasherchinwag [dot] com
Subject: FLASH: When to Use (Eval)?
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?
Thanks.
Marc Hoffman
Poison Dart Frog Media
Flash portfolio: http://www.dartfrogmedia.com/portfolio
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 helpchinwag [dot] com
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 helpchinwag [dot] com
Replies
Re: FLASH: When to Use (Eval)?, oliver b�hm
Replies
FLASH: When to Use (Eval)?, Marc Hoffman, Poison Dart
[Previous] [Next] - [Index] [Thread Index] - [Next in Thread] [Previous in Thread]