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


      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


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



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