Hi all,

I'm trying to set the tabEnabled property of multiple SimpleButtons to false. I realized that the following code doesn't work because getChild() only gets DisplayObject references and not the 'actual' Object reference ... so i'm a bit stuck.

for (var i:uint = 0; i < my_mc.numChildren; i++)
{
if (this.getChildAt(i) is SimpleButton)
{
this.getChildAt(i).visible=true; // works
this.getChildAt(i).tabEnabled=false; // doesn't work
}
}

I know I could use my_mc.tabChildren=false as a workaround but I'd really like to know for future how to iterate through a MovieClip object and deal with each Object rather than the displayObject.

With thanks.