...

View Full Version : Is there a way to embed a SWF with its default h and w



m2244
06-29-2012, 03:38 PM
I would like to embed a SWF without needing to pass a height and width so that the SWF is embeded with whatever dimensions it is when it is published.



function loadSwfToDiv(swf_url, div_id, ww, hh)
{
var flashvars = {};
var params = {};
params.wmode = "transparent";
var attributes = {};
swfobject.embedSWF(swf_url, div_id, ww , hh, "9.0.0", false, flashvars, params, attributes);
}



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum