I'm trying to start a page but would like to understand the use of the Stage.onResize method...
Is it supposed to work when the browser scale changes?
I'm coding:
where prova_mc is just a circle clip on stage, but nothing happens if I resize my browserCode:Stage.scaleMode = "noScale"; this.createTextField("stageSize_txt", this.getNextHighestDepth(), 10, 10, 100, 22); var stageListener:Object = new Object(); stageListener.onResize = function() { stageSize_txt.text = "w:"+Stage.width+", h:"+Stage.height; prova_mc._xscale = 10; prova_mc._yscale = 10; };




Reply With Quote