Highlighted

Mac os resize issue

New Here ,
Aug 18, 2014

Copy link to clipboard

Copied

I am developing new air window for both window os and mac os using flash as3.But resizing concept dosn't work in mac os.I have mentioned my resizing code.Please post me the correct solution.

step1:Install cs6 on both window and mac system

step2: open cs6

step3:create new air 3.2 desktop application in as3

step4:copy and paste the code on time line

window os given output is correct

mas os given output is wrong

/*--------------------------------------------code start-----------------------------------------------*/

import flash.events.Event;

this.stage.nativeWindow.addEventListener(Event.RESIZE,windowReizeFun,false,0,true);

function windowReizeFun(e:Event):void{

    e.preventDefault();

    this.stage.nativeWindow.width = 1000

    this.stage.nativeWindow.height = 600

   

}

/*--------------------------------------------code stop-----------------------------------------------*/

Message was edited by: siva eswaran

TOPICS
Performance issues

Views

152

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more

Mac os resize issue

New Here ,
Aug 18, 2014

Copy link to clipboard

Copied

I am developing new air window for both window os and mac os using flash as3.But resizing concept dosn't work in mac os.I have mentioned my resizing code.Please post me the correct solution.

step1:Install cs6 on both window and mac system

step2: open cs6

step3:create new air 3.2 desktop application in as3

step4:copy and paste the code on time line

window os given output is correct

mas os given output is wrong

/*--------------------------------------------code start-----------------------------------------------*/

import flash.events.Event;

this.stage.nativeWindow.addEventListener(Event.RESIZE,windowReizeFun,false,0,true);

function windowReizeFun(e:Event):void{

    e.preventDefault();

    this.stage.nativeWindow.width = 1000

    this.stage.nativeWindow.height = 600

   

}

/*--------------------------------------------code stop-----------------------------------------------*/

Message was edited by: siva eswaran

TOPICS
Performance issues

Views

153

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Aug 18, 2014 0

Have something to add?

Join the conversation