Copy link to clipboard
Copied
Hi all,
Im having problems adding jpeg images to my code, i thought i could just drag them into the library, this worked because they are now in the library however i keep getting:
Scene 1, Layer 'Action', Frame 81, Line 14 | unable to resolve 'xxx.jpg' for transcoding |
Scene 1, Layer 'Action', Frame 81, Line 14 | Unable to transcode xxx.jpg. |
I tried looking online but i couldnt find a solution!
my code is:
[Embed (source="xxx.jpg")]
var xxxImage: Class;
thanks in advance!
embed code directives should be used in class files.
for timeline coding, assign a class to your jpg (eg, JPG1), and use code similar to:
var jpg1:JPG1=new JPG1();
var bmp:Bitmap=new Bitmap(jpg1);
addChild(bmp);
Copy link to clipboard
Copied
embed code directives should be used in class files.
for timeline coding, assign a class to your jpg (eg, JPG1), and use code similar to:
var jpg1:JPG1=new JPG1();
var bmp:Bitmap=new Bitmap(jpg1);
addChild(bmp);
Copy link to clipboard
Copied
Thanks very much! the problem I have is that im comfortable with as2 but not so much as3 yet.
Copy link to clipboard
Copied
you're welcome.
Find more inspiration, events, and resources on the new Adobe Community
Explore Now