Running the Flex 3.0 Sample Application and Example Source Code
Once the application is cleaned and build its ready to run.
Navigate to flex navigator, you can find a node in the tree view called as ‘bin-debug’ expand the node. Inside the node you can find the compailed .swf files and auto generated html files. In our case we will have FlexBeat.html file and also a FlexBeat.swf file.
Now select the FlexBeat.html file, rigth click on the file,select ‘Run as’ menu item and click on run on server. Or you can directly use the play button icon given in the top of the IDE to run the application. see the figure below.
Once you run the application the IDE will open up a web browser (the default web browser set in the IDE) and run the Human Interface (GUI). The Human Interface(GUI) developed for this artical using the above mxml code is shown below. Here the interface is opened in Google Crome browser.
Now enter your name and click on go. You can see the server returned string displayed in the text output on the Human interface. see the figure below. you can also use some System.out.println statements in Java POJO side so that you can see the console outputs on the server.
Flex 3.0 Sample Source code
Here is the full source code developed for this artical. This source code has been exported from the IDE and so can be imported by others directly using eclipse import option. But make sure to currect some of the JDK / server problems mismatch once it is imported.
Code Link: FlexBeat.zip
In this article you have learnt how to develop a Flex Web Application which connects to Java POJO’s through Remote Object included in BlaseDS service and deploy the application in Tomcat Server. Still many things like Messaging service, Proxy service etc are not covered in this artical. This artical just gives the developers a much needed push in Flex world. This is not the end, Still miles to go.