Skip to main content
oliversen
Inspiring
Mar 21, 2018 1:41 PM UTC
Answered

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

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 is closed to new replies. Start a new post to keep the conversation going.
oliversen
oliversenCorrect answer
Inspiring
Mar 23, 2018 8:39 AM UTC

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.

6 replies

oliversen
oliversenAuthorCorrect answer
Inspiring
Mar 23, 2018 8:39 AM UTC

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.

Translate
Colin Holgate
Inspiring
Mar 23, 2018 4:34 PM UTC

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

Translate
oliversen
oliversenAuthor
Inspiring
Mar 24, 2018 11:37 PM UTC

You guessed right. Event.RESIZE solved the problem

Translate
Inspiring
Mar 21, 2018 8:12 PM UTC

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".

Translate
kheftel
Inspiring
Mar 21, 2018 7:42 PM UTC

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

Translate