I work with flash builder 4, and I have an issue that when I try to load a specific font from External SWF I've get an exception thrown by the flash player: 'ArgumentError: Error #1508: The value specified for argument font is invalid.' However I know that the font is on the machine and is valid.
I built a small prototype to try and figure out where the problem is happening and it seems to be related to the parameter "loadForCompatibility=true" parameter in the swfLoader.
For example if I use the following line of code, I receive the ArgumentError
<mx:SWFLoader id="swfLoader" source="http://applications.mydomain.com/FileManagerWindow.swf" loadForCompatibility="true" />
However if I use <mx:SWFLoader id="swfLoader" source="http://applications.mydomain.com/FileManagerWindow.swf" /> the argument is not displayed and the application loads the font as it should.
The big problem is for other reasons I have to include loadForCompatibility="true" or something else is broken.
Can anyone shed some light on whether this is a known bug in Flash Builder 4 or how I can work around the problem.
Thanks in advance,
Were you ever able to figure this out? I'm having a similiar issue in Flex when attempting to load a sub-application using SWFLoader with "loadForCompatibility=true" which loads it's own fonts.