rss twitter

Embed Tags in FDT

Just a Quickpost if you're encountering error-messages in FDT while using Embed Tags for library-items or files directly.

I've struggled with this sometimes:
Error: Unable to transcode sample.jpg

This is because your path doesn't fit. Believe me, it's true - you have to target relative to your src-folder. So e.g.

Actionscript:
  1. [Embed(source="../assets/sample.jpg")]
  2. private var Texture:Class;
  3. // root
  4. // -> src
  5. // -> assets
  6. // -> -> sample.jpg

As well as with this one:
Error: The definition of base class BitmapAsset was not found.

This one is caused by the missing flex.swc of the Flex SDK you're using, so e.g. a Pure AS3 SDK. Just take the shipped FLEX_3_SDK_FOR_FP10 which should link 5 swcs including flex.swc and therefor the BitmapAsset Class.

One Response to “Embed Tags in FDT”

  1. backlinks says:

    You made some respectable points there. I looked on the web for the difficulty and located most individuals will go together with along with your website.

Leave a Reply

Powered by WordPress | Free T-Mobile Phones for Sale | Thanks to Palm Pre Blog, Video Game Music and Get Six Pack Abs