Design Directory Discussion Forum Design Job Board Add Your Site Post a Message Post a Job / Gig

HomeMain → flash image scaling

hi there,

im trying to make my flash background image fit the entire window in which it is viewed

whatever the users screen res or window size, i would like the background image to scale to suit, can anyone point me in the right direction plz?

cheers
Visit My Website | http://www.gallus.uk.com
Stage.align = "TL";
Stage.scaleMode = "noScale";

// listeners

sizeListener = new Object();
sizeListener.onResize = function()
{
align();
}

Stage.addListener(sizeListener);

function align(){
yourbg._width = Stage.width;
yourbg._height = Stage.height;
}
Visit My Website | Aaron Elliott http://www.forwardtrends.com
cheers for that, i will give it a go!
Visit My Website | http://www.gallus.uk.com
is the code works, I am also going to try it out..
If Aaron posts it, it'll work!

:D
A JavaScript solution to resize Flash animations:

… to 100% width and 100% height when your browser window is greater than the minimum desired size and resizes flash to the minimum desired size when the browser window is smaller…


http://fitflash.millermedeiros.com/
Aaron is the Flash master!
Hey thanks!

function buyBeer('adriana') {
_root.becks.open();
}
Visit My Website | Aaron Elliott http://www.forwardtrends.com
Haha.