ndt-dev - Re: [ndt-dev] Flash client improvement
Subject: NDT-DEV email list created
List archive
- From: Sebastian Kostuch <>
- To: Tiziana Refice <>
- Cc: Jakub Sławiński <>, Meredith Whittaker <>, "<>" <>
- Subject: Re: [ndt-dev] Flash client improvement
- Date: Thu, 20 Feb 2014 14:53:19 +0100
Hi Tiziana, On 20.02.2014 10:12, Tiziana Refice
wrote:
Unfortunately not. I am talking about user interface markup language file which is part of Flex framework (detailed information can be found i.e. here).
Simply said when we build our application using Flex we use .mxml files instead of .as (there is also possibility to join these two solutions. Also, in fact, during compile time all mxml files are transformed into pure AS code) and here we declare all used UI components (just by adding proper xml tag). At this moment our NDT flash app uses only components from flash.display package which contains only basic UI controls (so there is no possibility of using things like ProgressBar, Tooltip etc). More advanced controls are part of mx.* and spark.* packages . However, to use them our app need to be exposed within Flex framework (these controls require specific container, more info here - section "Spark containers"). Currently what we have is simply sprite object, on which we put all required components. When it comes to using mx or spark controls there isn't possibility to add them on sprite (they need to be placed inside mentioned container). So my question was related to if we want to convert our app from pure AS to Flex code in order to have possibilty of using wider asortment of UI components.
From official Flex website it seems like all clients which can use pure AS can also use app written in Flex. As I mentioned all mxml code is finally converted to AS one so it shouldn't be problem. However, Flex as a framework tends to add a lot of rather complex and no such efficient code in generated .as files. In fact, I was thinking that the purpose of developing flash client was to exchange it with current java applet which is also a background for JS code due to java applets being removed from browsers (I am according to M-lab released version). If we think about it this way about it then it's rather enough to have flash app using only basic UI. But then we need to accept that adding things like animated bars, tooltips, scrollbars etc would be rather difficult compared to making same things in Flex. On the other hand Flex is less efficient than pure AS (I don't know exact numbers however). I think that in such applications as NDT flash client GUI isn't key thing and user UI experience could remain as it is (maybe just change some little things to make it even better, but overall layout doesn't need such a big improvement, especially that java applet which we have till now also isn't very complex when it comes to UI). In my opinion Flex is excellent solution when making applications where interaction user-app is very important and quite often used. In our app all we need is just letting user start test and display results to him/her. However, if we want things such as visible scrollbars and/or animated progress bars then I will propose to just create mxml file with minimal required code and convert Main class from the one extending Sprite to some spark/mx container such as Application. To achieve this we can do something similar as is proposed here. Also then whole GUI class should be little changed to not use sprite.
My idea was not to update progress bar on live but just changing its status after completion of specific test or part of this. I have pushed changes on FlashIssue115 branch where there is just simple plain text indicating percentage of tests completed. Such an update wouldn't be performed often so in my opinion we don't need separated thread here. What do you think about such a solution?
I just wanted to keep flash client consistent with Java one. In latter we have already separated button to copy results to clipboard. However, if you think that this change is unnecessary then I will of course accept it :). Also I have updated changes on FlashIssue114 branch and made copy button more intuitive. Feel free to review.
Currently it would be rather difficult as there is no UI component in basic flash ones that would perform this role. Of course there is possibility to write manually AS code which will display such scrollbar (probably as image/sprite) and code its behaviour. I can't tell exactly how much additional code and work it would require, but I could check it in detail right after your answer according this message. However if we would use Flex framework it would be a lot easier as there is ScrollBar object which has this functionality. I hope my thoughts are a little more clear now. Feel free to ask further questions and I am looking forward to your comments. Regards, Sebastian Kostuch
|
- [ndt-dev] Flash client improvement, Sebastian Kostuch, 02/07/2014
- Re: [ndt-dev] Flash client improvement, Aaron Brown, 02/07/2014
- Re: [ndt-dev] Flash client improvement, Tiziana Refice, 02/08/2014
- Re: [ndt-dev] Flash client improvement, Will Hawkins, 02/08/2014
- Re: [ndt-dev] Flash client improvement, Tiziana Refice, 02/10/2014
- Re: [ndt-dev] Flash client improvement, Sebastian Kostuch, 02/13/2014
- Message not available
- Message not available
- Message not available
- Message not available
- Re: [ndt-dev] Flash client improvement, Sebastian Kostuch, 02/19/2014
- Re: [ndt-dev] Flash client improvement, Tiziana Refice, 02/20/2014
- Re: [ndt-dev] Flash client improvement, Sebastian Kostuch, 02/20/2014
- Re: [ndt-dev] Flash client improvement, Tiziana Refice, 02/21/2014
- Re: [ndt-dev] Flash client improvement, Sebastian Kostuch, 02/21/2014
- Re: [ndt-dev] Flash client improvement, Aaron Brown, 02/21/2014
- Re: [ndt-dev] Flash client improvement, Tiziana Refice, 02/22/2014
- Re: [ndt-dev] Flash client improvement, Aaron Brown, 02/24/2014
- Message not available
- Re: [ndt-dev] Flash client improvement, Tiziana Refice, 02/22/2014
- Re: [ndt-dev] Flash client improvement, Sebastian Kostuch, 02/13/2014
- Re: [ndt-dev] Flash client improvement, Tiziana Refice, 02/10/2014
- Re: [ndt-dev] Flash client improvement, Will Hawkins, 02/08/2014
- Re: [ndt-dev] Flash client improvement, Tiziana Refice, 02/08/2014
- Re: [ndt-dev] Flash client improvement, Aaron Brown, 02/07/2014
- Re: [ndt-dev] Flash client improvement, Sebastian Kostuch, 02/10/2014
- Re: [ndt-dev] Flash client improvement, Tiziana Refice, 02/10/2014
- Re: [ndt-dev] Flash client improvement, Sebastian Kostuch, 02/10/2014
- Re: [ndt-dev] Flash client improvement, Tiziana Refice, 02/10/2014
Archive powered by MHonArc 2.6.16.