H.2 Attributes of the EMBED Tag

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

H.2 Attributes of the <EMBED> Tag

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

NAME

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

PLUGINSPAGE

Location of the Flash plugin on Macromedia's web site, used by Netscape to prompt the user to download the plugin if it is not already installed. Should be "http://www.macromedia.com/go/getflashplayer".

SRC

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

SWLIVECONNECT

When true, the browser loads Java when loading the Flash Player for the first time. Defaults to false (browser doesn't load Java if it isn't already running). For movies that are controlled by JavaScript or that use fscommand( ), you must set SWLIVECONNECT to true.

TYPE

The MIME content type for Flash. Required by Netscape if the web server does not specify the MIME type for .swf files. If your HTML page loads the Flash Player in IE for Windows but not in other browsers, be sure you've set the TYPE properly. Must be "application/x-shockwave-flash".

See Table H-1 and Section H.3 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