Search code examples
flashswfobject

dynamic height and width with swfobject


swfObject embed has the following signature,

swfobject.embedSWF(swfUrlStr, replaceElemIdStr, widthStr, heightStr, swfVersionStr, xiSwfUrlStr, flashvarsObj, parObj, attObj, callbackFn)

with width and heigth required attributes,

What can I do to signify dynamic height and width.


Solution

  • It's not possible for the browser to determine the size of the application and change the object's size automatically based on that.