Wraps Flash embedding functionality and allows communication with SWF through
attributes.
Properties
The initializing attributes are stored here until the SWF is ready.
The ID of the containing DIV.
Indicates whether the SWF has been initialized and is ready
to communicate with JavaScript
_swf
- private object
A reference to the embedded SWF file.
The number of proxy functions that have been created.
Methods
private
void
_embedSWF
(
)
Embeds the SWF in the page and associates it with this instance.
private
void
_eventHandler
(
)
Handles or re-dispatches events received from the SWF.
private
void
_getAltText
(
)
Getter for altText attribute.
private
void
_getSWFURL
(
)
Getter for swfURL attribute.
private
void
_initAttributes
(
)
Initializes the attributes.
private
void
_loadHandler
(
)
Called when the SWF has been initialized.
private
void
_setAltText
(
)
Setter for altText attribute.
void
destroy
(
)
Nulls out the entire FlashAdapter instance and related objects and removes attached
event listeners and clears out DOM elements inside the container. After calling
this method, the instance reference should be expliclitly nulled by implementer,
as in myChart = null. Use with caution!
String
toString
(
)
Public accessor to the unique name of the FlashAdapter instance.
- Returns:
String
- Unique name of the FlashAdapter instance.
private
static
void
YAHOO.widget.FlashAdapter.createProxyFunction
(
)
Creates a globally accessible function that wraps a function reference.
Returns the proxy function's name as a string for use by the SWF through
ExternalInterface.
private
static
void
YAHOO.widget.FlashAdapter.eventHandler
(
)
Receives event messages from SWF and passes them to the correct instance
of FlashAdapter.
private
static
void
YAHOO.widget.FlashAdapter.removeProxyFunction
(
)
Removes a function created with createProxyFunction()
configureAttribute,
fireBeforeChangeEvent,
fireChangeEvent,
get,
getAttributeConfig,
getAttributeKeys,
refresh,
register,
resetAttributeConfig,
resetValue,
set,
setAttributeConfig,
setAttributes
Events
altTextChange
(
event
)
Fires when the value for the configuration attribute 'altText' changes.
- Parameters:
-
event
<{oldValue: any, newValue: any}>
An object containing the previous attribute value and the new value.
backgroundColorChange
(
event
)
Fires when the value for the configuration attribute 'backgroundColor' changes.
- Parameters:
-
event
<{oldValue: any, newValue: any}>
An object containing the previous attribute value and the new value.
beforeAltTextChange
(
event
)
Fires before the value for the configuration attribute 'altText' changes. Return false to cancel the attribute change.
- Parameters:
-
event
<{oldValue: any, newValue: any}>
An object containing the previous attribute value and the new value.
beforeBackgroundColorChange
(
event
)
Fires before the value for the configuration attribute 'backgroundColor' changes. Return false to cancel the attribute change.
- Parameters:
-
event
<{oldValue: any, newValue: any}>
An object containing the previous attribute value and the new value.
beforeExpressInstallChange
(
event
)
Fires before the value for the configuration attribute 'expressInstall' changes. Return false to cancel the attribute change.
- Parameters:
-
event
<{oldValue: any, newValue: any}>
An object containing the previous attribute value and the new value.
beforeSwfURLChange
(
event
)
Fires before the value for the configuration attribute 'swfURL' changes. Return false to cancel the attribute change.
- Parameters:
-
event
<{oldValue: any, newValue: any}>
An object containing the previous attribute value and the new value.
beforeVersionChange
(
event
)
Fires before the value for the configuration attribute 'version' changes. Return false to cancel the attribute change.
- Parameters:
-
event
<{oldValue: any, newValue: any}>
An object containing the previous attribute value and the new value.
beforeWmodeChange
(
event
)
Fires before the value for the configuration attribute 'wmode' changes. Return false to cancel the attribute change.
- Parameters:
-
event
<{oldValue: any, newValue: any}>
An object containing the previous attribute value and the new value.
contentReady
(
)
Fires when the SWF is initialized and communication is possible.
expressInstallChange
(
event
)
Fires when the value for the configuration attribute 'expressInstall' changes.
- Parameters:
-
event
<{oldValue: any, newValue: any}>
An object containing the previous attribute value and the new value.
swfURLChange
(
event
)
Fires when the value for the configuration attribute 'swfURL' changes.
- Parameters:
-
event
<{oldValue: any, newValue: any}>
An object containing the previous attribute value and the new value.
versionChange
(
event
)
Fires when the value for the configuration attribute 'version' changes.
- Parameters:
-
event
<{oldValue: any, newValue: any}>
An object containing the previous attribute value and the new value.
wmodeChange
(
event
)
Fires when the value for the configuration attribute 'wmode' changes.
- Parameters:
-
event
<{oldValue: any, newValue: any}>
An object containing the previous attribute value and the new value.
Configuration Attributes
The alternative text to provide for screen readers and other assistive technology.
The background color of the SWF. Only available in the constructor because it may not be
set after Flash Player has been embedded in the page.
URL pointing to a SWF file that handles Flash Player's express
install feature. Only available in the constructor because it may not be
set after Flash Player has been embedded in the page.
Absolute or relative URL to the SWF displayed by the FlashAdapter. Only available in the constructor because it may not be
set after Flash Player has been embedded in the page.
Minimum required version for the SWF file. Only available in the constructor because it may not be
set after Flash Player has been embedded in the page.
Sets the window mode of the Flash Player control. May be
"window", "opaque", or "transparent". Only available in the constructor
because it may not be set after Flash Player has been embedded in the page.