YUI recommends YUI 3.

YUI 2 has been deprecated since 2011. This site acts as an archive for files and documentation.

Yahoo! UI Library

Charts Widget  2.4.0

Yahoo! UI Library > charts > YAHOO.widget.FlashAdapter

Show Private Show Protected

Class YAHOO.widget.FlashAdapter - uses YAHOO.util.AttributeProvider

Wraps Flash embedding functionality and allows communication with SWF through attributes.

Properties

_attributes - private Object

The initializing attributes are stored here until the SWF is ready.

_id - private String

The id of this instance.

_swf - private object

A reference to the embedded SWF file.

_swfURL - private String

The URL of the SWF file.

Properties inherited from YAHOO.util.AttributeProvider:

Methods

_embedSWF

private void _embedSWF ( )
Embeds the SWF in the page and associates it with this instance.
Returns: void

_eventHandler

private void _eventHandler ( )
Handles or re-dispatches events received from the SWF.
Returns: void

_getSWFURL

private void _getSWFURL ( )
Getter for swfURL attribute.
Returns: void

_initAttributes

private void _initAttributes ( )
Initializes the attributes.
Returns: void

_loadHandler

private void _loadHandler ( )
Called when the SWF has been initialized.
Returns: void

toString

String toString ( )
Public accessor to the unique name of the FlashAdapter instance.
Returns: String
Unique name of the FlashAdapter instance.

YAHOO.widget.FlashAdapter.eventHandler

private static void YAHOO.widget.FlashAdapter.eventHandler ( )
Receives event messages from SWF and passes them to the correct instance of FlashAdapter.
Returns: void

Events

beforeSwfurlChangeEvent

beforeSwfurlChangeEvent ( eventInfo )
Fires before the value for the configuration attribute 'swfURL' changes. Return false to cancel the attribute change.
Parameters:
eventInfo <{oldValue: any, newValue: any}> An object containing the current attribute value and the new value.

contentReady

contentReady ( )
Fires when the SWF is initialized and communication is possible.

swfURLChangeEvent

swfURLChangeEvent ( eventInfo )
Fires when the value for the configuration attribute 'swfURL' changes.
Parameters:
eventInfo <{oldValue: any, newValue: any}> An object containing the previous attribute value and the new value.

Configuration Attributes

swfURL - String

Absolute or relative URL to the SWF displayed by the FlashAdapter.


Copyright © 2007 Yahoo! Inc. All rights reserved.