2.0 embedSWF: function(swfUrlStr, replaceElemIdStr, widthStr,
heightStr, swfVersionStr, xiSwfUrlStr, flashvarsObj, parObj, attObj)
2.2 embedSWF: function(swfUrlStr, replaceElemIdStr, widthStr,
heightStr, swfVersionStr, xiSwfUrlStr, flashvarsObj, parObj, attObj,
callbackFn)
swfUrlStr:(String,必須的)flash地址url,
replaceElemIdStr,:(String,必須的)替換元素的id
widthStr:(String,必須的)flash寬度,類型為字串
heightStr:(String,必須的)flash高度
swfVersionStr:(String,必須的)指定你發布的SWF對應的Flash
Player版本(格式為:major.minor.release)
xiSwfUrlStr:(String,可選的)指定express install SWF的URL並啟用Adobe express install
flashvarsObj:(Object,可選的)用name:value對指定你的flashvars
parObj:(Object,可選的)用name:value對指定你的嵌套object元素的params
attObj:(Object,可選的)用name:value對指定object的屬性
callbackFn:(Function,可選的)flash載入完成的回呼函數,2.2才支援。
callbackFn參數:{success:true/false,id:"object id",ref:DOM Element}
- success, Boolean to
indicate whether the embedding of a SWF was success or not
- id, String
indicating the ID used in swfobject.registerObject
- ref, HTML object
element reference (returns undefined when success=false)