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;
,但它不工作。感謝您提供任何指導:)