1 Reply Latest reply on Nov 30, 2009 1:47 PM by Flex harUI

    Flex SDK error - ImportRecord cannot be cast to DefineFont

    darpified

      Hello, I'm using the FlexSDK, tried both stable and latest version from svn.

       

      Trying to Embed a source file into actionscript that is a swf containing an ImportRecord2 field that

      pulls in a font from an external swf to it.

       

      Gives this error message, works fine if the font is included manually.

       

      Error: Unable to create source hmt_test_asset.: flash.swf.types.ImportRecord cannot be cast to flash.swf.tags.DefineFont
      [Embed(source='../resources/test.swf')]

       

      Is this documented and intended behavior?  What could be some possible workarounds for this?

       

      If this is a bug, do I need to get the smallest possible swf reproducing the error?

       

      Thanks,

      Robert Peters