【发布时间】:2014-08-08 19:39:11
【问题描述】:
我正在尝试在运行时向 actionscript TabBar 控件添加一个新选项卡。当我使用 addChild() 向标签栏添加标签时,我在运行时遇到异常:
Error: addChild() is not available in this class. Instead, use addElement() or modify the skin, if you have one.
但是,当我尝试使用 addElement() 时,我在编译时收到错误:
1061: Call to a possibly undefined method addElement through a reference with static type spark.components:TabBar.
【问题讨论】:
标签: dynamic actionscript tabbar