Question

I have an asset FLA file that includes symbol assets.UI.something and there is a corresponding class assets/UI/something.as. When I'm publishing it into SWC, I can unzip it and see (in catalog.xml) that the symbol is there.

I also have a main file that has my asset SWC included in publish settings (merged into code). But when I run it I can see that the symbol isn't included in the final SWF.

I've tried many ways and eventually I've discovered that if I remove the AS class file (assets/UI/something.as) after I make SWC but before I compile the final SWF, then the symbol gets included in SWF...

Any ideas why it is happening and how to fix it?

Thanks!

Was it helpful?

Solution

Seems like your symbols are overridden with class files that your compiler sees when compiling your application. So when you compile your swc everything works fine and all the assets are there, but when you compile your application there are other versions of all the same classes you had when you compiled the swc, but now there are no assets from FLA linked to them. Just move all SWC related stuff (fla and all the as files) outside of your application source path.

OTHER TIPS

Maybe you need to change linkege method: File -> Publish settings -> actionscript settings Change Default linkage to merged into code and try

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top