Highlighted

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

Participant ,
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.

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.

TOPICS
Development

Views

363

Likes

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

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

Participant ,
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.

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.

TOPICS
Development

Views

364

Likes

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
Mar 21, 2018 0
Engaged ,
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?

Likes

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
Reply
Loading...
Mar 21, 2018 0
Advocate ,
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".

Likes

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
Reply
Loading...
Mar 21, 2018 0
Participant ,
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.

Likes

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
Reply
Loading...
Mar 23, 2018 0
Adobe Community Professional ,
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.

Likes

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
Reply
Loading...
Mar 23, 2018 1
Participant ,
Mar 24, 2018

Copy link to clipboard

Copied

You guessed right. Event.RESIZE solved the problem

Likes

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
Reply
Loading...
Mar 24, 2018 0
Adobe Community Professional ,
Mar 24, 2018

Copy link to clipboard

Copied

Thank you for the confirmation.

Likes

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
Reply
Loading...
Mar 24, 2018 0