FLEX载入FLASH的SWF
要在Application里添加Sprite,可以先把它装进一个UIComponent,然后再添加这个UIComponent:
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: