我想顯示位於AIR應用程序的app-storage目錄中的圖像。該圖像必須顯示在html文本區域,其中html文本是從本地嵌入式sqlite數據庫中進入的。在AIR中顯示圖像app
當我把下面的代碼:顯示
imageTest.htmlText = '<img src="app-storage:/demo.jpg" border="0" />';
什麼。
但是,而不是應用程序,存儲路徑的時候,我把圖像的絕對URL在網絡上,象下面這樣:
imageTest.htmlText = '<img src="http://www.example.com/demo.jpg" border="0" />';
正確顯示圖像。
此外,我檢查了應用程序存儲方法能夠找到圖像,但它只是不顯示在htmlText容器中。例如,下面的代碼顯示圖像:
imageTest.location = 'app-storage:/demo.jpg';
任何建議我應該怎樣才能讓圖像顯示?我使用Adobe Flex Builder 3作爲IDE。
感謝
維納亞克
謝謝。這工作。 – Vinayak 2010-06-25 10:52:16