• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Part III: Appendixes > Common Attributes of the <OBJECT> and <EMBED> Tags

H.3. Common Attributes of the <OBJECT> and <EMBED> Tags

The following list of attributes applies to the both <OBJECT> and <EMBED> tags. See Example H-1 for sample usage.


ALIGN

Positions the movie in the browser window. When omitted, defaults to center, but there is no explicit "CENTER" option. Possible values are: "" (no value, indicating centered), "LEFT", "RIGHT", "TOP", and "BOTTOM".


BASE

The URL to use as the base of all relative URLs used in the movie (e.g., URLs used by getURL( ), loadMovie( ), XML.send( ), etc.).


BGCOLOR

The background color of the movie, in RGB hexadecimal triplet notation—#RRGGBB, where RR, GG, and BB are two-digit hex numbers representing Red, Green, and Blue. Overrides any author-time setting made via Modify Document.


HEIGHT

Height of the movie, either in pixels or as a percentage of the HTML page height in the browser.


LOOP

Causes the Flash animation to loop continuously (if true, the default) or stop (if false) when the playhead reaches the end of the movie.


MENU

Indicates whether the Flash Player's contextual menu contains a full list of items (true) or a minimal list of items (false). It defaults to true but is often set to false to prevent users from manipulating the movie in undesirable ways, such as stopping it, rewinding it, or zooming it. The contextual menu is accessed using right-click under Windows or Ctrl-click on the Macintosh.


PLAY

When true (the default), the movie plays immediately upon loading. When false, the movie does not play and must be started via ActionScript using the play( ) or gotoAndPlay( ) function.


QUALITY

Sets the antialiasing of text and graphics to control playback quality and performance. Values are: "BEST", "HIGH", "AUTOHIGH", "MEDIUM", "AUTOLOW", or "LOW".


SALIGN

Dictates the positioning of the movie, relative to the space available to the Flash Player. For possible values and usage, see Table 18-20 under Stage.align in the Language Reference.


SCALE

Controls scaling. Values are: "EXACTFIT", "NOBORDER", "NOSCALE", or "SHOWALL". For usage, see Stage.scaleMode in the Language Reference.


WIDTH

Width of the movie, either in pixels or as a percentage of the HTML page width in the browser.


WMODE

Allows Flash movies to be windowless for more seamless integration with non-Flash elements using HTML layers. Supported values are: "WINDOW" (the default), "OPAQUE", or "TRANSPARENT". Flash Player 6.0.61.0 adds support for the WMODE attribute under Mac OS X and Netscape for Windows. Prior versions supported WMODE only when using Internet Explorer for Windows. For details, see the release notes for Flash Player 6.0.61.0 or Help Using Flash.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint