Question

I have created an app through Air 2.5 and it works perfectly on my computer but on Android it's like the initialization fails.

Those functions are not getting fired:

stage.addEventListener(Event.RESIZE, resizeHandler); 
resizeHandler() 
setupJSONText()

The code is located in the first layer from the bottom.

Was it helpful?

Solution

First, AIR 2.5 is very much out of date. Is there a reason you're using 2.5? 3.2 is the latest (perhaps currently in 'release candidate'). There were some significant performance enhancements in 2.7 and later. I'd be very hesitant to use a version as old as 2.5. Find the latest production version (3.1 currently) here, while the 3.2 preview release is here.

Here are instructions for overlaying the AIR SDK update onto Flash CS5 installation, and also more official (from Adobe) instructions for overlaying AIR updates onto CS5.5.

As for your code - are you intending to call resizeHandler initially and at every stage resize event? How do you know those functions aren't being called - is there some visible output expected on the screen? Can you post more code so we can see what you're expecting?

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top