atropper
06-04-2008, 04:06 PM
Hello,
i have one movie clip that i am trying to center and resize whenever the browser window resize. this is the code i am using: (container is my movie clip instant name)
Stage.align = "TL";
Stage.scaleMode = "noScale";
Container._x = Stage.width/2;
Container._y = Stage.hieght/2;
sizeListener = new Object();
sizeListener.onResize = function(){
Container._x = Stage.width/2;
Container._y = Stage.hieght/2;
}
However,when i test it, (F12) the file dosent resize as i expected? and when i publish it (Ctrl+Enter) it dose seems to work.
Anyone have any idea why? Also how can i be sure it will resize correctly in Safari,FireFox browsers as well?
Thanks
i have one movie clip that i am trying to center and resize whenever the browser window resize. this is the code i am using: (container is my movie clip instant name)
Stage.align = "TL";
Stage.scaleMode = "noScale";
Container._x = Stage.width/2;
Container._y = Stage.hieght/2;
sizeListener = new Object();
sizeListener.onResize = function(){
Container._x = Stage.width/2;
Container._y = Stage.hieght/2;
}
However,when i test it, (F12) the file dosent resize as i expected? and when i publish it (Ctrl+Enter) it dose seems to work.
Anyone have any idea why? Also how can i be sure it will resize correctly in Safari,FireFox browsers as well?
Thanks