Re: [Flashcoders] DK - destroying objects from a class using arraynotation

2006-08-10 Thread dnk
Arul Prasad M L wrote: If its mx.core.UIObject's destroyObject that you are talking about, destroyObject takes the instanceName of the object, not the instance reference. you'll just have to pass the instance name as a string. I did in fact realize that this morning once I read up more on th

Re: [Flashcoders] DK - destroying objects from a class using arraynotation

2006-08-10 Thread Arul Prasad M L
If its mx.core.UIObject's destroyObject that you are talking about, destroyObject takes the instanceName of the object, not the instance reference. you'll just have to pass the instance name as a string. So, your code should look somethng like: function killElements() { for (var i:Number = 0; i

Re: [Flashcoders] DK - destroying objects from a class using arraynotation

2006-08-10 Thread dnk
Andy Stone wrote: Have you tried... this._targetMc.destroyObject(eval("slidemenu.theThumb" + i)); Sometimes I find eval works when [] doesn't. -Andy I have not tried that - I will give it a go in a few hours. Thanks! d ___ Flashcoders@chatty

RE: [Flashcoders] DK - destroying objects from a class using arraynotation

2006-08-10 Thread Andy Stone
Have you tried... this._targetMc.destroyObject(eval("slidemenu.theThumb" + i)); Sometimes I find eval works when [] doesn't. -Andy -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of dnk Sent: Thursday, August 10, 2006 3:07 AM To: Flashcoders mailing lis