Rectangle 27 0

flash How do you make a SWF resize inside a HTML page?


function resizeIt(height)
{
      document.getElementById("myDiv").height = height;
}

Using SWFObject in this case you can set the width and height to be 100%, so it'll resize with the containing DIV, so you're not modifying the embed paramerters, but just the css.

Your definitely going to need to call a JS function, the good news is it's really simple code, something like this:

Note
Rectangle 27 0

flash How do you make a SWF resize inside a HTML page?


I don't know, you might have to actually use ExternalInterface or something like that to get the job done. And if it's not terribly important to work the player into your web layout, i would just implement the whole thing in the flash movie.

It could work if you would insert the swf into a div, or whatever, that's "too big" for it in the first place, and then just try and resize it. What are you using to embed the swf, the basic thingie offered by the Flash IDE or something else, like swfobject?

To my knowledge you can't do that. I can't actually fiddle around with it, 'cause i currently don't have access to flash.

Note