Performance Of Flex Application?

Hello all
    Recently I went through video tutorials of flex and found it to be great.But I have one question regarding performance. If I am not wrong then Flex application works like this, Entire application is converted into swf file and for navigation between pages of application there is concept of states.Whatever data is required for different states is  get by using HTTPService,WebService etc . wheras if  we talk about normal web application built using PHP every page and data is loaded from server .For each navigation, data plus markup(HTML/DHTML CSS javascript etc.) to show that data or content is loaded.It has a benefit of downloading only that part of application which is required.
       For example if we have shoping store applicatiion and it has a search page and product list page to display products list in different formats like grid or table then markup plus data in normal web application will be loaded with each request.If user click on search page only then that  page is loaded from server and if user want to view the search results in table format only then that page is loaded.
   I want to know how this work in Flex application.For data part It is clear that for each state whatever data is required is get by using services like HTTPService,WebService etc. But how state presentation part is get?Is the entire swf file containing all states related information is loaded before running the applicatio? For example as in our previous example presentation part of all states like shopping store serch state, product list in table format state and product list  in grid format state in the begining of application .later on if user click on search link it will already have that state view information and it will get data for search  part and put that data into view and present it to the user.For search result also it will  be already having information about how to present that data  so it will get data  only and present it to user.
    If Flex works as i stated above then if we have very big application with many different stats then user has to wait for the loading time off all the states.Or there is provision for some backgroud loading of states that as soon as user request the application first time he gets the first view and then on other states are loaded in backgroud?
   If all the states are loaded at begining of application then what will be performance of application with many states?(Means in that case swf file of compiled application will be of big size and it will take time to load in browser.)
  can anybody tell  me about all  these things in detail.I am sorry if my understanding of Flex is wrong.I am newbie.
Thanks in advance .

