On 5/30/06, Doug Coning <[EMAIL PROTECTED]> wrote:
function myFunct(str:String){
// GET ORIGINAL NAME of str?
}
var foo:String = "ABC";
var moo:String = "DEF";
myFunct(foo);
myFunct(moo);
In the above, how can myFunct know that the first call was sent 'foo'
and the second call was sent 'moo'?
I guess the easiest way is to pass a string reference:
function myFunct(str:String, varName:String){
trace(varName+" has value of "+str);
}
var foo:String = "ABC";
var moo:String = "DEF";
myFunct(foo, "foo");
myFunct(moo, "moo");
That probably isn't what you're trying to achieve though. What exactly are
you trying to do?
Tim
_______________________________________________
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com