Hi
Not much I can add to this group, these chaps know there stuff, thisis what
i use
protected function resizeApplication():void {
if (!systemManager) return;
var visibleWidth:Number =
systemManager.getVisibleApplicationRect().width;
var visibleHeight:Number =
systemManager.getVisibleApplicationRect().height;
// if the visible area is less than our content then
scale down
if (visibleHeight < 768 ||
visibleWidth < 1024) {
var smallestScale:Number =
Math.min(visibleHeight/768, visibleWidth/1024);
appHolder.scaleX = smallestScale;
appHolder.scaleY = smallestScale;
}
else {
appHolder.scaleY = 1;
appHolder.scaleX = 1;
}
}
Hope it helps
Sent from my iPad
On 19 Aug 2013, at 21:14, "Pierre Rodrigue GTinc."
<[email protected]> wrote:
> I'm new to flex, and I search a way to scale entire flex application (or a
> function àuser can zoom with slider the application in the browser to fit).
> My application is 1024x 768, good fit on laptop but on the big screen, is
> too small.
>
>
>
> On my computer the crtl+ or ctrl- work well to zoom on explorer and chrome
> (but on some others computers this function not working on flash??
>
> Other way, when I use the zoom in the flash context menu, it is to big and
> not fit in the windows.
>
>
>
> I try this function , but not working when the windows increase.
>
>
>
> <s:Application addedToStage="stretchHandler()"/>
>
>
>
> private function stretchHandler():void{
>
> stage.scaleMode = StageScaleMode.SHOW_ALL;
>
> stage.align = StageAlign.TOP;
>
> this.width = stage.stageWidth;
>
> this.height = stage.stageHeight;
>
> }
>
>
>
> Pierre
>
>
>
________________________________
Disclaimer: This electronic mail and any attachments are confidential and may
be privileged. If you are not the intended recipient, please notify the sender
immediately by replying to this email, and destroy all copies of this email and
any attachments. Thank you.