Flasher Archive

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


Subject: Re: FLASH: Return a string of a variable name????
From: jmerrill
Date: Wed, 10 Jan 2001 00:01:53 GMT


Correct me if I'm wrong, but according to the actionscript manual and my
tests, that does that exact opposite of what I want to do. It returns the
VALUE of the variable, not the NAME. Am I missing something?

Jason Merrill
Multimedia/Courseware Developer @ ELF, Issaquah, WA
425.369.5214
SerengetiUS.com - "Where Law Does Business"

Seattle Macromedia Authorware User's Group



"Scott Rouse"
<sfrouse@everm To: <flasheratchinwag [dot] com>
ore88.com> cc:
Sent by: Subject: Re: FLASH: Return a string of a variable name????
owner@chinwag.
com


01/09/01 03:27
PM
Please respond
to flasher






var1="cow";
var2="var1";

eval(var2);

This will return "cow"

var2;

this will return "var1"

----- Original Message -----
From: <jmerrillatelftech [dot] com>
To: <flasheratchinwag [dot] com>
Sent: Tuesday, January 09, 2001 3:08 PM
Subject: FLASH: Return a string of a variable name????


>
> How do I return the string of a variable name?
>
> For example, if I do this:
>
> var1 = "apple"
> var2 = var1
>
> var1 returns "apple" and of course var2 now returns "apple" also. Fine.
>
> But how do I get the name of the "var1" variable as a string, so that
> returning var2 gives me the string "var1" instead of "apple"??? I want
to
> dynamically reference variables in this way. I'm using Flash5. Thanks
> again.
>
> Jason Merrill
> Multimedia/Courseware Developer @ ELF, Issaquah, WA
> 425.369.5214
> SerengetiUS.com - "Where Law Does Business"
>
> Seattle Macromedia Authorware User's Group
>
>



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
flasher is generously supported by...
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
flashforward2000 and the Flash(tm) Film Festival
November 27-29, 2000, LONDON, National Film Theatre

Produced by United Digital Artists and lynda.com
-Sponsored by Macromedia, Adobe Systems and Apple Computer
-http://www.flashforward2000.com or UK tel. +44 (0870) 751 1526
Register before November 10 and save £200
http:// www.flashforward2000.com
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
To unsubscribe or change your list settings go to
http://www.chinwag.com/flasher or email helpatchinwag [dot] com





~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
flasher is generously supported by...
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
flashforward2000 and the Flash(tm) Film Festival
November 27-29, 2000, LONDON, National Film Theatre

Produced by United Digital Artists and lynda.com
-Sponsored by Macromedia, Adobe Systems and Apple Computer
-http://www.flashforward2000.com or UK tel. +44 (0870) 751 1526
Register before November 10 and save £200
http:// www.flashforward2000.com
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
To unsubscribe or change your list settings go to
http://www.chinwag.com/flasher or email helpatchinwag [dot] com


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