ExternalInterface is not available as I am using this in mobile application. Hence I am using stagewebview.
I am using stagewebview(to display HTML Google map) to call a javascript function in flex mobile application. I am passing a selected item value(from flex) to a javascript function like below: webView.loadURL(“javascript:myfunction(‘” + lst.selectedItem[‘name’] + “‘)”); and in my html file when i add an alert i am getting the value too. But the problem is that the required function is working only when i add it under onload in body as below: <body onload="myfunction('value')"> but when i remove the onload method from the body of html and call it from flex the required action is not happening inside the JS function. Kindly help me out on what is causing the issue?