Error #1034: Type Coercion failed: cannot convert bla to IFlexModule
Finally the problem was... the CSS filename (bla.css), was the same as the application MXML file (bla.mxml)! Changing the name of the CSS file to something different (app.css) basically solved the problem. Guess when you compile a CSS file to SWF, internally the generated ActionScript class is named the same as your CSS file and thus conflicts with the main application classname.
To learn how to load at runtime, read the "Loading style sheets at run time" in the Flex Livedocs.
1 comment:
Another weird thing, you can't name an Application mxml "prototype.mxml". It'll run locally w/i Flash/Flex Builder, but it won't via command line builds and you get this. Joys of Flex.
[ERROR] Type was not found or was not a compile-time constant: prototype. [Generated code (use -keep to save): Path: prototype-generated.as, Line: 682, Column: 14]
Post a Comment