0 Replies Latest reply on Mar 15, 2012 4:28 PM by dazaweb

    Flex Error - ReferenceError: Error #1065: Variable flash.external::HostObject is not defined

    dazaweb

      Has anyone gotten this error with FlashBuilder 4.6 and Extension Builder. I do believe I have all the right classes imported and I am using defaults on SDK's and swc's

      Code:

      <?xml version="1.0" encoding="utf-8"?>
      <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" historyManagementEnabled="false">
          <mx:Script>
              <![CDATA[
                  import flash.external.*;
      
                  [Bindable]
                  private var hostName:String = HostObject.mainExtension;
      
              ]]>
          </mx:Script>
          <mx:VBox height="100%" width="100%" verticalAlign="middle" horizontalAlign="center">
              <mx:Button label="Run PS code" click="TestPhotoshop.run()" enabled="{hostName.indexOf('photoshop') > -1}"/>
          </mx:VBox>
      </mx:Application>
      

       

       

      Screen Shot 2012-03-15 at 4.27.42 PM.png