Ok but it there a way to get the name of the variable that is reffering to
the object? First I thought eval() could be used for that but it seems not.
-Sascha
----- Original Message -----
From: "Danny Kodicek" <[EMAIL PROTECTED]>
To: "Flashcoders mailing list" <[email protected]>
Sent: Monday, January 23, 2006 10:43 PM
Subject: Re: [Flashcoders] getting the name of an object
hi,
this might be obvious but how do I get the name of an object? If I got an
object named fooObj how can I get Flash to for example trace out the name
of the object, so that it traces "fooObj"? I know this works with
movieclips but how about objects or arrays?
Objects or arrays don't have a name. That is: you could have a variable
fooObj referring to some object O, and you could set another variable
barObj to refer to the same object. The object O is completely independent
of the variables referring to it. For that matter, an object held in an
array doesn't even have a variable name referring to it. So unless you set
up some kind of convention of your own, the request doesn't really make
much sense.
Danny
_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders