Here to do this we have to use the ExternalInterface API.
call() Method of this Class will help doing this.
<mx:Application xmlns:mx=”http://www.adobe.com/2006/mxml” layout=”absolute” creationComplete=”init()”>
private function init():void
The function is alertfromJS which we have to define at the Html page and in the JS block.
And that would be:-
A good programmer will always have an eye on the html wrapper generated by the Flex App.