• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
Locked
0

Mac os resize issue

New Here ,
Aug 18, 2014 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

187

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
community guidelines