0 Replies Latest reply on Nov 14, 2007 5:07 AM by kaushal_bs

    ExternalInterface

    kaushal_bs
      In my flex application, there is one swfloader, which loads .swf file, this swf file is calling one function of flex using ExternalInterface. In Mozilla Firefox this runs successfully, but in IE6 of my PC it doesn't work, while in IE6 of other PC it works.

      If this is browser issue, and client is using such buggy browser, then I want to detect it and show some message. How i can do this?

      Plz help me.

      index.mxml contain following script

      <mx:SWFLoader id="mySwf" x="80" y="54" source="temp.swf" autoLoad="true"/>

      private function initApp():void{
      ExternalInterface.addCallback("methodCallingFromFlash",callToFlex);
      }

      private function callToFlex(msg:String):void{
      mx.controls.Alert.show(msg);
      }

      temp.fla contain following script

      import flash.external.ExternalInterface;
      ExternalInterface.call("index.methodCallingFromFlash","hi flex..!");