FullScreen x WideScreen
seguinte meu site em flash nao se ajusta a monitores diferentes, exemplo no meu note ele rola Widescreen mesmo na funçao fullscreen, até ai ok. mas no meu pc desk com monitor de 17'' as imagens ja ficam faltando um pedaço.
sei que é a funçao onResize mas como nao saco muito bem, to perdidao ! ! ! ja procurei inumeros topicos e nada. nada funciona..
segue codigo flash abaixo:
function scalebg_mc()
{
originBgWidth = bg_mc.imageWidth;
originBgHeight = bg_mc.imageHeight;
widthDiff = (Stage.width - bg_mc._width) / originBgWidth;
heightDiff = (Stage.height - bg_mc._height) / originBgHeight;
if (widthDiff >= heightDiff)
{
bg_mc._width = Stage.width;
scaleRatio = bg_mc._width * 100 / originBgWidth;
bg_mc._yscale = scaleRatio;
}
else
{
bg_mc._height = Stage.height;
scaleRatio = bg_mc._height * 100 / originBgHeight;
bg_mc._xscale = scaleRatio;
} // end else if
} // End of the function
stageW = 800;
stageH = 600;
Stage.scaleMode = "noScale";
Stage.align = "TL";
holder_mc._alpha = 0;
stageListener = new Object(this);
Stage.addListener(stageListener);
alignObjects = function ()
{
scalebg_mc();
footer_mc._y = Stage.height - footer_mc._height;
footer_mc.bg_mc._width = Stage.width;
fullscreen_mc._x = (Stage.width - 30) / 2;
fullscreen_mc._y = Stage.height - 30;
soundControl_mc._x = Math.round(Stage.width - 130);
soundControl_mc._y = Math.round(Stage.height - 30);
nav_mc.bg_mc._width = Stage.width;
nav_mc.txt_mc._y = (Stage.height - nav_mc.txt_mc._height) / 2;
holder_mc._x = Math.round((Stage.width - stageW) / 2);
holder_mc._y = Math.round((Stage.height - stageH) / 2);
preloader_mc._x = Math.round((Stage.width - preloader_mc._width) / 2);
preloader_mc._y = Math.round((Stage.height - preloader_mc._height) / 2);
preloaderXML_mc._x = Math.round(Stage.width / 2);
preloaderXML_mc._y = Math.round(Stage.height - 15);
playlist_mc.bg_mc._width = Stage.width;
playlist_mc.bg_mc._height = Stage.height - 30;
playlist_mc.player_mc._x = Math.round((Stage.width - playlist_mc.player_mc.bg_mc._width + 10) / 2);
playlist_mc.centreY = Math.round(Stage.height / 2);
if (playlist_mc.bg_mc._alpha == 100)
{
playlist_mc.player_mc._y = playlist_mc.centreY;
} // end if
};
stageListener.onResize = function ()
{
se alguem puder ajudar....
Discussão (8)
Carregando comentários...