我在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 :) –