1
我有问题访问我的displayObject的子孩子。这里是我的代码:私人Flex:为什么我不能得到显示对象的子对象?
function resizeTag(event:MouseEvent):void{
var currTagPos:Number = 1;
var theTagBox:DisplayObject = tagCanvas.getChildAt(currTagPos); //i have confirmed that it exists on the stage and has sub-children
trace(theTagBox.getChildAt(0).width);
}
基本上我试图让:
tagCanvas.getChildAt(currTagPos).getChildAt(0).width;
,但它不工作。感谢您提供任何指导:)