Coding a better flex mobile app

2014-04-02 Thread Gabriele Campi [Media Logic]
Hi, last year I created a mobile app for IOS and Android using Apache Flex. My app uses a SQLite database and makes large use of graphics and bitmapdata (being a design app that manipulates images) and I encountered many problems with general performances and memory management. My app now is

Re: Coding a better flex mobile app

2014-04-02 Thread Angelo Lazzari
Hi Gabriele, i would suggest you to continue using Apache Flex but adding the Starling framework and the fathersUI interface. This software stack will improve your app performance FOR SURE but you have to consider to re-code at least the view layer (if you developed in MVC architecture) or the ent

Re: Coding a better flex mobile app

2014-04-02 Thread OmPrakash Muppirala
On Wed, Apr 2, 2014 at 1:05 AM, Gabriele Campi [Media Logic] < gabriele.ca...@medialogic.eu> wrote: > Hi, > > last year I created a mobile app for IOS and Android using Apache Flex. > > My app uses a SQLite database and makes large use of graphics and > bitmapdata (being a design app that manipula

Re: Coding a better flex mobile app

2014-04-02 Thread Tom Chiverton
On 02/04/14 09:05, Gabriele Campi [Media Logic] wrote: My app uses a SQLite database and makes large use of graphics and bitmapdata (being a design app that manipulates images) and I encountered many problems with general performances and memory management. My app now is heavy and slow. This

Re: Coding a better flex mobile app

2014-04-02 Thread Justin Mclean
Hi, > My app uses a SQLite database and makes large use of graphics and bitmapdata > (being a design app that manipulates images) and I encountered many problems > with general performances and memory management. My app now is heavy and slow. Scout should be able to show you many places where y

Re: No Prompt in TextInput when layoutDirection set to RTL (Mobile)

2014-04-02 Thread Ori 007
Hi Maurice, Sorry for the late response. The issue that the letters order is not inverted as it should be is very disappointing. Thanks for your new skin. I tried it and the prompt text appear, but not in right place. I added to your skin: prompt.setStyle("textAlign", "right"); and it works fin

Re: Coding a better flex mobile app

2014-04-02 Thread Gabriele Campi [Media Logic]
Hi Om, Tom and Justin, I experienced performance problems with bitmapdata (I had to avoid pixel to pixel iterations cause they're too slow, also on small images of 1024x768px) and in general with views transitions and UI components (they aren't as fluid and responsive as the native apps' ones

Re: Coding a better flex mobile app

2014-04-02 Thread After24
Hello, >From my personal experience, it's not possible to get a super fluid app using flex mobile (especially on mid range phones and tablets). I think this perception is mainly due to the list component which never reaches 50/60 fps even when its itemRender is well optimized. I know that this ne

RE: Coding a better flex mobile app

2014-04-02 Thread Maurice Amsellem
>I think this perception is mainly due to the list component which never >reaches 50/60 fps even when its itemRender is well optimized. I thought the eye perception was limited to 24/25 fps (which is the frame rate at the movies) So what's the difference ? Maurice -Message d'origine-

RE: Coding a better flex mobile app

2014-04-02 Thread Mark Line
Not sure how it was coded, but on http://flex.apache.org/community-showcase.html CityU Mobile runs really really nice on my nexus 5 (I know it’s a higher end), you should check it out -Original Message- From: After24 [mailto:vinc...@after24.net] Sent: 02 April 2014 11:13 To: users@flex.

RE: Coding a better flex mobile app

2014-04-02 Thread Maurice Amsellem
Reading from wikipedia on this topic (http://en.wikipedia.org/wiki/Frame_rate) It seems that it's not the frame rate itself that is important for creating a "fluid" animation, but rather motion blurring, which is something natural when you film moving real objects with a camera, and which can be

RE: Coding a better flex mobile app

2014-04-02 Thread After24
Hi Maurice, No that's not true, The 24 fps limit is a misconception. In fact some studies shows that the amelioration of movements perception by human eyes can be improve until 120 fps ( http://onlinelibrary.wiley.com/doi/10.1889/1.2433276/abstract

Re: Spark Datagrid with Multiple Columns

2014-04-02 Thread Ronny Shibley
Hello Again, I tried using Flex List ItemRenderer but with all those columns it took some time to render initially around 5 seconds with Flash Hangin... Not very pleasant. Anyhow, after doing a lot of digging and stumbling upon the following website http://zoltanb.co.uk/flex-performance-tuning-su

RE: Coding a better flex mobile app

2014-04-02 Thread Maurice Amsellem
I am interested, but the article cannot be downloaded from the link. Is it a paying service ? Maurice -Message d'origine- De : After24 [mailto:vinc...@after24.net] Envoyé : mercredi 2 avril 2014 12:41 À : users@flex.apache.org Objet : RE: Coding a better flex mobile app Hi Maurice,

Re: Spark Datagrid with Multiple Columns

2014-04-02 Thread Tom Chiverton
On 02/04/14 12:04, Ronny Shibley wrote: I tried using Flex List ItemRenderer but with all those columns it took some time to render initially around 5 seconds with Flash Hangin... Not very pleasant. Are you sure deferred rendering was on ? Tom

Re: Spark Datagrid with Multiple Columns

2014-04-02 Thread Ronny Shibley
By deferred rendering, you mean useVirtualLayout ? or am i missing something ? If so, yes the rows were not the issue, it's the number of columns... I did not find a way to differ rendering the non visible columns unless i put a DataGroup inside my List Item Renderer... and that was expensive too.

Re: Spark Datagrid with Multiple Columns

2014-04-02 Thread Tom Chiverton
On 02/04/14 13:22, Ronny Shibley wrote: If so, yes the rows were not the issue, it's the number of columns... I though this was with a List item renderer, so there are no columns, just a bunch of stuff in a HorizontalLayout ? Tom

Re: Spark Datagrid with Multiple Columns

2014-04-02 Thread Ronny Shibley
Yes i simulated columns in my list item renderer... basically just drew some cells with a fixed width Kind Regards, Ronny Shibley, Eng Software Architect | Codefish | www.codefish.com t +961 5 450824 | m +961 70 250650 On Wed, Apr 2, 2014 at 3:28 PM, Tom Chiverton wrote: > On 02/0

Re: Multiple Air Instances

2014-04-02 Thread Nemi
Maybe this can help: https://github.com/chrisdeely/AirAppDuplicator -- View this message in context: http://apache-flex-users.246.n4.nabble.com/Multiple-Air-Instances-tp5884p5904.html Sent from the Apache Flex Users mailing list archive at Nabble.com.

Re: Coding a better flex mobile app

2014-04-02 Thread Gabriele Campi [Media Logic]
But for now I’m forced to choose other solutions to get a fluid mobile app, to be specific I use : - Starling - Feather UI - Robotleg - AS3 signal So you're using Starling and FeatherUI for the interface and Robotleg for the data handling? Is it possible to do the same with Flex instead of RL? A

RE: Coding a better flex mobile app

2014-04-02 Thread After24
Maurice, I only have access to the abstract of the study. 2 more links (in french) on the subject : http://www.nofrag.com/2003/nov/24/8629/ http://www.lefigaro.fr/cinema/2012/12/13/03002-20121213ARTFIG00653--bilbo-le-hobbit-la-revolution-des-48-images-p

RE: Coding a better flex mobile app

2014-04-02 Thread After24
Hi Mark, Yes but like you said it's a Nexus 5... and it will probably take time before this level of power reaches low-end devices. Mark Line wrote > Not sure how it was coded, but on > http://flex.apache.org/community-showcase.html > > CityU Mobile runs really really nice on my nexus 5 (I kn

RE: Multiple Air Instances

2014-04-02 Thread Saul Diaz
Thanks nemi... I am using appduplicator right now . it copy the folder of the application replacing application id, I found it last night after my email We will want to make it work in runtime but something is something. Regards saul -Original Message- From: Nemi [mailto:nemino...@gmai

RE: Coding a better flex mobile app

2014-04-02 Thread Alex Harui
It will be interesting to see if FlexJS on mobile is faster. Peter is working on a mobile app right now. -Alex From: After24 [vinc...@after24.net] Sent: Wednesday, April 2, 2014 3:12 AM To: users@flex.apache.org Subject: Re: Coding a better flex mobile ap

RE: Coding a better flex mobile app

2014-04-02 Thread OmPrakash Muppirala
"Just to test performances I created an Hello World app in Objective-C, AS3 and Flex, just a pair of views with a few buttons, and the Flex one was dramatically slow and heavy compared with the others." This doesn't sound right to me. Forget 60fps graphics, it seems Gabriele is not able to get a

RE: Coding a better flex mobile app

2014-04-02 Thread flex
This is why I mentioned trying to leverage some basic starling/feathers capabilities for some of the most used components like scrolling lists. I'm not sure if that would be possible but that slight lag plays into that whole narrative about slowness, memory hogging, battery life etc that has pla

Re: Coding a better flex mobile app

2014-04-02 Thread Gary Yang
"14 000 lines of codes for UIComponent" is not only hurting the performance, but also scare developers away from looking into it, the 1st version of Flex was 2004, and the architecture has not been changed essentially: everything jammed together. When I looked into Java Spring Framework's growth,

Re: Spark Datagrid with Multiple Columns

2014-04-02 Thread Julio Carneiro
any specific reason for not using Datagrid, which already has a pretty decent multi-column support? On Apr 2, 2014, at 9:30 AM, Ronny Shibley wrote: > Yes i simulated columns in my list item renderer... basically just drew > some cells with a fixed width > > Kind Regards, > > > Ronny Shi

Re: Coding a better flex mobile app

2014-04-02 Thread After24
Hi Gabriele, Feather UI works on top of the Starling framework, I use it to for the user interface. Robotlegs and AS3 signal helps me to implement MVC architecture. For handling remote operations I use rpc.swc (wich has a dependency with framework.swc) of the flex framework. You can find document

Re: Coding a better flex mobile app

2014-04-02 Thread simon gladman
I have two apps out on both iOS and Android tablets and both are Flex based. One is a game using Nape Physics and the other a maths app with lots of visual updates on the screen with each frame. Both run fine on my iPad 3 and little Nexus 7 - around 30fps which, for my requirements (and especially

RE: Coding a better flex mobile app

2014-04-02 Thread After24
I agree with David, Saying "Flex on mobile is slow" is inacurate and mainly caused by the average performance of scrolling lists. I have tried to look into ListBase to see if I could make optimizations but the I must recognize that the amount of code is very intimidating... flex wrote > This is

Re: Coding a better flex mobile app

2014-04-02 Thread Javier Guerrero García
Have anyone on this thread EVER had a look at the s:Application object attribute *frameRate*? http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/spark/components/Application.html It *defaults to 24fps*, but everything runs really great at 60 :) (and believe me, your high end mobil

Re: Coding a better flex mobile app

2014-04-02 Thread Javier Guerrero García
Here's a couple of link with examples and info: http://www.morearty.com/blog/2006/07/17/flex-tip-a-higher-frame-rate-even-makes-text-entry-look-better/ http://help.adobe.com/en_US/as3/mobile/WS948100b6829bd5a61c0b0b612763986266-8000.html On Wed, Apr 2, 2014 at 6:18 PM, Javier Guerrero García wr

Re: Coding a better flex mobile app

2014-04-02 Thread Gabriele Campi [Media Logic]
Have anyone on this thread EVER had a look at the s:Application object attribute*frameRate*? I did, and my apps are running at 60 but I didn't noticed great improvements. I think that performance and fps are only part of the problem. On low end devices (but also iPad2 or iPad mini) the availabl

Re: Coding a better flex mobile app

2014-04-02 Thread Javier Guerrero García
Yep, although it's true that retina iPads trend to run a little bit slow in some versions of the SDK. Have a look at look4color app in the store (ios/android), and check the performance of the list itemrenderers by yourself :) (I promise they're all simple MXML renderers even with bindings, no ultr

RE: MobileGrid Skins

2014-04-02 Thread Jonathan Christian
Thanks Maurice I was able to set up a sharp looking Mobile Grid header, one thing I noticed is when you select the second row down and try to sort the data - any rows above it flicker to the change, and there is no flickering when the last row is selected. Just a little peculiar so I thought I'd l

Re: Spark Datagrid with Multiple Columns

2014-04-02 Thread Ronny Shibley
Yes a very specific reason, the scrolling starts lagging once you have 500 columns with 100 rows in a spark datagrid with column width 30px and column height 30px. Lots of item renderers... I'm not saying its not performant, because it is and it renders pretty fast... but the scrolling is not not

Re: Coding a better flex mobile app

2014-04-02 Thread After24
Hi Javier, To be honest I never tried to change the framerate of the application... I'm feeling a bit stupid now :-) Will try with an app on a Nexus S and a nexus 4. Thanks. -- View this message in context: http://apache-flex-users.246.n4.nabble.com/Coding-a-better-flex-mobile-app-tp5888p

Re: Coding a better flex mobile app

2014-04-02 Thread Javier Guerrero García
Exactly the way I felt the first time :) I mean, it's not THE silver bullet, and your opaqueBackground/cacheAsBitmap/etc... optimizations of course counts (hugely on low end devices), BUT ... you really can notice the difference :) Cheers :) On Wed, Apr 2, 2014 at 7:03 PM, After24 wrote: > Hi

Re: Coding a better flex mobile app

2014-04-02 Thread Alex Harui
Using a higher frame rate can increase your cpu utilization and potentially burn battery faster. You can change it at runtime for when you really need it Sent via the PANTECH Discover, an AT&T 4G LTE smartphone. Javier Guerrero García wrote: Exactly the way I felt the first time :) I mean, it

Re: Coding a better flex mobile app

2014-04-02 Thread Javier Guerrero García
Of course, Alex, what did you expected? Everything faster and smoother AND lower battery consumption? What else, free data downloading with unlimited bandwith too? :) Try with the /allowMiracles command line switch when compiling :) On Wed, Apr 2, 2014 at 8:09 PM, Alex Harui wrote: > Using a h

in TextArea

2014-04-02 Thread Scott Matheson
Hi I am trying to build a Paragraph from sentences, this builds the Paragraph (from am XML file and itemRender) the build function looks like var linkWrapper:LinkElement = new LinkElement(); var sentence:SpanElement = new SpanElement(); sentence.styleName = 'linkStyle'; sentence.textDecor

Re: CreationComplete of ViewStack components

2014-04-02 Thread Oleg Konovalov
Alex, I tried to put my code populating dropdownlists (DDLs) into onContentCreationComplete of the whole TitleWindow, but there my DDLs are still NULL. Or you were talking about that ContentCreationComplete of the ViewStack? that NavigatorContent? Form? DDLs themselves? Please advise. TIA,

Re: Coding a better flex mobile app

2014-04-02 Thread jude
Does it use more CPU if you're not running any code? I mean a higher frame rate updates the display in the case of 30 fps to 60 fps 30 more times than normal but if the view doesn't change and no code needs to execute how much is really being used? Because, Flex has a invalidation for specific regi

Not able to play video in my iPad

2014-04-02 Thread sam991
Hi every one, I am developing a flex mobile application which runs video in call out. This is running perfectly in android tabs, but when i compile my code for my iPad i only see video player, but their is no sound and video playing. I have tried many things to resolve my problem, but nothing help

Re: Not able to play video in my iPad

2014-04-02 Thread OmPrakash Muppirala
There are some limitations when it comes to video on iOS with Adobe AIR. Perhaps this doc might help? http://www.overdigital.com/2012/01/09/the-ultimate-guide-to-understanding-advanced-video-delivery-with-air-for-mobile/ Here is another technical doc about encoding video for iOS http://download.m

Rendering issues with Flex application

2014-04-02 Thread nilwant
Hi, We are using automation for testing our applications.Sometimes there is a delay in rendering of flex screens.The backend call is completed but not everything can be seen on screen.Because of this the test cases fail. Is there any flash event which can tell us the client side rendering on the sc

Re: in TextArea

2014-04-02 Thread OmPrakash Muppirala
According to the docs [1] the breakelement gets converted into newline character and hence does not appear in TextFlow markup. As a hack, you can try inserting where you want a Again, if you export the markup, the will get replaced by a newline character. But at least your display would look

Re: Not able to play video in my iPad

2014-04-02 Thread sam991
Hi, I have used code to play video both in android tab and my iPad, with code video plays very well in android tab and in iPad only video player is displayed and nothing happens. protected function init():void { try { vp.sourc

Re: Not able to play video in my iPad

2014-04-02 Thread OmPrakash Muppirala
It is possible that the mp4 file did not get embedded with the iOS app. Attach a fault handler to ns and see if something shows up. Thanks, Om On Wed, Apr 2, 2014 at 11:20 PM, sam991 wrote: > Hi, > > I have used code to play video both in android tab and my iPad, with code > video plays very we

RE: CreationComplete of ViewStack components

2014-04-02 Thread Alex Harui
The ViewStack. From: Oleg Konovalov [oleg...@gmail.com] Sent: Wednesday, April 2, 2014 8:00 PM To: d...@flex.apache.org Cc: flex-...@apache.org; users@flex.apache.org Subject: Re: CreationComplete of ViewStack components Alex, I tried to put my code popula

RE: Coding a better flex mobile app

2014-04-02 Thread Alex Harui
Well, yes, I would guess it uses more CPU just because some OS event is firing more often and runs some code in the player. but if there isn't work happening in the ENTER_FRAME and related events the difference could be hard to detect. But folks have reported in the past that a high frame rate

Re: Not able to play video in my iPad

2014-04-02 Thread sam991
I got this error in catch function i just added as you said in ns. -- View this message in context: http://apache-flex-users.246.n4.nabble.com/Not-able-to-play-video-in-my-iPad-tp5932p5940.html Sent from the Apache Flex U

RE: Rendering issues with Flex application

2014-04-02 Thread Alex Harui
Flex components generally dispatch updateComplete event. From: nilwant [sheetalnilw...@gmail.com] Sent: Wednesday, April 2, 2014 10:49 PM To: users@flex.apache.org Subject: Rendering issues with Flex application Hi, We are using automation for testing our a