0 Replies Latest reply on Feb 29, 2012 1:36 PM by imkevincampbell

    ReferenceError: Error #1065 thrown when accessing embedded asset after re-complile (SDK 4.6)

    imkevincampbell

      I'm embedding an external .png file located in the project's source path:

       

      [Embed(source="/com/widget/asset/image/close.png")]

      public var CloseButtonImage:Class;

       

      No error is thrown by the SWF after making a change to the class containing this code and then compiling.  However, if I compile again with no change to the class in question, the "Error #1065: Variable ClassName_CloseButtonImage is not defined" error is thrown.

       

      This behavior only started after switching mxmlc compilers. Previously SDK 4.1.0.16076, and currently 4.6.0.23201.

       

      Is there a compiler argument that can resolve this?

       

      Thanks,

      Kevin