IPhone Packager AS3 can't convert case switch statement?

So, I am creating an application using Adobe AIR Packager for iPhone (command line style). An application consists of many screens that provide a variety of information, and navigation is handled by everyone in the document class using an event-triggered function that uses the large switch-case statement to determine which screen to switch to.

When we compiled it through the iPhone Packager and tried to test it on one of our phones, it boots up to a blank screen.

After some error testing, it turned out that the switching case itself was causing the problem (changing it to if-else, which had the same functionality, worked just fine). Does anyone know if this is a known issue, or if something can be done to fix this, other than converting it to if-else.

If all else fails, it will be converted to an if-else style statement, but I'm just wondering if this was a known issue, and if a fix is ​​available ...

EDIT: We found that 3 of our cases causing the problem caused the problem. None of these cases have anything abnormal in them; even commenting on the entire class file that was created as a result of this case caused it to fail (commenting on the case, however, it works).

There seems to be nothing we can do about it.

+3
source share
1 answer

It's hard to say anything without code, but it sounds like a bug in the package. You must report this to Adobe.

0
source

Source: https://habr.com/ru/post/1765936/


All Articles