1 Reply Latest reply on Sep 20, 2011 3:07 PM by AClaypoole

    Loading embeded fonts external Swf

    ssoucy

      Hello,

           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,

      Stephane