OK, thanks for your advice, Robert. I thought it would work on NS6.1 since
6.0 doesn't support shockwave in the first place. But it seems that all the
new (>6.0) NScape browsers are incapable of receiving externalEvent -
command? I even downloaded 7.0 Preview, but it didn't work either.

As there are so many exeptions in browser functionality, I think I must find
anoher way around... :)

Thanks anyway!

Jussi Jokinen
Tampere Polytechnic / Finland

> ----------
> From:         Robert Tweed[SMTP:[EMAIL PROTECTED]]
> Reply To:     [EMAIL PROTECTED]
> Sent:         11. elokuuta 2002 13:56
> To:   [EMAIL PROTECTED]
> Subject:      Re: <lingo-l> externalEvent on Netscape?
> 
> ----- Original Message -----
> From: "Jussi Jokinen" <[EMAIL PROTECTED]>
> >
> > I am looking for some shockwave - browser communication solutions. I
> > downloaded Macromedia's externalEvent sample movie (bundled with
> Director
> :
> > Examples of externalEvent command techNote) as it seemed THE thing.
> Still
> > the methods described on that page won't work on Netscape Browsers (4.7,
> > 4.71, 6.1 tested, JavaScript enabled). Somehow the browser doesn't seem
> to
> > catch the alert - command, 'cause absolutely nothing happens. IExplorer,
> on
> > the other hand, executes VBScript command precisely as mentioned in the
> > techNote.
> 
> First off, it doesn't work in Netscape 6, at all, whatsoever. Nor does it
> work in IE on the Mac. It does however work in Netscape 4 on both PC and
> the
> Mac. From the wording you've used, I'm assuming that you only have
> VBScript
> on the page. This is a problem, since VBScript is a Micro$oft thing, and
> Netscape does not support it. Here is how you can make it work properly on
> all supported browsers:
> 
> Firstly, the embed tag must included the parameter: swLiveconnect="true"
> or
> it will not work in Netscape 4. Second, include this VBScript for Internet
> Explorer:
> 
> <script language="VBScript"><!--
> // This assumes the ID/Name of the shockwave movie is "shockMovie"
> Sub shockMovie_externalEvent(aParam)
>   Eval(aParam)
> end sub
> // --></script>
> 
> That is all the VBScript you should ever include. Next, write your main
> code
> in JavaScript. if you have something like this as your JavaScript:
> 
> <script language="JavaScript"><!--
> function SaySomething(msg)
> {
>  alert(msg);
> }
> // --></script>
> 
> You call this from Director:
> 
> on mouseUp
>   ExternalEvent("SaySomething("&QUOTE&"Hello, World"&QUOTE&")")
> end
> 
> It's important that you use the above method to insert double quotes as
> string delimiters: you cannot just use single quote characters because
> VBScript won't recognise them and will break. That's all there is to it.
> 
> - Robert
> 
> [To remove yourself from this list, or to change to digest mode, go to
> http://www.penworks.com/lingo-l.cgi  To post messages to the list, email
> [EMAIL PROTECTED]  (Problems, email [EMAIL PROTECTED]). Lingo-L
> is for learning and helping with programming Lingo.  Thanks!]
> 
[To remove yourself from this list, or to change to digest mode, go to 
http://www.penworks.com/lingo-l.cgi  To post messages to the list, email 
[EMAIL PROTECTED]  (Problems, email [EMAIL PROTECTED]). Lingo-L is for 
learning and helping with programming Lingo.  Thanks!]

Reply via email to