Subject: [Flashcoders] DK - destroying objects from a class using
arraynotation
Hi there! I have a class in which a few objects are created from my library
(loader
component instances and a button instance). They were created sequenciually
(IE hit0,
hit1, hit2, etc) At any rate - I need to destroy
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
___
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
Arul Prasad M L wrote:
snip
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.
snip
I did in fact realize that this morning once I read up
4 matches
Mail list logo