Skip to main content
Known Participant
August 11, 2011
Question

Flex on iOS with AIR 2.7 loading very slow??

  • August 11, 2011
  • 5 replies
  • 5509 views

Hi every one!

I want to publish my Flex mobile app in iOS with AIR 2.7 but when i play my app in a ios device (iPad) the start is very very slow (it takes more than 30 seconds loading).

I have tried AIR natively apps in ipad (rossignol experience) and the loading time is 5-10 secs (good)

I think that in these time its loading the Flex framework. But flex app in android loading time is 5-10 secs.

¿Can an Mobile Flex App in iOS load more faster?

or perhaps

¿Will be a new release of Adobe AIR who improve the loading time?

Thanks so much!

This topic has been closed for replies.

5 replies

Participant
August 18, 2011

Hello everyone!

I have the same problem, read your post and did the same things but nothing has changed!

Any other variants?

Final View Company

laraibm53445555
Participating Frequently
August 3, 2016

I was trying to attach image problem in "render" in publish settings for ios general option. Render mode must be auto so that It get according to available device.

Inspiring
August 17, 2011

Hi all,

Some more details here would really help everyone.

I've tried compiling this tutorial:

http://www.adobe.com/devnet/flex/articles/twitter-trends.html

As a test because my own Flex mobile app is running dog slow on an iPhone 4.

I'm compiling via ADT command line because I can't get Flash Builder to recognise the 2.7 namespace even though I've overlaid the sdks properly - am on OSX too.

So, can anyone list the steps required to go from source code to ipa and having a fast app on an iOS device?

Thanks.

Known Participant
August 16, 2011

Well i exported an bin release and upload ti my iPad via OTA with ad hoc and it run well!, not like an native app but well!

And the loading time its 5 secs!

Thank so much!

Known Participant
August 16, 2011

by loading, do you mean a black screen, or does your splash image come up right away?

Also, curious if you are using lists at all.  Mine take a good 2 seconds when clicking them to change the view.

Inspiring
August 17, 2011

I've got an iPad app created with Flash CS 5.5 and AIR 2.7.1 which starts playing while the screen is black (before the stage appears).

Here's the sequence:

  1. Splash screen appears (Default.png)
  2. Splash screen goes away, the iPad screen goes black for a few tenths of a second and the app starts running.
  3. The stage appears about 0.25 seconds into the intro animation.

This is a single-frame .fla.

All classes are loaded before frame 1.

The intro animation doesn't start until an xml file is loaded. I tried -- unsuccessfully -- to delay the intro animation by loading the xml file in these event handlers inside the document class:

Event.ADDED_TO_STAGE

Event.EXIT_FRAME

NativeApplication.nativeApplication.addEventListener(Event.ACTIVATE, onAppActivated);

The NativeApplication event fires last, but that didn't solve the problem.

The ugly solution was to let an EXIT_FRAME handler run a dozen times before getting things started. AFAIK, there's no Event.STAGE_IS_VISIBLE_NO_FOOLING event, but there should be.

This problem is happening with iPad1s, but not iPad2s. iOS 4.3.5.

The problem is not happening with smaller test apps, which means there must be something in the initialization code that's preventing the stage from appearing immediately after the splash screen goes away.

Known Participant
August 11, 2011

Thanks sanika!!

I will try it today.

One more thing:

What gives better performance for Flex Mobile App in iOS?

¿Make IPA in command line with Adobe AIR 2.7?

or else


¿“Export Release Build” from Flash Builder 4.5.1 targeting iOS devices?

Thanks So Much!

Community Manager
August 11, 2011

Hi,

You shouldn't see any performance difference, they both create the same target(ipa-app-store). While debugging you application in FlashBuilder, you can use the "fast" mode if you want to quickly change code and verify things. This creates ipa-debug-interpreter target and compiles much faster.

Let us know how it goes.

Regards,

Sanika

Known Participant
August 11, 2011

Thanks again Sanika!

I was exporting my Flex App to ios targeting Ad hoc.

I think thats the problem.

I will post the result!

Regards!

Community Manager
August 11, 2011

Hi,

Is this release swf or debug swf? Debug swf might take a little longer.

Regards,

Sanika