[Flashjs] From Flash to Javascript...
Yuri Subach
subach at whirix.com
Wed Sep 19 08:39:55 PDT 2007
In my project I've used ExternalInterface for IE browser only. Other
browsers work fine through getUrl() calls.
That's why ExternalInterface is not required in Linux, everything works in
Flash 8 and 9.
On 9/19/07, Mark Stickley <maktheyak at theyakshack.co.uk> wrote:
>
> It doesn't specifically say it's not supported but it doesn't say that it
> is either. I think as it is supported by Firefox, Mozilla and Netscape its
> probably worth writing a quick test to make sure. Otherwise you're left with
> renaming the function to see if that works.
>
> Mark
>
> On 9/19/07, Nagasamudram, Prasanna Kumar <
> Prasanna.Nagasamudram at in.unisys.com> wrote:
> >
> > 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>
> > 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" 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
> >
> >
> >
> > _______________________________________________
> > 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/5378fef9/attachment.html
More information about the Flashjs
mailing list