Skip to main content
Inspiring
Feb 25, 2009 7:31 PM UTC
Answered

Using the TLF and Building a Component

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 is closed to new replies. Start a new post to keep the conversation going.
tpf70Correct answer
Inspiring
Feb 25, 2009 9:17 PM UTC
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

2 replies

tpf70Correct answer
Inspiring
Feb 25, 2009 9:17 PM UTC
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
Translate
Inspiring
Feb 25, 2009 9:56 PM UTC
DUH! Of course...forgot the compiler argument. Works great now, thank you!
Translate