Question
Error with dynamic content
Hi!
I have several movieclips. One is aligned to top, on is to bottom, one is to up left corner and so on.
When I use:
___________________________________
Stage.scaleMode = "noScale";
Stage.align = "TL";
onResize = function ()
{
ttl._x = 0;
ttl._y = 0;
ttc._x = (Stage.width - ttc._width) / 2;
ttc._y = 0;
ttr._x = Stage.width - ttr._width;
ttr._y = 0;
ccl._x = 0;
ccl._y = (Stage.height - ccl._height) / 2;
ccl2._x = 0;
ccl2._y = (Stage.height - ccl._height) / 2;
ccc._x = (Stage.width - ccc._width) / 2;
ccc._y = (Stage.height - ccc._height) / 2;
ccc2._x = (Stage.width - ccc2._width) / 2;
ccc2._y = (Stage.height - ccc2._height) / 2;
ccr._x = Stage.width - ccr._width;
ccr._y = (Stage.height - ccr._height) / 2;
bbl._x = 0;
bbl._y = Stage.height - bbl._height;
bbc._x = (Stage.width - bbc._width) / 2;
bbc._y = Stage.height - bbc._height;
bbr._x = Stage.width - bbr._width;
bbr._y = Stage.height - bbr._height;
}
;
Stage.addListener(this);
onResize();
___________________________________
Than moviclip bbc (with scrolling) is shown at different playces with the different screen resolution.
If I leave a little amount of text (so that it has the size less than moviclip) than it goes ok.
I attach two files: http://www.alex-pro.net/index_test_0.rar
I am appriciate for any help.
I have several movieclips. One is aligned to top, on is to bottom, one is to up left corner and so on.
When I use:
___________________________________
Stage.scaleMode = "noScale";
Stage.align = "TL";
onResize = function ()
{
ttl._x = 0;
ttl._y = 0;
ttc._x = (Stage.width - ttc._width) / 2;
ttc._y = 0;
ttr._x = Stage.width - ttr._width;
ttr._y = 0;
ccl._x = 0;
ccl._y = (Stage.height - ccl._height) / 2;
ccl2._x = 0;
ccl2._y = (Stage.height - ccl._height) / 2;
ccc._x = (Stage.width - ccc._width) / 2;
ccc._y = (Stage.height - ccc._height) / 2;
ccc2._x = (Stage.width - ccc2._width) / 2;
ccc2._y = (Stage.height - ccc2._height) / 2;
ccr._x = Stage.width - ccr._width;
ccr._y = (Stage.height - ccr._height) / 2;
bbl._x = 0;
bbl._y = Stage.height - bbl._height;
bbc._x = (Stage.width - bbc._width) / 2;
bbc._y = Stage.height - bbc._height;
bbr._x = Stage.width - bbr._width;
bbr._y = Stage.height - bbr._height;
}
;
Stage.addListener(this);
onResize();
___________________________________
Than moviclip bbc (with scrolling) is shown at different playces with the different screen resolution.
If I leave a little amount of text (so that it has the size less than moviclip) than it goes ok.
I attach two files: http://www.alex-pro.net/index_test_0.rar
I am appriciate for any help.