我在flash builder和flash组件项目中创建了flash项目,然后在flex组件项目中创建了spark组件。当我尝试在闪存中添加自定义组件时,它抛出错误我可以在Flash项目中使用Flex中创建的客户组件吗?
//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 :) –