PDA

View Full Version : Controlling browser scrollbars from flash.


gnative
10-01-2004, 04:21 AM
hello ..

Does anyone know how i could go about setting the size of the browser scrollbars.


I have a centered flash movie in an html doc 800x590 ( www.gnative.com ). The problem is this..
it the flash movie i am useing this peice of code to center my main content

stageEvent = new Object();
function stageInit() {
stageEvent.onResize = function() {
// set navigtion center
nav_mc._y = Math.floor((Stage.height -(nav_mc.nBg_mc._height))/2);
nav_mc._x = Math.floor((Stage.width - (nav_mc.nBg_mc._width))/2);
// set leaf image bottom corner
l_mc._y = Stage.height - l_mc._height;
l_mc._x = Stage.width - l_mc._width;

};
Stage.addListener(stageEvent);
this.stageEvent.onResize();
}
Stage.align = "LT";
Stage.scaleMode = "noScale";
stageInit();
stop();


What i want to be able to do is then the broswer window is smaller than 800x490 i want the browsers scroll bars to appear and set acording to the window/flash overflow size.. Woudl useing Div overflow work and how does this work?

Thanks you
Shane