SWF Class
This class is deprecated.
Creates the SWF instance and keeps the configuration data
Constructor
SWF
-
id -
swfURL -
p_oAttributes
Parameters:
-
idString | HTMLElementThe id of the element, or the element itself that the SWF will be inserted into. The width and height of the SWF will be set to the width and height of this container element.
-
swfURLStringThe URL of the SWF to be embedded into the page.
-
p_oAttributesObject(optional) Configuration parameters for the Flash application and values for Flashvars to be passed to the SWF. The p_oAttributes object allows the following additional properties: <dl> <dt>version : String</dt> <dd>The minimum version of Flash required on the user's machine.</dd> <dt>fixedAttributes : Object</dt> <dd>An object literal containing one or more of the following String keys and their values: <code>align, allowFullScreen, allowNetworking, allowScriptAccess, base, bgcolor, menu, name, quality, salign, scale, tabindex, wmode.</code> event from the thumb</dd> </dl>
Index
Properties
Methods
_eventHandler
-
event
Parameters:
-
eventObjectThe event to be propagated from Flash.
_eventHandler
-
event
Parameters:
-
eventObjectThe event to be propagated from Flash.
callSWF
-
func -
args
Calls a specific function exposed by the SWF's ExternalInterface.
Parameters:
-
funcStringthe name of the function to call
-
argsArraythe set of arguments to pass to the function.
callSWF
-
func -
args
Calls a specific function exposed by the SWF's ExternalInterface.
Parameters:
-
funcStringthe name of the function to call
-
argsArraythe set of arguments to pass to the function.
eventHandler
-
swfid -
event
Parameters:
-
swfidStringthe id of the SWF dispatching the event
-
eventObjectthe event being transmitted.
eventHandler
-
swfid -
event
Parameters:
-
swfidStringthe id of the SWF dispatching the event
-
eventObjectthe event being transmitted.
toString
()
String
Public accessor to the unique name of the SWF instance.
Returns:
Unique name of the SWF instance.
toString
()
String
Public accessor to the unique name of the SWF instance.
Returns:
Unique name of the SWF instance.
Properties
_instances
Object
private
_instances
Object
private
Events
wrongflashversion
Fired when the Flash player version on the user's machine is below the required value.
wrongflashversion
Fired when the Flash player version on the user's machine is below the required value.