Development for mobile with Adobe AIR

Asked

Viewed 266 times

1

I’m trying to develop a chat, with custom listview for video, images and etc. but it’s causing a lot of lag.

Hangs everything that’s right! Even touch, when you move from one screen to another.

Has anyone ever had a problem with that and can help me? Every Android app created with Flex Mobile Project or Flash has this kind of problem?

  • 2

    Welcome to [en.so]! Your question was closed by the community because with the data provided it is not possible to give a clear and objective answer. However, you can edit your question by adding logs, error messages, application code, and something that makes it possible for someone to answer the question. Also feel free to create new questions or even answer, but I suggest reading about how to ask a good question in our Help Center.

  • Good evening. My old question was edited on account of someone not having fully understood. So let’s go there. I would like to know the following: Is it worth developing apps for android using the Flex Mobile Project? I ask this, because I have been trying to develop a chat, with custom listview for video, images etc. But lag is too long. Even touch. Hangs all the way: Touch, when it goes from one screen to another etc. Has anyone ever had a problem with that? In experience, someone finds it advantageous to develop for android or Ios using Flex or Flash?

  • I re-edited the question to make it more objective and perhaps allow its reopening.

  • 1

    "is worth it" still shows how subjective the question is. It must remain suspended.

  • First of all, thank you for your reply. But it’s simple, just someone with experience say whether it’s worth developing for mobile devices, using ADOBE FLEX or FLASH technology. It is now clear?

  • I edited and reopened the question, but I still strongly recommend following the @utluiz guidance above: if the answer is that Flex/AIR itself is not the cause of the problem, it is impossible to help you without seeing your code.

  • I am happy with the help of the moderators! The AS3 community is finally growing.

Show 2 more comments

1 answer

0


Adobe AIR, by working on top of a VM, leaves the performance to be desired in relation to the device’s native language (either JAVA or Obj-C). This is further compromised when using many objects on the display stage or a code line "too long".

"I work with Flash and Adobe AIR and know how much it bothers, even on Desktop."

Some tips I took as a resource to decrease these crashes:

  • Avoid using "alpha = 0" and whenever possible, use "Visible = false". With alpha, although the object is not seen, it continues on stage and being rendered. With Visible this does not occur;
  • "Copy" objects and not "Duplicate". Whenever possible use/add the same object on the screen;
  • Be careful when using filters and effects in Movieclips and Textfields, such as shadows, beziel, etc... This in conjunction with an interpolation requires a lot of processor;
  • There is a tip that helps a lot: render the objects on stage as Bitmap: Estates -> Showing -> Render -> Export as bitmap;

Other than that I recommend testing on other devices and checking the performance. Many of the apps I created were simple, but without these "lag" problems, I think these tips will help a lot.

Unfortunately, Adobe AIR apps face this problem, which "there is no cure, only treatment".

  • Hey, guys, good afternoon. I was wondering if you could refer to sites like androidhive.info that share information about native mobile application development, only in this case I would like it to go to Flash Mobile. As practices for development etc. I have no intention of creating large applications, but good and cross-platform applications. In this case also, I would like to create apps that don’t have too many crashes, this is annoying and makes the user never come back. ;)

Browser other questions tagged

You are not signed in. Login or sign up in order to post.