I have a trouble with an AIR application developped with Flex but the error seems to come from the Flash/AIR, after some searches a staff member (Flex harUI) said me that I could find more help for my trouble here.
I'm developping an AIR application which loads an external swf. This swf contains 'Imported for runtime sharing' fonts from another swf to reduce its size.
When the AIR application has finished to load (see message below) the whole application crashes without giving any error message except the usual "Process terminated unexpectedly" error message.
End Loading: [SWF] C:\Users\dev02\myProject\index.swf - 83,930 bytes after decompression
Process terminated unexpectedly.
Launch command details: "C:\Program Files (x86)\Adobe\Adobe Flash Builder 4\sdks\4.6.0\bin\adl.exe" -runtime "C:\Program Files (x86)\Adobe\Adobe Flash Builder 4\sdks\4.6.0\runtimes\air\win" "C:\Users\dev02\Adobe Flash Builder 4\Languages_Editor\bin-debug\Language_Editor-app.xml" "C:\Users\dev02\Adobe Flash Builder 4\Languages_Editor\bin-debug"
I use Flash Builder 4 (build 272416) with sdk 4.6.
Full discussion here.
I tried to load the external swf with the most basics codes, it works with a Flash web app but not with a Flex/AIR app or a Flash/AIR app.
Thanks for the help !
I haven't taken a shot at this yet but have you tried converting it to a SWC instead of SWF while using compiler parameters to load the external SWC at runtime? Here's a link to some compiler arguments for various RSL linking:
Another Adobe article on RSL object types and their shared nature that I'm not sure is still relevant but do note the chart on objects that are shared a little more than half way down:
It mentions Fonts are not sharable unless embedded in a MovieClip.
Thanks for the anwser.
In fact, I cannot specify a swc because my main application is an editor of sub-applications where each one has its own library.
The bug remains when sharing a simple MovieClip too.
Maybe, if I explain my project it will be a little more clear.
I'm developping a multi-languages module / application.
For each module, I have an external xml for texts. So in order to add a new language we don't need to recompile, just to change texts in the xml. But, I had to externalize my fonts, (imagine if each swf contains the whole characters set like latin, cyrillic, etc.).
And then, I have my main text editor application above the module, which loads texts xmls and a preview of the page where we need to change the text. (This is where it crashes, during the process of loading the preview).
My editor works great for translating, changing texts, modify images but without the preview, what is really frustrating.
(not so ergonomic, I know...)
I hope it will help you to understand my trouble.