I have the following code in an actionscript project in flex builder plug in on eclipse:
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:yes:
3 REPLIES
- Log in or join for free to make a comment.
Topic Categories


