Home

# Class goog.ui.media.FlashObject

A very simple flash wrapper, that allows you to create flash object programmatically, instead of embedding your own HTML. It extends {@link goog.ui.Component}, which makes it very easy to be embedded on the page.

extends goog.ui.Component

Instance Method Summary
| `addFlashVars((Object|goog.structs.Map|null) map) ⇒ ?goog.ui.media.FlashObject` Adds flash variables.
| `createDom()` Creates the DOM structure.
| `disposeInternal()` Disposes of the component. Calls {@code exitDocument}, which is expected to remove event handlers and clean up the component. Propagates the call to the component's children, if any. Removes the component's DOM from the document unless it was decorated.
| `enterDocument()` Writes the Flash embedding {@code HTMLObjectElement} to this components root element and adds listeners for all events to handle them consistently.
| `generateSwfTag_() ⇒ string` Writes the HTML to embed the flash object.
| `getAllowScriptAccess() ⇒ string`
| `getBackgroundColor() ⇒ string`
| `getFlashElement() ⇒ ?HTMLObjectElement`
| `getFlashVars() ⇒ ?goog.structs.Map`
| `getRequiredVersion() ⇒ ?string`
| `getWmode() ⇒ string`
| `hasRequiredVersion() ⇒ boolean` Returns whether this SWF has a minimum required flash version.
| `isLoaded() ⇒ boolean`
| `setAllowScriptAccess(string value) ⇒ ?goog.ui.media.FlashObject` Sets the allowScriptAccess setting of the movie.
| `setBackgroundColor(string color) ⇒ ?goog.ui.media.FlashObject` Sets the background color of the movie.
| `setFlashVar(string key, string value) ⇒ ?goog.ui.media.FlashObject` Sets a flash variable.
| `setFlashVars((Object|goog.structs.Map|null|string) flashVar, string= opt_value) ⇒ ?goog.ui.media.FlashObject` Sets flash variables. You can either pass a Map of key->value pairs or you can pass a key, value pair to set a specific variable. TODO(user, martino): Get rid of this method.
| `setRequiredVersion(?string version) ⇒ ?goog.ui.media.FlashObject` Sets the minimum flash required version.
| `setSize((number|string) width, (number|string) height) ⇒ ?goog.ui.media.FlashObject` Sets the width and height of the movie.
| `setWmode(?goog.ui.media.FlashObject.Wmodes wmode) ⇒ ?goog.ui.media.FlashObject` Sets the flash movie Wmode.