首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 网络技术 > 网络基础 >

(flex4): addChild() is not available in this class

2012-10-06 
(flex4): addChild() is not available in this class.flex4中:just create another container wich u pla

(flex4): addChild() is not available in this class.

flex4中:

just create another container wich u place displayObject in:

// container ( IVisualElement ) for DisplayObjects
var container:UIComponent = new UIComponent();
addElement( container );

// displayObject goes to container
var displayO:Sprite = new Sprite();
container.addChild( displayO );

?

flex3中:

var container:UIComponent = new UIComponent();
addChild( container );

1 楼 yaland 2012-07-15   谢谢兄弟!

热点排行