Kineticz Interactive

  • Archive
  • RSS
  • Ask me anything

TLF Text breaks swfs Embedded in FlashBuilder

I just spent quite awhile trying to figure out a pretty obnoxious bug I just discovered in CS5. My workflow typically includes a .fla file with all of the assets for a project that I will embed as a byte array in Flash Builder using code like this:

[Embed(source=”assets/PROJECT_library.swf”, mimeType=”application/octet-stream”)]
private var AssetLibrary : Class;

Then in my library I have a MovieClip and the Class set to com.test.TLFText. The mc has just one textfield in it with an instance name of tlf_txt.

If you have a Class assigned to a MovieClip that contains a TLF TextField and try to load that swf into flashbuilder like I explain above, you will not be able to create any classes out of elements in your library.

Open that fla up and change it back to Classic Text and you are good to go.

This all happened because I was importing psds into flash, and all the text is added in as TLF text from PSD if you choose to make it editable.

You can download the project here if you want to see it happen or look more at the code:
http://code.kineticz.s3.amazonaws.com/bug_tlf_embed.zip

    • #flash
    • #flashbuilder
    • #bugs
  • 2 years ago
  • 6
  • Permalink
  • Share
    Tweet

6 Notes/ Hide

  1. rayrx liked this
  2. kineticz posted this
← Previous • Next →

About

kineticz interactive specializes in all facets of web and mobile development.

Twitter

loading tweets…

  • RSS
  • Random
  • Archive
  • Ask me anything
  • Mobile

Effector Theme by Carlo Franco.

Powered by Tumblr