all groups > flash actionscript > december 2004 >
You're in the

flash actionscript

group:

onResize does not respond to vertical-only resize


onResize does not respond to vertical-only resize GetAGeek
12/31/2004 5:31:17 PM
flash actionscript: IE 6.0 Flash MX2004 Pro When resizing the browser window (swf at 100% in H and
W) I get onResize events only when horizontal resizing is involved. In other
words, if I drag the browser's resize for both horizontal AND vertical, I get
onResize events indicating the correct width and height of the stage. When I
drag horizontal only I get both properly as well. If I only resize the
vertical - I get no onResize event dispatched to the swf. Very wierd. No
message at all! This is killing me! :frown; . .

Stage.scaleMode = "noScale";
Stage.align = "TL";
resizing = false;
myListener = new Object();
myListener.onResize = function() {
fixscale();
};
Stage.addListener(myListener);

function fixscale() {
var1="Stage H/W";
var2=Stage.height;
var3=Stage.width;
}
Re: onResize does not respond to vertical-only resize tralfaz
12/31/2004 7:41:09 PM
I see both horizontal and vertical. I put in a couple of text boxes
to display the values and everytime I moved either H or W it updated
correctly.
Must be something else.
tralfaz

function fixscale() {
var1="Stage H/W";
var2=Stage.height;
var3=Stage.width;
textboxH.text = var2;
textboxW.text = var3;
}


[quoted text, click to view]

AddThis Social Bookmark Button