Hi Everyone,
I have my flash at %100 width and height, and have three else statements which dictate the placement of the mc on my stage. What i would like to have is the user changes the screen width to anything smaller than 1024 that it initiates the browser to activate the scrollbars. The layout of my site really needs the user to be able to scroll if they resize the browser smaller than 1024 but have no idea wheather this can be achived through actionscript or if this is something that needs or can be done in the Html. One side note is also that if the browser is resized to a height less than a percentage of the landscape width that the scrollbars would also be toggled on. I hope i make sense. Any help is greatly appreciated.
Here is the site address for perspective: www.Petkind.com
please note: there are bugs still…yes i know
//When Stage Is Resized Initiate Function Based On Size
stageListener = new Object();
stageListener.onResize = function ()
{
if (Stage.width > 1599)
{
Landscape._width = Stage.width;
Landscape._height = Stage.width * 0.471764;
Logo._x = Stage.width / 2;
Content._y = (Landscape._height / 2) - 70;
MaskBottom._y = Landscape._height + 120;
MaskBottomShadow._y = Landscape._height + 120;
BurlapBottom._y = Landscape._height + 120;
var Contentmove:Tween = new Tween(Content, “_x”, Regular.easeOut, Content._x, (Stage.width / 2) - 475, 4, true);
}
else if (Stage.width < 1024)
{
Landscape._width = 1024;
Landscape._height = 1024 * 0.471764;
Logo._x = Stage.width / 2;
Content._y = (Landscape._height / 2) - 70;
MaskBottom._y = Landscape._height + 120;
MaskBottomShadow._y = Landscape._height + 120;
BurlapBottom._y = Landscape._height + 120;
var Contentmove:Tween = new Tween(Content, "_x", Regular.easeOut, Content._x, 37, 4, true);
}
else
{
Landscape._width = Stage.width;
Landscape._height = Stage.width * 0.471764;
Logo._x = Stage.width / 2;
Content._y = (Landscape._height / 2) - 70;
MaskBottom._y = Landscape._height + 120;
MaskBottomShadow._y = Landscape._height + 120;
BurlapBottom._y = Landscape._height + 120;
var Contentmove:Tween = new Tween(Content, "_x", Regular.easeOut, Content._x, (Stage.width / 2) - 475, 4, true);
}
}
// End of the function
Sincerely,
Martha