Skip to main content
oliversen
Inspiring
March 21, 2018
Answered

stagewidth not working properly on ipad 2 air, Air for ios

  • March 21, 2018
  • 3 replies
  • 717 views

I have 6 buttons on the top of the screen. They are each 1/6th of the stage.stageWidth.

I reference a variable wstr to all theese 6 buttons.

var wstr = (1 / 6) * stage.stageWidth;

It works perfectly on Android. But on Ipad Air 2.0 it does not work properly.

This topic has been closed for replies.
Correct answer oliversen

I found out. I ran the everything in a Event.RESIZE.

The issue was wrong stage widths and heights. Displaying only half of the screen. Now that issue is gone. Thank you.

3 replies

oliversen
oliversenAuthorCorrect answer
Inspiring
March 23, 2018

I found out. I ran the everything in a Event.RESIZE.

The issue was wrong stage widths and heights. Displaying only half of the screen. Now that issue is gone. Thank you.

Colin Holgate
Inspiring
March 23, 2018

Can you say whether using Event.RESIZE was the problem, or it solved the problem? My guess is that it solved the problem.

oliversen
oliversenAuthor
Inspiring
March 24, 2018

You guessed right. Event.RESIZE solved the problem

Inspiring
March 21, 2018

You repeated twice "it does not work properly" but can you really expect someone to know exactly what that means in your case and give you a solution? Please make the tiny bit of effort and imagine being someone reading your post before clicking "submit".

kheftel
Inspiring
March 21, 2018

you told us what it doesn't do. what DOES it do? how does it mess up? screenshot?