[solved] anchor getCurrentStage()

Hi,

When rotating display.getCurrentStage() in order to react to onOrientationChange runtime Listeners (so when a user rotating his device), the screen will be rotating around the 0,0 point (top-left corner). In G1 i was able to set the centerpoint with xReference/yReference = absolute value (like ScreenCenterX…).

It doesn’t seem to work with the new anchorX = 0.5 / anchorY = 0.5 (any other value won’t shift the center Point either)

Any ideas?

thx

Robin

I was bitten by this myself in the early beta stage. You don’t need to do that anymore in Graphics 2.0.

Comment out any of your own proprietary code you have to handle autorotation of the stage. The only things you need to keep are the settings in your build.settings file.

oh. that is true.

Awesome! :wink:

thanks for the reply

I was bitten by this myself in the early beta stage. You don’t need to do that anymore in Graphics 2.0.

Comment out any of your own proprietary code you have to handle autorotation of the stage. The only things you need to keep are the settings in your build.settings file.

oh. that is true.

Awesome! :wink:

thanks for the reply