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

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

Participant ,
Mar 21, 2018 Mar 21, 2018

Copy link to clipboard

Copied

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.

TOPICS
Development

Views

482

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

correct answers 1 Correct answer

Participant , Mar 23, 2018 Mar 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.

Votes

Translate

Translate
Engaged ,
Mar 21, 2018 Mar 21, 2018

Copy link to clipboard

Copied

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

Votes

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
Advocate ,
Mar 21, 2018 Mar 21, 2018

Copy link to clipboard

Copied

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

Votes

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
Participant ,
Mar 23, 2018 Mar 23, 2018

Copy link to clipboard

Copied

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.

Votes

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
LEGEND ,
Mar 23, 2018 Mar 23, 2018

Copy link to clipboard

Copied

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

Votes

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
Participant ,
Mar 24, 2018 Mar 24, 2018

Copy link to clipboard

Copied

You guessed right. Event.RESIZE solved the problem

Votes

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
LEGEND ,
Mar 24, 2018 Mar 24, 2018

Copy link to clipboard

Copied

LATEST

Thank you for the confirmation.

Votes

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