protected function application1_resizeHandler(event:ResizeEvent):void { if(this.scaleX > 1){ //check if we need to readjust to a normal scale of 1 var effectiveWidth:int = this.width*this.scaleX; var effectiveHeight:int = this.height*this.scaleY; if(effectiveWidth > 1280 || effectiveHeight > 1024){ } }else{ //the scale is still 1, lets see if we should scale it up if(this.width < 1280 || this.height < 1024){ styledscalebar.getStyle("bottom", 150); } } }
I am trying to move the scale bar up when the screen resolution is small