Just posting this because maybe it will help someone...
I decided to try using a TextLayout component in a SWF loaded into a rather large Flex app that has been in development for some time.. well.. it blowed up.
Main Thread (Suspended: VerifyError: Error #1014: Class flash.text.engine::ContentElement could not be found.)
Here's the weird part...
- The SWF worked fine when viewed directly in the browser (as expected).
- If the SWF was loaded into the Flex app which was launched by "run" or "debug" from FlexBuilder... it broke (as expected, see error above).
- If the SWF was loaded into the Flex app which was viewed directly in the browser ... it broke (as expected, see error above).
- If the SWF was loaded into the Flex app which was launched by "Profile" from FlexBuilder.... it worked (aaahhhh?)
That last one threw me for a loop because the problem was the Flex project was set to compile for Flash Player 9 and the SWF being loaded in with the TextLayout is dependent on some Flash Player 10 tricks. So why then did it work when I did a "Profile" from FB? .. somewhere there must be a setting or some documentation for this (the profile feature probably relies on something FP10 specific) but I'm not looking for it since I'm beyond the issue now.
Anyway, the solution of course was just to set the Flex project to compile for Flash Player 10...
Five gallons of milk in a four gallon box Thursday, February 04, 2010
