views:

245

answers:

2

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.

A: 

I am not entirely sure what you mean by dynamic height and width, but as far as I know, you need to specify width and height either in pixels or percent (of the surrounding element), and I don't know of any way to let the size of the swf decide, like you can do for example with an img tag, by leaving out width and height.

Lars
+1  A: 

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

poke