var slP:ScrollPane=new ScrollPane();
trace((slP.getChildAt(2) as DisplayObjectContainer).numChildren);
var sprt003:Sprite=new Sprite();
slP.source=sprt003;
trace((slP.getChildAt(2) as DisplayObjectContainer).numChildren);
trace((slP.getChildAt(2) as DisplayObjectContainer).getChildAt(0)==sprt003);
//会输出true,就是这里了
slP.update();
没有评论:
发表评论