H.1 Attributes of the OBJECT Tag

ActionScript for Flash MX: The Definitive Guide, 2nd Edition
By Colin Moock
Appendix H.  Embedding a Flash Movie in a Web Page

H.1 Attributes of the <OBJECT> Tag

To use attributes other than CLASSID, CODEBASE, WIDTH, HEIGHT, ID, and ALIGN with the <OBJECT> tag, construct a <PARAM> tag of the following format:

<PARAM NAME=ATTR_NAME VALUE=VAL>

where ATTR_NAME is the name of the attribute and VAL is the attribute value (as shown in Example H-1).

The following list of attributes applies exclusively to the <OBJECT> tag:

CLASSID

Identifier for the Flash ActiveX control, which must be "clsid:D27CDB6E-AE6D-11cf-96B8-444553540000", regardless of the version of the movie or Player.

CODEBASE

Location of the Flash ActiveX control, which must be "http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0". It is used by IE for Windows to download the ActiveX version of the Flash Player if it is not installed or if its version is older than the version specified by #version=w,x,y,z. If #version is omitted, the browser does not attempt to upgrade any existing ActiveX Player on the user's system, but it will attempt to download the latest Player if no Player is found.

ID

An identification string that can be used by scripts to manipulate the Flash movie. Should match the NAME attribute used for the <EMBED> tag. See fscommand( ) in the Language Reference and http://www.moock.org/webdesign/flash/fscommand.

MOVIE

The location of the movie (.swf file) as a relative or absolute URL, such as "mymovie.swf". Should match the SRC attribute used for the <EMBED> tag.

See Table H-1 and Section H.3 later in this appendix for more information.



    ActionScript for Flash MX. The Definitive Guide
    ActionScript for Flash MX: The Definitive Guide, Second Edition
    ISBN: 059600396X
    EAN: 2147483647
    Year: 2002
    Pages: 780
    Authors: Colin Moock

    flylib.com © 2008-2017.
    If you may any questions please contact us: flylib@qtcs.net