Hello!
Im trying to make a website in AS3 with a dynamic background-video that fills all the page in my browser and keeps the proportions even if you are resizing the browser
like this:
http://www.luxdesign.com/
http://www.1001reves.com/site/
its almost working but i dont know what to do to force to keep the proportions of my movieClip and at the same, to fill 100% of my page
This is my code…
I have a movieClip with the instance name: “bg”.
///////
import flash.display.StageAlign;
import flash.display.StageScaleMode;
import flash.events.Event;
stage.align = StageAlign.TOP_LEFT;
stage.scaleMode = StageScaleMode.NO_SCALE;
stage.addEventListener(Event.RESIZE, resizeHandler);
stage.dispatchEvent(new Event(Event.RESIZE));
function resizeHandler(e:Event):void
{
bg.width = stage.stageWidth;
bg.height = stage.stageHeight;
}
Thanks for all your help! :)[URL=“http://www.flashxpress.net/forum/editpost.php?do=editpost&p=519871”]