Quantumwave Interactive Inc.
  Interactive media development . Programming . Design . Consulting

Quantumwave Interactive - Shockwave / JavaScript Demo

Communication between Shockwave & JavaScript
through Netscape's LiveConnect

Note: The following method was invented in 1996, before there was official support for Shockwave to communicate with JavaScript. Macromedia later added built-in functionality to facilitate this communication. Check out this tech note to get started.

In this demo, the Shockwave applet passes a number of parameters to a JavaScript function. The function puts the parameters into the text boxes of the HTML page,
calculates the total length of the parameters and sends it to Shockwave.
Shockwave retrieves the result and displays it in the result text box.

To see the JavaScript function, select View - Document Source from the menu.

Requires Director 5 Shockwave plug-in and Netscape 2.02 or higher with JavaScript enabled.

* Does NOT work in Microsoft Internet Explorer *

Parameter #1:

Parameter #2:

Parameter #3:

This method was first released to the public in August 1996 through this web site. Since then, the response has been tremendous and the method was featured in a couple of industry journals, magazines, books, seminars and web sites. As a result, the email sent to me asking questions regarding Java/JavaScript and Shockwave are a little bit out of hand; although I try to reply to every single letter, it may take some time so please bear with me.

Download the Director 5 and JavaScript source files (version 1.11):

StuffIt (Mac) or ZIP (PC)

Now check out the new demo: JavaScript controls Shockwave in a simple game


home | about | news | flash | director | shockwave | download | dave | résumé | contact

Copyright © 1995-2009 Quantumwave Interactive Inc.