i have an example of dcr-swf -javascript communication working at
http://www.evanadelman.com/swf-dcr-communication/test.html
The example covers IE, Netscape 4.xx but not Netscape/Mozilla 6+ (afaik, External Event is flawed for all these browsers and variants). If anyone checks Safari and gets positive or negative results, let me know.
The keys to working in IE are: must have vbscript that has a function whateveryourmovieidis_ExternalEvent to catch external events - this function can do whatever it wants. In mine, I call a javascript function that calls the originally intended function - just to make it easier to read.
If the script is too complicated and anyone needs more explanation, please feel free to ask.
Evan
Andrew Dempsey wrote:
Hi all,
I can't figure out why I am having trouble with "externalEvent" in shockwave. Having spent the last 24 hours searching online for help, I turn to you all for help! I've done projectors for a couple of years, but am fairly new to shockwave and especially getting a movie to interact with the browser it's embedded in.
I have a shockwave movie embedded in a browser window. In the movie I have this simple behavior attached to a button:
on mouseUp me externalEvent("openNewWindow('alphabet.htm')") end
In the <head> section of the webpage, I have the following script:
<script language="JavaScript">
function openNewWindow(newURL) { window.open
(newURL,"alphabet","toolbar=no,location=no,directories=no,status=yes,men
ubar=no,scrollbars=no,resizable=no,width=450,height=450");}
</script>
However, when I click on the button that has the mouseUp behavior, and hold my breath waiting for the new browser window to pop open, nothing happens (and I eventually exhale). I am sure there's something really simple that I am missing here, but I have been looking at it for too long, and I probably also need some caffeine detox (the diet coke/coffee diet catches up eventually...).
The actual shockwave applet is located at www.egyptianarabic.com/wordofday/index.asp, if it helps to look at it to understand what I am saying. The button that has the externalEvent behavior is the little one with the key shape on it. The site is set to go live this week, and I want to get this ironted out.
Thanks,
Andrew
-----------------------------------------
Andrew Dempsey
ICT and Education Consultant
Cairo, Egypt
[EMAIL PROTECTED]
www.andrewdempsey.com
--- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.516 / Virus Database: 313 - Release Date: 9/1/2003
[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!]
--
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
*m u t a n t m e d i a* > /solutions for success // // / *Evan Adelman* | 917.916.7378 | 303 E 71st St NY NY 10021 [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> | www.mutantmedia.com <http://www.mutantmedia.com>
[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!]
