Skip to main content
sivaeswaran
Participant
August 18, 2014
Question

Mac os resize issue

  • August 18, 2014
  • 0 replies
  • 205 views

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

This topic has been closed for replies.