Thanks Douglas.
But I am making the call from my javascript
Javascript
<script language="JavaScript">
detailRptGrid.buildReport("<%=reportXML%>");
</script>
Thanks
Senthil
________________________________
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Douglas
Knudsen
Sent: Wednesday, April 30, 2008 11:36 AM
To: [email protected]
Subject: Re: [AFFUG Discuss] ExternalInterface.addCallBack()
addCallback()
Registers an ActionScript method as callable from the container. After a
successful invocation of addCallBack(), the registered function in Flash
Player can be called by JavaScript or ActiveX code in the container.
This only registers the ability for a JS method to call a AS method.
You still need to perform the call to JS from AS with call() and/or
your JS has to call the registered method in AS land.
DK
On Wed, Apr 30, 2008 at 11:16 AM, Raj, Senthil <[EMAIL PROTECTED]>
wrote:
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>
-------------------------------------------------------------
--
Douglas Knudsen
http://www.cubicleman.com
this is my signature, like it?
-------------------------------------------------------------
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
-------------------------------------------------------------