in Technology

Flex 1.5, an Introduction

Here is a brief write-up about my take on Flex 1.5. Not very exhaustive but highlights few features I like best. More to follow in eventual post along with my development phases. Out of the many features of Flex 1.5, I particularly liked RSL or the Runtime Shared Library, Remote Object and the History Manager the best.

RSL is an SWF which can have shared assets such as images, components, and even other SWF files. This file is extracted from an SWC file before distributing, and is cached locally by the Flash player. So, next time the Flex application is requested, the Flash Player loads the RSL from the local client’s cache. The Flash player will try to get a new SWF File only when the RSL descriptor file or its dependencies change. Eventually, RSL allows us to have common external assets sharable across different applications and are more aptly usable for larger Flex Applications.

An RSL can be used after it is being defined or created with the .SWS extension.

<library>
   <namespace uri="http://www.macromedia.com/2003/mxml">
   	....
   </namespace>
   <embed source="CommonLogo.jpg" SymbolID="Logo" />
   <embed source="CommonStyle.swc" SymbolID="Style" />
   <embed source="CommonAssets.swf" SymbolID="CAssets" />
   ...
   ...
   ...
</library>

Then the RSL is accessed from your web directory

<mx:Application rsl="MyRSL.sws">
or
<mx:Application rsl="MyRSL.sws;moreRSL.sws;anotherRSL.sws">
or a pre-compiled SWC file
<mx:Application rsl="MyRSL.swc">


Remote Object allows Remoting in Flex, thus allowing us to call methods on Java Objects that is on a Java Application Server, e.g. JRun, where Flex is running. RemoteObject thus allows us to access JavaBeans including Plain Old Java Objects which are in the web application classpath. The bottomline is, <mx:RemoteObject> uses AMF, the encoding used Flash Remoting and as we all know, AMF is way faster and native to the Flash Player than other methods of communication like Web-Services, SOAP.

History Manager is another cool feature that have been pending in Flash for eons and when implemented, we still wished that it to be more better. History Manager allows the back and forward browser buttons to go back or forward to its previous/next states and this works beautifully across most modern standard browsers.

Bookmarks for Flex on Macromedia

Flex related Blogs

Footnotes

  1. Remember to visit Rich Internet Apps for useful Flex related resources and articles.
  2. Flex Builder is an easy to use tool to assist in developing Flex Applications.
  3. POJO or Plain Old Java Object is a normal Java Object that is not a JavaBean, an EntityBean, a SessionBean, etc., and does not serve any other special role or implement any special interfaces of any of the Java frameworks (EJB, JDBC, DAO, JDO, etc…).
  1. am aware of flash builder  n  ..but now my task related to flex builder 1.5 , can any one suggest me to execute a sample application, how can i see the out put in it as am getting some kind of server error for simple hello world application

Comments are closed.