PDA

View Full Version : update flash object in panel's body



wp.joju
1 Feb 2010, 2:10 AM
why is it that if i update the panel's body with a flash object, the flash object doesn't show up?




Ext.getCmp('extpnlfiledetails').body.update(panelFlashPlayer(record.get('location')));

var panelFlashPlayer = function(vidName)
{
var player = "<object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\"";
player += "id=\"xFlvPlayerF4V\" width=\"100%\" height=\"100%\"";
player += "codebase=\"http://fpdownload.macromedia.com/get/flashplayer/current/swflash.cab\">";
player += "<param name=\"movie\" value=\"fplayer/xFlvPlayerF4V.swf\" />";
player += "<param name=\"quality\" value=\"high\" />";
player += "<param name=\"bgcolor\" value=\"#869ca7\" />";
player += "<param name=\"allowScriptAccess\" value=\"sameDomain\" />";
player += "<param name=\"flashVars\" value=\"vidName=" + vidName + "\" />";
player += "<embed src=\"fplayer/xFlvPlayerF4V.swf\" quality=\"high\" bgcolor=\"#869ca7\"";
player += "width=\"100%\" height=\"100%\" name=\"xFlvPlayerF4V\" align=\"middle\" ";
player += "flashVars=\"vidName=" + vidName + "\" ";
player += "play=\"true\"";
player += "loop=\"false\"";
player += "quality=\"high\"";
player += "allowScriptAccess=\"sameDomain\"";
player += "type=\"application/x-shockwave-flash\"";
player += "pluginspage=\"http://www.adobe.com/go/getflashplayer\">";
player += "</embed>";
player += "</object>";
return player;
}