View Single Post

#1
Bookmark and Share!
resizing in flex
Old 2008-10-08

I have the following code in an actionscript project in flex builder plug in on eclipse:
Code:
package {
    import flash.display.Sprite;
    import flash.events.Event;

    public class testing extends Sprite
    {
        public function testing()
        {
            stage.scaleMode = "noScale"
            stage.align = "TL"
            stage.addEventListener(Event.RESIZE, onResize);
        }
        public function onResize(event:Event):void{
            trace("Width: "+stage.stageWidth);
            trace("Height: "+stage.stageHeight);
        }
    }
}
The problem is that the stageWidth and stageHeight resize at every size except when I move the browser window smaller than 465 px. The html has the size set at 100%. Nothing else is in this project, where is the width getting set that is keeping it at a minimum stageWidth of 465? Anyone? TIA
Todd Coulson
Blue Diesel
postbit arrow 3 comments | 2246 views postbit arrow Reply: with Quote   
tcoulson
Registered User
tcoulson is offline
seperator
Posts: 1,117
2001-11-15
Age: 37
seperator

Ultrashock Member Comments: