Is JavaScript method call ready
<?xml version="1.0" encoding="utf-8"?> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" backgroundColor="#FFFFFF" creationComplete="initApp();" width="350" height="300"> <mx:Script> import mx.controls.Alert; import flash.external.ExternalInterface; private function initApp():void{ if(ExternalInterface.call("isJSReady")){ mx.controls.Alert.show("JavaScript is Ready"); } } </mx:Script> </mx:Application>