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

06-29-2012, 02: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);