要在Application里添加Sprite,可以先把它装进一个UIComponent,然后再添加这个UIComponent:
![ContractedBlock.gif](https://www.cnblogs.com/Images/OutliningIndicators/ContractedBlock.gif)
![ExpandedBlockStart.gif](https://www.cnblogs.com/Images/OutliningIndicators/ExpandedBlockStart.gif)
import mx.core.UIComponent;
private function init():void {
var sp:Sprite = new Sprite();
var uc:UIComponent = new UIComponent();
uc.addChild(sp);
addChild(uc);
}
要在Application里添加Sprite,可以先把它装进一个UIComponent,然后再添加这个UIComponent:
转载于:https://www.cnblogs.com/cwin5/archive/2009/03/22/1418836.html