scale the content of my swf without changing the proportions
Good Morning. I want to scale all the content in my application to adapt to any mobile device so that the content objects grow or shrink adapting to any screen, but without distorting. I am investigating with stage.scaleMode, but all the options they give have some problem.
I have read with with StageScaleMode.NON_SCALE, combined with a RESIZE event, you can fit all the content to the window, while maintaining the size and proportions of the individual assets.
What I really want is for the objects to adapt to any window and grow, but not distorted and not cut ... perhaps this is not possible.
Any ideas?. This is my code.
stage.scaleMode = StageScaleMode.NO_SCALE;
stage.addEventListener (Event.RESIZE, resizeListener);
function resizeListener (e:Event):void{
}I'm putting it in the first frame of the action panel. What I think I am missing is the content of resizeListener
Thank you very much for the help.
