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.FlashObjectAdds 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_() ⇒ stringWrites the HTML to embed the flash object. | |
getAllowScriptAccess() ⇒ string | |
getBackgroundColor() ⇒ string | |
getFlashElement() ⇒ ?HTMLObjectElement | |
getFlashVars() ⇒ ?goog.structs.Map | |
getRequiredVersion() ⇒ ?string | |
getWmode() ⇒ string | |
hasRequiredVersion() ⇒ booleanReturns whether this SWF has a minimum required flash version. | |
isLoaded() ⇒ boolean | |
setAllowScriptAccess(string value) ⇒ ?goog.ui.media.FlashObjectSets the allowScriptAccess setting of the movie. | |
setBackgroundColor(string color) ⇒ ?goog.ui.media.FlashObjectSets the background color of the movie. | |
setFlashVar(string key, string value) ⇒ ?goog.ui.media.FlashObjectSets a flash variable. | |
setFlashVars((Object|goog.structs.Map|null|string) flashVar, string= opt_value) ⇒ ?goog.ui.media.FlashObjectSets 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.FlashObjectSets the minimum flash required version. | |
setSize((number|string) width, (number|string) height) ⇒ ?goog.ui.media.FlashObjectSets the width and height of the movie. | |
setWmode(?goog.ui.media.FlashObject.Wmodes wmode) ⇒ ?goog.ui.media.FlashObjectSets the flash movie Wmode. | |