Hi Neelima, check the below stuff may helps u.. The ExternaInterface API makes it very simple to call methods in the enclosing wrapper. You use the static call() method, which has the following signature: Flash.external.ExternalInterface.call(function_name:String[,arg1,…]):Object;
The following example script block calls the JavaScript f() function in the enclosing wrapper by using the call() method: <?xml version="1.0" encoding="iso-8859-1"?> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"> <mx:Script> import flash.external.*; public function callWrapper():void { var f:String = "changeDocumentTitle"; var m:String = ExternalInterface.call(f,"New Title"); trace(m); } </mx:Script> <mx:Button label="Change Document Title" click="callWrapper()"/> </mx:Application> On Wed, Apr 22, 2009 at 7:42 PM, Neelima Kakarla < [email protected]> wrote: > Hi > > I want to display google ads in my application. > It's given javascript. > How to call that script in my air application > > Regards > Neelima > > > > -- Thanks & Regards, Jagan Mady's --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Flex India Community" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/flex_india?hl=en -~----------~----~----~----~------~----~------~--~---

