Re: [Flashcoders] AS2: Get Instance Name of Class?

2006-04-17 Thread Julian 'Julik' Tarkhanov
On 4/7/06, Rifled Cloaca <[EMAIL PROTECTED]> wrote: All, Is there a way to get the instance name of a class from within the class? I need to refer to a variable by its absolute targetPath, but the instance name of the class is not known until runtime. class Foo { var results:String; var

Re: [Flashcoders] AS2: Get Instance Name of Class?

2006-04-17 Thread Randy Troppmann
mailto:[EMAIL PROTECTED] On Behalf Of Manuel > Saint-Victor > Sent: Friday, April 07, 2006 11:45 PM > To: Flashcoders mailing list > Subject: Re: [Flashcoders] AS2: Get Instance Name of Class? > > You might try creating a _name property and passing each instance its name > as a p

RE: [Flashcoders] AS2: Get Instance Name of Class?

2006-04-17 Thread matjaž
Check out http://dynamicflash.com/2005/03/class-finder/ Mh23 -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Manuel Saint-Victor Sent: Friday, April 07, 2006 11:45 PM To: Flashcoders mailing list Subject: Re: [Flashcoders] AS2: Get Instance Name of

Re: [Flashcoders] AS2: Get Instance Name of Class?

2006-04-07 Thread Manuel Saint-Victor
You might try creating a _name property and passing each instance its name as a param of the constructor. then you can retrieve that name. I tried some other ways and got the dreaded [Object object] trace Mani On 4/7/06, Rifled Cloaca <[EMAIL PROTECTED]> wrote: > > All, > > Is there a way to get

[Flashcoders] AS2: Get Instance Name of Class?

2006-04-07 Thread Rifled Cloaca
All, Is there a way to get the instance name of a class from within the class? I need to refer to a variable by its absolute targetPath, but the instance name of the class is not known until runtime. class Foo { var results:String; var resultVar:String; function foo () { this.resultV