[Flashjs] From Flash to Javascript...
Nagasamudram, Prasanna Kumar
Prasanna.Nagasamudram at in.unisys.com
Wed Sep 19 06:19:49 PDT 2007
I found the following which says that this is not supported in Linux
ExternalInterface is supported in the following combinations of browser
and operating system:
Browser
Operating System
Internet Explorer 5.0 and higher
Windows
Netscape 8.0 and higher
Windows
Macintosh
Mozilla 1.7.5 and higher
Windows
Macintosh
Firefox 1.0 and higher
Windows
Macintosh
Safari 1.3 and higher
Macintosh
________________________________
From: flashjs-bounces at osflash.org [mailto:flashjs-bounces at osflash.org]
On Behalf Of Mark Stickley
Sent: Wednesday, September 19, 2007 6:34 PM
To: flashjs at osflash.org
Subject: Re: [Flashjs] From Flash to Javascript...
http://livedocs.adobe.com/flash/8/main/wwhelp/wwhimpl/common/html/wwhelp
.htm?context=LiveDocs_Parts&file=00002200.html
That should have all the answers you need. First result on Google for
ExternalInterface.
On 9/19/07, Nagasamudram, Prasanna Kumar <
Prasanna.Nagasamudram at in.unisys.com
<mailto:Prasanna.Nagasamudram at in.unisys.com> > wrote:
But, is the external interface is supported on Linux ?
If so, can you please send me the sample code of using it ?
________________________________
From: flashjs-bounces at osflash.org [mailto:flashjs-bounces at osflash.org]
On Behalf Of Mark Stickley
Sent: Wednesday, September 19, 2007 6:13 PM
To: flashjs at osflash.org
Subject: Re: [Flashjs] >From Flash to Javascript...
I recently had the same problem. Interestingly it was with a function
also called updateStatus, although other functions worked OK. I'm
thinking it's possible that that name is reserved in some way - you
could try renaming the function.
I actually solved the problem by using Flash 8's ExternalInterface
object so if you don't mind Flash Player 8 as a requirement then that's
a good option. If you do go for that option please note that you will
need to include a library file that comes with flash (I cant remember
the name of it offhand).
Mark
On 9/19/07, Nagasamudram, Prasanna Kumar
<Prasanna.Nagasamudram at in.unisys.com> wrote:
The following is the sample code
HTML
====
<html xmlns=" http://www.w3.org/1999/xhtml
<http://www.w3.org/1999/xhtml> " xml:lang="en" lang="en">
<head>
<title>FlashSar</title>
<script type="text/javascript" src="JavaScriptFlashGateway.js
"></script>
<script>
function updateStatus(message) {
window.status = message;
}
</script>
</head>
<body bgcolor="#ffffff">
<div id="flash">
<script type="text/javascript">
var uid = new Date().getTime();
flashProxy = new FlashProxy(uid, 'JavaScriptFlashGateway.swf');
var tag = new FlashTag(' t2.swf', '600', '300');
tag.setFlashvars('lcId='+uid);
tag.write(document);
</script>
</div>
</body>
</html>
Action script
=============
// Set up Flash Integration
import com.macromedia.javascript.JavaScriptProxy;
var jsProxy:JavaScriptProxy = new JavaScriptProxy(_root.lcId, this);
ib1.onRelease=function()
{
trace("Hello");
jsProxy.call ("updateStatus","From flash");
}
Im trying to call a javascript function on the click on a flash button.
But I don't see the javascript function to be called.
Thanks
Prasanna
-----Original Message-----
From: Nagasamudram, Prasanna Kumar
Sent: Wednesday, September 19, 2007 4:33 PM
To: 'flashjs at osflash.org'
Subject: From Flash to Javascript...
Hi All
I'm using Java script/Flash integration kit to communicate b/w
Javascript and flash using the
flashProxy.call("someflashmethod","params");
But
If I do the same thing from flash to javascript I see that the
javascript function is not being called.
proxy.call("somejavascriptmethod","params");
Can you please give me some pointers ?
Thanks
Prasanna
_______________________________________________
Flashjs mailing list
Flashjs at osflash.org
http://osflash.org/mailman/listinfo/flashjs_osflash.org
_______________________________________________
Flashjs mailing list
Flashjs at osflash.org
http://osflash.org/mailman/listinfo/flashjs_osflash.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://osflash.org/pipermail/flashjs_osflash.org/attachments/20070919/642b26d4/attachment-0001.html
More information about the Flashjs
mailing list