Add a TextBox to the scene and name it: test_txt. Then add a
following code to the first frame:
test_txt.multiline = true;
test_txt.wordWrap = true;
test_txt.htmlText = "<img src = 'name.jpg'/>";
Where 'name.jpg' is a file placed in the same directory as
current ".fla" file. It works ok in Flash 9.0, but it doesn't in
AIR 1.0 (picture doesn't show). I have written a quite big
application in Flash, that shows html pages using TextField, and I
want to convert it into AIR, but I don't want to change it. Any
ideas? I would be grateful for any clues.
That's because your AIR application is not running in the
same location as your Fla ( this is the case both for running in
ADL, and when your app has been published and installed fully).
Create an assets folder and include this to be compiled into your
Thanks. I've included the file "name.jpg" inside the package
using Commands -> AIR Application and Installer Settings ->
Include files, and installed the application - however it still
doesn't work - when I start application using .exe file, picture
doesn't show, but when I use nearby .swf file, it appears. File
"name.jpg" has been copied properly.