All,
Both externalParamName and externalParamValue work just fine in IE on the Mac. These
commands allow you to read parameters that are written into the SW movie's
object/embed tags.
Both externalEvent and evalScript fail in IE on the Mac (no liveConnect support).
These commands allow you to trigger or respond to browser scripted functions
(JavaScript/VBScript).
These are different animals getting mixed up here. I believe that Yariv's initial
question was regarding how to use externalEvent/evalScript to do some movie-browser
communication. With a Mac workaround in hand, he then redirected us to a new question,
IE on Windows requires the presence of a VB Script function to recieve Shockwave's
externalEvent calls, and he wanted to see an example of some code that did this. So...
Check this out:
<http://www.shockwavemovies.com/temp/IE_browserScripting/>
This is a quick'n'dirty IE browser scripting demo movie (I designed and tested this
using _only_ Windows IE (there is no JavaScript function there to receive
externalEvent commands from NS browsers for example). The "index.html" file in that
directory has both JavaScript and a VB Script functions in it, you'll see that the VB
Script recieves the SW data via the 'aCommand' argument (check the code). You should
be able to redirect to a JavaScript function within that VB function, just remove the
line that says "alert aCommand" within the VB Script function, and replace it with a
call to your JavaScript function.
Hope that helps!
Cheers,
Tom
> -----Original Message-----
> From: Yariv Alter Fin [mailto:[EMAIL PROTECTED]]
> Sent: Monday, August 27, 2001 3:37 AM
> To: [EMAIL PROTECTED]
> Subject: Re: <lingo-l> IEmac5 and evalScript?
>
>
> Rodrigo Thanks & Hi to all,
>
> The externalParamName/Value does indeed work in IE for the mac, yet
> as far as i know it can only be used once at startup to pass
> parameters from the page to the shockwave movie. yet i might be
> (hopefully) wrong: Does anyone know of a way to change these values
> while the movie is already running and re-read them from within the
> movie?
>
> Tak,
>
> Yariv
>
> >Hi list,
> >
> >There's a way to use Evalscript in IE in a mac, I've used
> this recently in a
> >job for MTV here in Brazil. The diference between IE and
> LiveConnect browser
> >enabled is that IE pass the parameters to SW via <param> in
> the <object>
> >tag. So you can use document.write in javascript to write
> the parameters.
> >
> >ps the name of <param> must be sw1,sw2...up to sw9
> >
> >ex: <PARAM name="sw1" value="your_value">
> >
> >best regards
> >
> >Rodrigo Peres
> >
> >on 8/26/01 9:06 PM, Yariv Alter Fin at [EMAIL PROTECTED] wrote:
> >
> >> Thanks Tom!
> >>
> >> Indeed there seem to be no way of evalScripting on the
> macIE, and I
> >> resolved in the meantime to a combination of the
> javascript-url and
> >> the php/sql server that's included (luckily) in the project. the
> >> problem is that i have to pass a variable to the
> javascript function
> >> on the page, and the IE always needs the VBscript
> redirecting to the
> >> javascripts. at the moment I am doing this by storing the string
> >> after the location of an invisible frame and then reading it later
> >> from javascript. this works, only it does take another gotonetpage
> >> and an unsure waiting period, and therefore is a lil clumsy...
> >>
> >> Question is, does anybody have any VBscripts that can
> recognize the
> >> javascript function name as well as the sent variable
> value and pass
> >> these on to the javascript function itself?
> >>
> >> If not, maybe some VBscript online resources links...?
> >>
> >> TIA,
> >>
> >> Best Regards,
> >>
> >> Yariv
> >>
> >>> Yariv,
> >>> EvalScript and externalEvent require the browser to support
> >>> liveConnect, IE on the Mac does not support this and
> therefore these
> >>> commands will fail in that browser (this is a MS imposed
> limitation,
> >>> not a bug in SW). I've heard that same flavors of IE on
> the Mac have
> >>> enabled this, but I'm not immediately certain of those facts so I
> >>> hope someone here will speak up. Otherwise, IE-Mac and yer outta
> >>> luck...
> >>>
> >>> There are possible workarounds, one includes issuing a
> gotoNetPage
> >>> command where the URL you provide is
> "javascript:someFunction()" or
> >>> something similar, I believe that there's an article
> about this at
> >>> www.director-online.com, but I'm unable to recall the
> URL right now.
> >>>
> >>> Cheers,
> >>> Tom
> >>>
> >>>> -----Original Message-----
> >>>> From: Yariv Alter Fin [mailto:[EMAIL PROTECTED]]
> >>>> Sent: Monday, August 20, 2001 7:32 PM
> >>>> To: [EMAIL PROTECTED]
> >>>> Subject: <lingo-l> IEmac5 and evalScript?
> >>>>
> >>>>
> >>>> Hi all, a short question: did anyone actualy ever see
> an evalScript
> >>>> message from javascript arriving safely to a shockwave movie in
> >>>> explorer for the mac? or has any information regarding
> compatibilty
> >>>> or workarounds? the same simple code that works in any other
> > >>> browser/platform combination (out of the four cardinal
> options) seems
> > >>> to fail when it comes to the mac IE.
> > >>>
> > >>> TIA
> > >>>
> > >>> Yariv
> > >>>
> > >>>
> > >>> [To remove yourself from this list, or to change to
> digest mode, go to
> >>>> http://www.penworks.com/LUJ/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/LUJ/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/LUJ/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/LUJ/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/LUJ/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/LUJ/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!]