Skip to main content
Inspiring
February 25, 2009
Answered

Using the TLF and Building a Component

  • February 25, 2009
  • 1 reply
  • 541 views
This might be Flex 101 but I wanted to take my work I've done with the TLF in one project, which is already component-ized in a sense using an MXML canvas, and I want to move it into a SWC so I could maintain the code separately and use my work in a second project.

Problem is I get a bunch of type not found errors for classes contained within the flash.text packages. Sample:

1046: Type was not found or was not a compile-time constant: ContentElement

There are 39 more of those errors for other classes. I'm not using the flash.text objects myself, I assume the TLF is employing them. Any idea on how to get those recognized as part of my SWC object or am I SOL?

This topic has been closed for replies.
Correct answer tpf70
Make sure your project that you are using the swc in has a required flash version of 10.0.0.
This is an old one: http://blog.flexexamples.com/2008/08/02/ (about 2/3 way down

1 reply

tpf70Correct answer
Inspiring
February 25, 2009
Make sure your project that you are using the swc in has a required flash version of 10.0.0.
This is an old one: http://blog.flexexamples.com/2008/08/02/ (about 2/3 way down
Inspiring
February 25, 2009
DUH! Of course...forgot the compiler argument. Works great now, thank you!