2012-12-20 29 views
2

我正在使用Flexpaper庫開發flex pdf閱讀器應用程序。我從http://flexpaper.devaldi.com/download/獲得了flexpaper庫,並將其添加到我的項目構建路徑中,其在Flex Web,桌面和移動項目中都運行良好。在Flex項目中實現FlexPaper庫

我從http://code.google.com/p/flexpaper/downloads/list獲得源代碼,並在我的flex項目中實現以定製應用程序。

對於Flex桌面項目編譯沒有錯誤但無法正常工作。 Swf文件未加載,始終在右側顯示旋轉。

對於顯示編譯錯誤的Flex移動項目。 無法解析到一個組件實現

請給我的解決方案..

感謝和問候 迪內希

回答

2

Flex桌面和Web項目都被編譯和運行沒有錯誤。

我我的代碼更改爲

protected function button1_clickHandler(event:MouseEvent):void 
{    myViewer.SwfFile="Paper.swf";        
} 
<flexpaper:FlexPaperViewer id="myViewer" x="10" y="44" > 
</flexpaper:FlexPaperViewer> 
<s:Button x="306" y="19" label="Load Swf" click="button1_clickHandler(event)"/> 

,而不是這個

<flexpaper:FlexPaperViewer x="10" y="10" height="301" SwfFile="Paper1.swf"> 
</flexpaper:FlexPaperViewer> 

對於顯示編譯錯誤Flex移動項目。 無法解析爲組件實現。 幫我

3

我得到了解決方案。我的Flex項目和Flex移動項目都可以使用定製的摺紙庫。

我改變了我的代碼

<mx:VBox xmlns:mx="library://ns.adobe.com/flex/mx" 
     xmlns:fx="http://ns.adobe.com/mxml/2009" 

感謝和問候, 迪內希