Lines Matching defs:SWF
19 EVENT_HANDLER = "SWF.eventHandler",
23 * The SWF utility is a tool for embedding Flash applications in HTML pages.
25 * @title SWF Utility
30 * Creates the SWF instance and keeps the configuration data
32 * @class SWF
35 * @param {String|HTMLElement} id The id of the element, or the element itself that the SWF will be inserted into.
36 * The width and height of the SWF will be set to the width and height of this container element.
37 * @param {String} swfURL The URL of the SWF to be embedded into the page.
39 * to be passed to the SWF. The p_oAttributes object allows the following additional properties:
50 function SWF (p_oElement /*:String*/, swfURL /*:String*/, p_oAttributes /*:Object*/ ) {
71 Y.SWF._instances[_id] = this;
131 SWF._instances = SWF._instances || {};
135 * Handles an event coming from within the SWF and delegate it
136 * to a specific instance of SWF.
138 * @param swfid {String} the id of the SWF dispatching the event
141 SWF.eventHandler = function (swfid, event) {
142 SWF._instances[swfid]._eventHandler(event);
145 SWF.prototype = {
164 * Calls a specific function exposed by the SWF's
184 * Public accessor to the unique name of the SWF instance.
187 * @return {String} Unique name of the SWF instance.
191 return "SWF " + this._id;
195 Y.augment(SWF, Y.EventTarget);
197 Y.SWF = SWF;