well, the solution would be to publish the movie with the scale attribute set to "noscale" and the salign attribute set to "lt" (left top) then resize the movie with javascript. Then you can transmit from javascript the new width and height.
Code:
<SCRIPT type=\"text/javascript\" LANGUAGE=\"JavaScript\">
function size_flash(){
var flash_animation = window.document.flash_animation;
var width = window.innerWidth||document.body.clientWidth;
var height = window.innerHeight||document.body.clientHeight;
// Sets the width and the height of the flash animation in the html document
flash_animation.width = width;
flash_animation.height = height;
// then we send the new width and height to actionscript
flash_animation.SetVariable(\"new_width\",width);
flash_animation.SetVariable(\"new_height\",height);
}
Then you launch this function when your page loads (i.e. with a onLoad in the Body tag of your html page), or when the browser window is resized (onResize)
this is what i do here:
http://www.azulejos.com/dev
but there are still many problems I have to solve...
- This works fine on IE based browsers, but on mozilla you have to delay the resize... It doesn't work on Opera and KHTML (safari, konqueror) based browsers for now, perhaps it can be done with a server side script and a form which sends the width and height of the browser.
- Some older mozilla versions of the flash plugin doesn't acknowledge the salign parameter, and centers the animation when you resize its container. You have to workaround it by moving _root._x and _root._y ...