oy! people love avoiding answers here sometimes :-)
i've done good stuff w/ flash javascript interaction w/ little problem, but
not so much w/ shockwave--i'm assuming the same principals hold. i'm not
anywhere near my dev environ, so i'll try to give you more details monday.
but if you just need a lead on the javascript part (which all you should
need to do is refresh the movie's source) ....the script command to my
immediate recollection should be something like
document.objectname.src="yournewsource.dcr"; (i'm not sure if you can load
new parameters into the shockwave movie directly through the query string as
in a perl script or if you have to explicity set them through
document.ojectname.param1="boogers"; document.objectname.param2="snot";)
where objectname is the name of your dcr OBJECT and EMBED in the html. And
this should be included in a javascript function that can be called from
inside your shockwave movie. IE will need a VB script to catch your
shockwave's lingo ExternalEvent() call. Netscape will need liveconnect=true
i believe. Moock.com has all sorts of good stuff regarding flash to
javascript interaction. with a no look pass (and a bit of theft from
macromedia's site so i look extra smart for being right) i believe the ie
vbscript will look like:
<script language="vbscript">
sub myMovie_ExternalEvent(byVal aCommand)
if aCommand = "GetJSValue()" then
call GetJSValue()
elseIf aCommand = "TestFunction()" then
call TestFunction()
end if
end sub
</script>
where GetJSValue() would be the name of your function holding the
document.objectname...command.
if all fails w/ shockwave interaction, perhaps you could include a really
small flash movie that does the same thing (though i don't know if the
js-flash functions are maintained when included in director).
Like I said though, I'll be able to give you much more help w/ code samples
if you need them on monday.
any other questions about this since it may not be entirely clear (high
strung+cigs+coffee+sat morning+beastie boys) feel free to have me clarify...
-evan
oh - little tip for the javascript impaired -- since javascript has fairly
lousy doc's that go cross-browser, if you would ever like to examine a
specific object's attributes, sub objects, and their values a nice way to do
this is...
script
function examine(anObj) {
for(i in anObj) {
alert(i+": "+anObj[i]);
}
}
//where the calling command to this would be:
examine(document) //this will return a lot of stuff. you will end up
clicking for a day on the alerts that come up
//or more helpful, if your movie is called aMovie
examine(document.aMovie); //make sure to only call these once the page has
fully loaded or you might not get a good idea of what the attributes and
their values are.
>From: Tab Julius <[EMAIL PROTECTED]>
>Reply-To: [EMAIL PROTECTED]
>To: [EMAIL PROTECTED]
>Subject: <lingo-l> Javascript to refresh Shockwave?
>Date: Fri, 07 Jun 2002 21:21:44 -0400
>
>
>I haven't done a lot of javascript/Shockwave interaction, so maybe someone
>here has...
>
>If I have a page, with an embedded Shockwave movie, and some params to it,
>is it possible to issue a Javascript command (and if so, WHICH command) to
>basically refresh the embedded Shockwave, with a new set of params, without
>reloading the whole page? I guess one way around it would be some sort of
>a form submit that the Shockwave polled for, but that seems crude.
>
>TIA,
>
>- Tab
>
>[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!]
_________________________________________________________________
MSN Photos is the easiest way to share and print your photos:
http://photos.msn.com/support/worldwide.aspx
[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!]