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

Flash Player stage.stageWidth and stage.stageHeight are wrong???

Explorer ,
Jun 09, 2016 Jun 09, 2016

Hello guys, I have tested nape AS3 into Flash Player and it happens because it is normal center of Flash Player. Just moved to left and top of Flash Player. Has Flash Player 21 bug? Since I developed platform game but stagewidth and stageheight are not correct because it happens 0, 0 not stagewidth/2 and stageheight/2 screenshots with Flash Player 21 and PS same too with Adobe Air.21 result https://dl.dropboxusercontent.com/s/2daufj4bycsxbg9/fp_problemwithstage.PNG original example http://zehfernando.com/2013/loading-and-running-r-u-b-e-scenes-with-nape-as3/ but i can not understand why does flash player happen with stage?

474
Translate
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
Adobe Employee ,
Jun 10, 2016 Jun 10, 2016

Thanks for the note.  I'm not aware of an open bug like this, and we have a lot of automation running for basic ActionScript APIs that should cover this.  If it is a bug, I suspect that it's an edge case, and has probably been around for a very long time.

If you have a simple example SWF that demonstrates the problem, I can assign it directly to someone for triage.  A simplified example with source would be ideal -- it would allow us to suggest workarounds or better approaches based on what you've implemented.

If you could file a bug, with the details, that would be best, but I'm happy to file it on your behalf.

http://bugbase.adobe.com

If you post here with the bug number, I'll get an email notification, and will open it for investigation.

Thanks!

Translate
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
Explorer ,
Jun 10, 2016 Jun 10, 2016
LATEST

Hello @jeromiec, Thanks for answer! Is it possible library is very old and outdated? I don't know if nape AS3 can not work for stage What is alternative to Nape AS3 or Box2D? Starling? Citrone? Or If it works fine for stage. I will see how do stage.stagewidth and stage.stageheight work fine with Flash Player 21.x and 22.x? If you test Flash Player -> OK? Adobe Air -> OK? I am sorry that Flash Player has not bug because I have tried nape AS3 because it is outdated and doesn't work clean with center of stage. Thanks for understanding!

Translate
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