【发布时间】:2012-10-07 17:08:20
【问题描述】:
我在 flash builder 中创建了 flash 项目和一个 flash 组件项目,然后在 flex 组件项目中创建了一个 spark 组件。当我尝试在 Flash 中添加自定义组件时,它抛出错误
//code
this.addChild(new TestComp);
//compilation error
1067: Implicit coercion of a value of type TestComp to an unrelated type flash.display:DisplayObject. Main.as /pw3d/src line 35 Flex Problem
是否可以在 Flash 中使用 flex 组件?有解决办法吗?
【问题讨论】:
-
@TimofeiDavydik 如果这是 youtube,我会投票赞成 :)
标签: flash apache-flex custom-component