This seems more of an RIA performance question than a Flex specific one.  Honestly though, modules aren't needed often in my experience (depends greatly on requirements).
You say that "only the part of the application that is needed" is downloaded, while this is technically true (a bit of an oversimplification as there are other advantages to be had from RIAs), you still have the round trip time required for every single request to the server.  Since an RIA is generally a single bulk download (which may not even be needed if there's caching going on), usually you're talking about a single wait of a few seconds for loading vs multiple waits of a few seconds for page refreshes. 
Even if the initial load time is as much as ~10 seconds (for the first visit), does that outweigh the 1 to 3+ second page refresh penalty constantly interrupting the user's work flow over time?  Also consider Flex's AMF protocol, which blows competing formats (esp XML based) out of the water on performance.  RIAs (especially Flex) win the performance game.

Similar Messages

  • Flex application embedded in a PDF performing a LC call

    Hi,
    I have a Flex application that is embedded in a PDF as a navigator which is supposed to invoke LiveCycle application deployed on a weblogic server using SOAP endpoint. The web service call seems to work fine if I run it from Flash Builder but once it’s inside a PDF, it would appear that the web service call is not reaching the application deployed on the Document Service server. The same application, however, does work if the server is deployed on JBoss.
    I was wondering if anyone has suggestions on how I should go about troubleshooting.
    Thanks, Lilliam.

    Hi,
    Creating a new project it's
    - File -> New -> Flex Project
    - Application Type -> Desktop
    Setting this will create the descriptor file and create the WindowedApplication as the root. This application will startup in a native os window.
    Here is an example of creating a simple os child window;
    <?xml version="1.0" encoding="utf-8"?>
    <s:WindowedApplication xmlns:fx="http://ns.adobe.com/mxml/2009"
                           xmlns:s="library://ns.adobe.com/flex/spark"
                           xmlns:mx="library://ns.adobe.com/flex/mx">
        <fx:Script>
            <![CDATA[
                import spark.components.Window;
                protected function button_clickHandler(event:MouseEvent):void
                    var window:Window = new Window();
                    window.title = "Hello Window";
                    window.width = 200;
                    window.height = 200;
                    window.open();
            ]]>
        </fx:Script>
        <s:Button label="Open Window"
                  click="button_clickHandler(event)"/>
    </s:WindowedApplication>
    The documentation will guide you the rest of the way.
    Mike

  • How was performance of JavaFX Application

    Hi all,
    I read one forum about JavaFX performance related information.. they mentioned like this..
    The first thing you’ll notice is that it’s very slow. The demo takes a very long time to load and start, and real time performance is disappointing. Here is how it compares:
    JavaFX — 14 fps
    Firefox + Silverlight (JavaScript) — 56 fps
    Firefox + Flex — 62 fps
    Adobe AIR — 62 fps
    Firefox + Silverlight (CLR) — 99 202 fps (update: 202 fps after fixing main timer’s latency)
    (All tests were performed on Pentium M 1.7 machine under Windows XP SP2)
    It is 4.4x slower than Flash and 7x 14x slower than Silverlight (CLR-based variant).
    On a positive side, development with JavaFX is fun, the language is very compact and efficient for building complex dynamic layouts. There is a great converter to JavaFX from SVG format and JavaFXPad is done nicely too.
    I want to know that how was the performance of JavaFX application.??
    It seems that very slow while running on WebBrowser.. ???
    Thanks
    R Prabu

    lol
    work with more memory h�h�....
    no serious make sure that your garbagecollector is run very often you can make your own if you want...
    work with servlets...
    hope i helped you out

  • Flex application running under AIR takes a long, long time to start.

    I have a flex application which runs on a desktop under AIR. The application has an assets folder with 3,500 mp3 soundclips totalling about 50MB. The problem is, the application takes around 90 seconds to load. I'm sure that AIR is scanning the application folder and doing something with the contents because if I delete the assets folder it loads in about 5 seconds. Does anyone know why AIR/Flex would do this, and why it doesn't exhibit the same problem if I run or debug in Flexbuilder on eclipse? It's making my killer app unusable!
    Thanks
    Paulo

    Well, I've spent a bit longer looking at this now, and the problem appears to lie with my encrypted local store. The first thing that happens is for the app to read the product key from the ELS. But, it fails (for some unknown reason). So, the app seems to hang there for 90 seconds until it eventually renders the welcome screen. If I remove the assets folder it still fails to read from the ELS, but only takes a couple of seconds to start the welcome screen. This is where the scanning of the application folder seems to come into play, because if I remove the code which reads from the ELS the app starts within 2 seconds whether the asset folder is there or not.
    I think the slow startup and the scanning of the assets folder are just symptoms of a different problem, i.e. a problem with the ELS. I don't have the same problem with my development environment though - it's only when I test deploy the application.
    Thanks for your help on this problem EgorKDie. I think I should be able to resolve it once I can sort out why the ELS is being awkward.

  • How to show double byte data in a Flex application

    Hi
    I am looking for a way to show UTF-8 formatted data in a Flex
    application. I have a Java app in the backend that generates an xml
    file. Some attributes in the file are encoded in UTF-8 (when data
    is Japanese or Chinese...). My Flex app is showing box characters.
    I have XSLT app that generates html based off this xml file. The
    browser i showing the Japanese characters fine.
    I am wondering what the trick is to get Flex app show this
    data.
    Thanks
    Videoguy

    It turned out to be my XP that didn't have the the right lang
    sets installed. I have two PCs. On one everything showed up fine. I
    was able to view arabic, chinese data from xml just fine. On the
    other one, same swf didn't show them. There is MS knowledgebase
    article on how to enable east asian languages etc. I didn't give it
    a try. I am using other pc for my dev now.

  • What to look for in a web hosting company for Flex applications

    Hello,
    I am trying to figure out what I need to look for in a web
    hosting company if I want to deploy my own Flex applications? I
    don't anticipate having any special requirements other than the
    ability to interact with databases and XML files. Can someone help
    me figure out what the server-side requirements are?
    Thanks in advance!
    Matt

    then almost 99.9% hosting will work.
    if you want a Flexx app with compiler then oo thats different
    but as you say "I don't anticipate having any special requirements
    other than the ability to interact with databases and XML files"
    then you can go with pretty much any hosting, as long as they have
    apache, Database serve and I think thats it.

  • How to Call a AIR application from Flex Application

    Hi,
        I have Used AIR (Desktop application) in Flex Builder to Upload a File from a local path and save it it a server path.
    I need to Call this AIR(Desktop application) from my Flex Application.... i.e
    I am using a link button to send a event using Script and Forward that Desktop application  from Flex Screen
    But it doesnot load that (Desktop application)  in Screen. Only Balnk screen is loaded from path
    Here is the code
    AIR(Desktop application)
    <?xml version="1.0" encoding="utf-8"?><mx:WindowedApplication 
    xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" creationComplete="openBrowseWindow();">
    <mx:HTTPService id="urlpath" showBusyCursor="true" useProxy="false" method="
    POST" url="http://localhost:8080/nat/FlexAction.do?method=UrlPath"result="pathresult(event)"
    fault="faultHandler(event)"
    >  
    </mx:HTTPService> 
    <mx:Script>
    <![CDATA[
    import mx.events.FileEvent; 
    import mx.rpc.events.ResultEvent; 
    import mx.rpc.events.FaultEvent; 
    import mx.utils.ObjectUtil;  
    import mx.controls.Alert;
    private  
    var openFile:File = new File() 
    private  
    function openBrowseWindow():void{openFile.addEventListener(Event.SELECT, onOpenFileComplete);
    openFile.addEventListener(Event.OPEN, load);
    openFile.browse();
    private  
    function load():void{Alert.show(
    "load"); 
    var imageTypes:FileFilter = new FileFilter("Images (*.jpg, *.jpeg, *.gif, *.png)", "*.jpg; *.jpeg; *.gif; *.png"); 
    //var textTypes:FileFilter = new FileFilter("Text Files (*.txt, *.rtf)", "*.txt; *.rtf"); 
    var allTypes:Array = new Array(imageTypes);openFile.browse(allTypes);
    private  
    function faultHandler(event:FaultEvent):void { 
    //Alert.show("Fault")Alert.show(ObjectUtil.toString(event.fault));
     private  
    function pathresult(event:ResultEvent):void{Alert.show(
    "res") 
    //Alert.show(ObjectUtil.toString(event.result));}private  
    function onOpenFileComplete(event:Event):void{ 
    //mx.controls.Alert.show("event: "+event.target.nativePath +"UR!!!"); 
    var pPath = event.target.nativePath; 
    var parameters:Object = {FlexActionType:"PATH",path:pPath};  
    // Alert.show("Image Selected from Path : "+pPath); urlpath.send(parameters);
    //Alert.show("Passed.."+parameters);}
    ]]>
    </mx:Script>
    <mx:Button click="openBrowseWindow();onOpenFileComplete(event)" name="Upload" label="Upload" x="120.5" y="10"/> 
    Here is Mxml Code for Flex Application
    <?xml version="1.0" encoding="utf-8"?><mx:Application 
    xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" xmlns="http://ns.adobe.com/air/application/1.0.M4" >
    <mx:Script>
    <![CDATA[
    import mx.controls.Alert; 
    private function Upload():void{ 
    // CursorManager.setBusyCursor();  
    //var url:String = "HomeAction.do?method=onLoad"; 
    //var url:String = "assets/Air.swf"; 
    var url1:URLRequest = new URLRequest("assets/Air.swf");navigateToURL(url1,
    "_self"); 
    // CursorManager.removeBusyCursor(); }
    ]]>
    </mx:Script>
    <mx:LinkButton id="up" click="Upload()" x="295" y="215" label="UpLoad"/>
    In this code i forward using s url to Open tat  Desktop application but a blank screen appears with out the proper output...
    Please Help me in this to forward AIR from Flex Screen..
    Thanks in Advance
    With Regards
    Gopinath.A
    Software Developer
    First Internet Systems Pvt. Ltd.,
    Chennai

    try this
    http://www.leonardofranca.com/index.php/2009/09/17/launching-an-installed-air-application- from-the-browser/
    regards
    Leonardo França
    Adobe Certified Expert Flex 3 with AIR
    Adobe Certified Expert Rich Internet Application Specialist v1.0
    Adobe Certified Expert Flash CS3 Professional
    Certified Professional Adobe Flex 2 Developer
    Adobe Certified Professional Flash MX 2004 Developer
    http://www.leonardofranca.com
    http://twitter/leofederal
    Manager AUGDF - Adobe User Group do Distrito Federal
    http://www.augdf.com.br
    http://twitter/augdf

  • Hi All,i am currently working on a flex application that will allow the user to change the language

    Hi All,i am currently working on a flex application that will allow the user to change the language within the application from english to Japanese and vice versa. And everything works fine.
    I am using flex 4.5
    We allow the user to save records with english or japanese texts.
    problem
    When the user manually enters Japanese text and tries to save it the record defaults back to the default name (which is in english). But if you copy the entered text and paste it and then save it.It works fine.
    Any idea , why this is happening?
    Please let me know if the question is not clear.
    Looks like there was already a bug
    https://issues.apache.org/jira/browse/FLEX-28894?page=com.atlassian.jira.plugin.system.iss uetabpanels:all-tabpanel
    Not sure why does it say , Resolved .
    -KB
    Message was edited by: bKartik.b

    By Payal integration , you mean paypal button html ? or payment gateway setup etc ? If its a gateway configuration for your site domain then single page for all layout will work , but if you are using button code for all renditions then you would need to create separate pages for all.
    Thanks,
    Sanjit

  • Flex application not working when deployed run from Server

    Hi,
    I have Flex application which takes a parameter from user, makes a web-service call and returns the message.
    This application is running perfectly when I launch from IDE.
    But when I copy the files from bin-release to server and launch it, it gives me no result.
    In the crossdomain file on the server which hosts web-service, I have added the my host IP in the
    allow-access-from domain tag.
    In the initialization method of the application I load crossdomain using following code:
        Security.allowDomain("remoteservername");
        Security.loadPolicyFile("http://remoteservername/crossdomain.xml");
        var request:URLRequest = new URLRequest("http://remoteservername/crossdomain.xml");
        var loader:URLLoader = new URLLoader();
        loader.load(request);
    Is there a way I can debug application when running from server?
    Please give me some pointer to solve this problem.
    Thank you.
    Chintan

    Alex thanks for reply
    The URL for the app is http://<some_IP>/flex_app
    <some_IP> is added in crossdomain.
    Also we have outbound IP's and of these are also added in the crossdomain file.
    This is the current content of crossdomain file:
    <cross-domain-policy>
    <site-control permitted-cross-domain-policies="master-only"/>
    <allow-access-from domain="<some_IP>"/>
    <allow-access-from domain="<outbound_IP1>"/>
    <allow-access-from domain="<outbound_IP2>"/>
    <allow-access-from domain="<outbound_IP3>"/>
    <allow-http-request-headers-from domain="<outbound_IP1>" headers="SOAPAction"/>
    <allow-http-request-headers-from domain="<outbound_IP2>" headers="SOAPAction"/>
    <allow-http-request-headers-from domain="<outbound_IP3>" headers="SOAPAction"/>
    </cross-domain-policy>
    App runs perfectly fine when launched from Flex Builder.

  • Flex Application does not work outside of the default dir

    Hi,
    I have developed a flex application which calls a http
    service and displays the contents in a text area.
    This works fine when I execute it from the flex builder or
    from the directory where the flex builder stores it.
    If I copy the files to any other dir or the server, after
    making http call no result is displayed in the text area.
    Is there any thing else i need to do other building
    application in flex builder for deployment.
    Please help,
    Thanks in advance,
    Chintan

    "rtalton" <[email protected]> wrote in
    message
    news:gjlmvm$hrv$[email protected]..
    > Stubborn, aren't we? Ok, let me try again:
    > You only use "loadPolicyFile" to load a non-default
    policy file. remove
    > that
    > line from your code.
    > Also you do not need this line:
    > flash.system.Security.allowDomain("*");
    > ...in your code. Remove it. This is used when you have
    two SWFs on two
    > different servers. You do not.
    >
    > Again, read this page:
    >
    >
    http://livedocs.adobe.com/flex/3/html/help.html?content=deployingoverview_12.htm
    > l
    >
    > Your answer is there.
    > Hint: all you need is to *properly* deploy a
    cross-domain policy file.
    > Really.
    > I'm being very honest here. Have I ever lied to you
    before? No, I haven't.
    > So
    > you're buying the first round tonight after work, ok?
    Some people will do anything for a date ;-)

  • How to do single sign on for multiple webservices in flex application

    Hi Experts,
    I have created a flex application and using few webservices in that application. When I run the application its asking logon details for each and every webservice I used. However I want to do single sign On without providing logon details for each and every webservice.Please suggest me.
    Thanks and advance.

    Hi,
    if yout projects are deployed in their own Java EE context root then you have multiple applications, though logically you count them as one. Use OSSO or Oracle SSO (where OSSO should be fine since all deployments share the same instance)
    Frank

  • How to display pdf file in flex application

    hi,
    I am Ibran, I am using Flex4.5, in that i want to display a pdf file like images.
    How can i do it please anyone tell me.
    I have used navigateToURL(url),but this was going into navigation and i can't see my textfield and buttons.
    So without this  navigateToURL(url) how can i display a pdf file in flex without navigation so that i can see my textInputs and buttons.

    Flash does not have the ability to load/display/manipulate PDF files, so you can't open it directly in the flex application.  With clever HTML and javascript, you can make it appear that it is in the same window, but it will actually be in a separate window/div in the browser.  And yes, this has always seemed absurd to me that Adobe doesn't support PDF's......
    Mark

  • How to call setter Method of ActionScript class with in a Flex Application

    Hi
    I have Action class as shown :
    public class MyClass
    private var name:String 
    public function get name():String {
        return _initialCount;
    public function set name(name:String):void {
        name = name;
    Now please let me know how can i access this Action class under my Flex Application and call the setter Method of it to set the value for the name .
    For example on entering some data in a TextInput and  click of a submit Button , on to the Event Listener , i want to call the set name method of my ActionScript class .
    Please share your ideas on this .

    Thanks  Gordon for your resonse .
    Say for example my Action class is like this :
    public class MyClass
    private var name:String 
    public function get name():String {
        return name;
    public function set name(name:String):void {
        name = name;
    This is inside the MXML
    I know this way we can do it
    public var myclass:MyClass = new MyClass();
    myclass.name="Kiran";
    Now my query is can we do in this way also ??
    myclass.set name(SomeTextInput.text);
    Please share your views on this , waiting for your replies .
    Thanks in advance .

  • Is it possible to export of the stage of a Flex application in vector format?

    Is it possible to export of the stage of a Flex application in vector format?
    Right now our only option is to render our graphs to a (large, off-screen) bitmap and export that bitmap, which is a real shame because every
    component in Wondergraphs is 100% vector based.  Anyone at Adobe know more about this?

    Hi.
    Try start->search for pen and touch--> then uncheck "Use your finger as an input device" in the Touch tab.

  • How to load a FLEX application in an AIR desktop application.

    I am creating an AIR desktop application (mx:WindowedApplication). I need to load another remote FLEX application (mx:Application) inside my AIR application.Is it possible ? If then ,please mention how to achieve this ..

    If it is bundled with the air app, then it's as easy as using the SWFLoader class.
    If it's loading from a remote host, you need to load it into your app as a ByteArray first.
    More info here: http://aaronhardy.com/flex/loading-a-remote-module-into-a-local-app/
    The example is for Modules, but the principal is the same I believe.

Maybe you are looking for

  • Mini DisplayPort to VGA Adaptor not Mirroring

    13-inch MacBook Pro (Mid 2012) running 10.8.3 Monoprice Mini DisplayPort to VGA Adaptors freeze the system (no issues with Monoprice Mini DisplayPort to DVI connected to monitor) so I tried an Apple Mini DisplayPort to VGA Adaptor and that works ok,

  • In BP master, payment terms

    Hi Experts, In BP master, payment terms have credit limit and commitment limit, I want to know how it works. Anyone guide me. Thanks and regards, Manikandan

  • Problem in VA05

    Dear all, I have little problem in VA05, in this report layout save option is not active , can anyone guide how to activate it. Regards, Talwinder

  • Query: XMLPayload vs TextPayload in Module

    Hi Experts,           I'm a newbie to PI/XI. I've just started reading about modules and got a query about the XMLPayload and TextPayload?  Could any of you describe when (in which scenario) to use what (Textpayload or XMLPayload)? Does Textpayload c

  • White Balance jpg Importing Issue

    In Lightroom 1.2 I'm having a white balance issue after importing jpg's from my hard drive into LR. I noticed the issue after I did my jpg selection in Windows XP using the MS Picture Viewer to delete bad jpg's before I import the good jpg's into Lig