A Complete Guide to Web Design

(やまだぃちぅ) #1
Shockwave for Director 369

Interactivity

Shockwave for Director

Web Design in a Nutshell, eMatter Edition

Thewidthandheightvalues are mandatory and specify the dimensions of the
movie in pixels. Thepluginspageattribute provides a URL to the page where the
user can download the Shockwave plug-in if it is not found on the user’s
computer (the URL shown in the previous example will work). It is a recom-
mended, but not mandatory, attribute.


Netscape 2.0 does not support the<embed>tag within a table cell. It
is supported properly only in NN3.0+ and IE3.0+, so use caution
when using tables.

The following additional attributes, which are specific to controlling Director
Shockwave movies, can be added to the tag:


NAME=text
This assigns a name to the movie, which is necessary if it is going to be called
from a JavaScript or within a form.


PALETTE=background|foreground
This determines how the movie’s palette affects the user’s system when
Shockwave plays the movie.Backgrounduses the viewer’s system palette
and is recommended for most movies.Foregroundcauses the movie’s palette
to take over the user’s system (it is not supported by Internet Explorer).


BGCOLOR=#rrggbb
Defines the color of the movie rectangle before the movie appears. The value
is specified in hexadecimal RGB values and can be set to match the back-
ground color of the web page (see Chapter 5, HTML Overview, for an
explanation of this color-naming system).


The tag


Thetag gives the direction to the browser to download and install the
particular ActiveX player for Shockwave Flash files. It is used only by Internet
Explorer versions 3.0 and higher. The following is an example of the basic


tag:
<OBJECT CLASSID="clsid:166B1BCA-3F9C-11CF-8075-444553540000"
CODEBASE="http://active.macromedia.com/director/cabs/sw.
cab#version=6,0,0,0" WIDTH="450" HEIGHT="280" NAME="MovieName">
<PARAM NAME="SRC" VALUE="movie.dcr">
</OBJECT>

Theclassidparameter identifies the particular ActiveX control andcodebase
provides the browser with its location for downloading. It is important that the
values for these parameters appear in your codeexactlyas they are printed here
(see code in bold).


You need to specify thewidthandheightin pixels of the exact dimensions of
your Director movie stage.