javascript > Insert Flash Object
Insert Flash Object
| Created | 2008 07 25 |
|---|---|
| Modify History | 2010 01 16: Displays a link for Flash Player when the Flash content can not be displayed. |
Insert Flash Object is a collection of JavaScript methods that inserts Flash Objects into an HTML document.
Download
Methods
| Method |
|---|
| getFlashObjectString(path, width, height, flashvars="", idname="", saccess="sameDomain", wmode="window", fullscreen="false") |
| insertFlashObject(path, width, height, flashvars="", idname="", saccess="sameDomain", wmode="window", fullscreen="false") |
| insertFlashObjectLayer(layerid, path, width, height, flashvars="", idname="", saccess="sameDomain", wmode="window", fullscreen="false") |
| insertFlashObjectDelay(delay, layerid, path, width, height, flashvars="", idname="", saccess="sameDomain", wmode="window", fullscreen="false") |
Method Detail
getFlashObjectString
function getFlashObjectString(path, width, height, flashvars="", idname="", saccess="sameDomain", wmode="window", fullscreen="false"):StringGenerates a String which is consisted with the tags of the Flash Object, and returns it.
Parameters
path:String - The path of an SWF file to insert.
width:String - The width of the Flash object.
height:String - The height of the Flash object.
flashvars:String (default = "") - FlashVars properties which is used to pass variables into the Flash object.
idname:String (default = "") - Indicates the ID and name properties of the Flash object.
saccess:String (default = "sameDomain") - Indicates the access control modifier that controls outbound scripting from the Flash object.
wmode:String (default = "window") - Indicates the transparency of the background of the Flash object.
fullscreen:Boolean (default = "false") - Indicates the access control modifier of the full-screen mode.
Example
insertFlashObject
function insertFlashObject(path, width, height, flashvars="", idname="", saccess="sameDomain", wmode="window", fullscreen="false"):StringInserts a Flash object in the current position.
Parameters
path:String - The path of an SWF file to insert.
width:String - The width of the Flash object.
height:String - The height of the Flash object.
flashvars:String (default = "") - FlashVars properties which is used to pass variables into the Flash object.
idname:String (default = "") - Indicates the ID and name properties of the Flash object.
saccess:String (default = "sameDomain") - Indicates the access control modifier that controls outbound scripting from the Flash object.
wmode:String (default = "window") - Indicates the transparency of the background of the Flash object.
fullscreen:Boolean (default = "false") - Indicates the access control modifier of the full-screen mode.
Example
insertFlashObjectLayer
function insertFlashObjectLayer(layerid, path, width, height, flashvars="", idname="", saccess="sameDomain", wmode="window", fullscreen="false"):StringInserts a Flash object in the specified DIV layer.
Parameters
layerid:String - The ID property of a DIV tag in which the Flash object is inserted.
path:String - The path of an SWF file to insert.
width:String - The width of the Flash object.
height:String - The height of the Flash object.
flashvars:String (default = "") - FlashVars properties which is used to pass variables into the Flash object.
idname:String (default = "") - Indicates the ID and name properties of the Flash object.
saccess:String (default = "sameDomain") - Indicates the access control modifier that controls outbound scripting from the Flash object.
wmode:String (default = "window") - Indicates the transparency of the background of the Flash object.
fullscreen:Boolean (default = "false") - Indicates the access control modifier of the full-screen mode.
Example
insertFlashObjectDelay
function insertFlashObjectDelay(delay, layerid, path, width, height, flashvars="", idname="", saccess="sameDomain", wmode="window", fullscreen="false"):StringInserts a Flash objet in the specified DIV layer after a delay.
Parameters
delay:Number - The mili-seconds indicates the delayed time.
layerid:String - The ID property of a DIV tag in which the Flash object is inserted.
path:String - The path of an SWF file to insert.
width:String - The width of the Flash object.
height:String - The height of the Flash object.
flashvars:String (default = "") - FlashVars properties which is used to pass variables into the Flash object.
idname:String (default = "") - Indicates the ID and name properties of the Flash object.
saccess:String (default = "sameDomain") - Indicates the access control modifier that controls outbound scripting from the Flash object.
wmode:String (default = "window") - Indicates the transparency of the background of the Flash object.
fullscreen:Boolean (default = "false") - Indicates the access control modifier of the full-screen mode.