Thanks a lot Kyle.
It works either way :-) (with or with out the name attribute). The problem was that I was sending double quotes in the XML string and it worked fine once I replaced the double quotes with single quotes. Thanks again Senthil ________________________________ From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Kyle Patterson Sent: Wednesday, April 30, 2008 11:37 AM To: [email protected] Subject: RE: [AFFUG Discuss] ExternalInterface.addCallBack() Try using the "name" of your flash object along with the "id".... <object name="detailRptGrid" id="detailRptGrid"........ I had the same problem and that fixed it. Kyle ________________________________ From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Raj, Senthil Sent: Wednesday, April 30, 2008 11:16 AM To: [email protected] Subject: [AFFUG Discuss] ExternalInterface.addCallBack() Hello All, Anybody had success with this ExternalInterface.addCallBack()? Your help is greatly appreciated I tried using the following and it doesn't seem to be get called Wrapper <object id="detailRptGrid"........... Javascript <script language="JavaScript"> detailRptGrid.buildReport("<%=reportXML%>"); </script> ActionScript //called during 'initialize' event of the application private function initAppVars():void { ExternalInterface.addCallback("buildReport", buildDataObjects); } public function buildDataObjects(reportString:String):void { Alert.show(reportString); } Thanks a lot Senthil Raj ------------------------------------------------------------- To unsubscribe from this list, simply email the list with unsubscribe in the subject line For more info, see http://www.affug.com Archive @ http://www.mail-archive.com/discussion%40affug.com/ List hosted by FusionLink <http://www.fusionlink.com> ------------------------------------------------------------- ------------------------------------------------------------- To unsubscribe from this list, simply email the list with unsubscribe in the subject line For more info, see http://www.affug.com Archive @ http://www.mail-archive.com/discussion%40affug.com/ List hosted by FusionLink <http://www.fusionlink.com> ------------------------------------------------------------- ------------------------------------------------------------- To unsubscribe from this list, simply email the list with unsubscribe in the subject line For more info, see http://www.affug.com Archive @ http://www.mail-archive.com/discussion%40affug.com/ List hosted by http://www.fusionlink.com -------------------------------------------------------------
