ipad 3 retina display?

my nmml file has works on ipad 1, but ipad 3 doesn't go full screen, only quarter screen. ?!?!?! i'm googling but not seeing a solution yet... :-} i tried changing resizable to true and that did not help any.

Viewing 1 to 4 (4 Total)
ipad 3 retina display?

raould

raould
Total Posts: 224
Joined: December 03, 2011

my nmml file has


works on ipad 1, but ipad 3 doesn't go full screen, only quarter screen. ?!?!?! i'm googling but not seeing a solution yet... :-}

i tried changing resizable to true and that did not help any.

Tags:
Posted on July 13, 2012 at 4:13 PM

Philippe

Philippe
Total Posts: 262
Joined: September 08, 2011

Re: ipad 3 retina display?

Do you listen to stage.RESIZE event?

On iOS the app reports non-retina resolution then is resized to the right resolution.
System class should report the scale also.

Posted on July 13, 2012 at 4:15 PM

raould

raould
Total Posts: 224
Joined: December 03, 2011

Re: ipad 3 retina display?

thanks! i will try that.

but i'm a little confused now. how do i know what machines will / not generate a resize event? i guess i have to really change things to handle it any time? more painful. is this due to iOS, or due to NME? would presumably be way better to just get the correct resolution at the beginning.

Posted on July 13, 2012 at 4:17 PM

Zaphod

Zaphod
Total Posts: 218
Joined: September 15, 2011

Re: ipad 3 retina display?

@raould
you can write in your main class constructor:

#if iphone
Lib.current.stage.addEventListener(Event.RESIZE, create);
#else
addEventListener(Event.ADDED_TO_STAGE, create);
#end

and in create() handler you should write code dealing with resolution.

This should handle your problem

Posted on July 14, 2012 at 1:33 AM