You'd do it via the Actionscript, you don't need any JS (if it's AS3).
Just embed it as 100% x 100%, and then have:
addEvent(stage, Event.RESIZE, onResize);
and in the onResize function, control how you want everything to appear. You'll use stuff like
var theWidth : Number = Math.max(stage.stageWidth,
and
something.x = theWidth / 2 - something.width / 2;
...to centralise something.
Good luck!
Main Topics
Browse All Topics





by: mplungjanPosted on 2009-02-06 at 03:30:20ID: 23568708
So we visit your site and your site will change the size of our main browser?
indow.move To(left,to p)
Not a great thing to do if you want me to revisit.
That said:
window.resizeTo(w,h)
w
is the code you want and the handler is window.onresize