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.
- Flex, Getting Started
- Flex Installation
- Essentials for Developing Flex Applications
- Flex Documentation
- Flex Trial
- Flex Doc (zipped), for Flash Resouce Manager
- Flex ActionScript & MXML Reference
Flex related Blogs
- Christophe Coenraets
- Eric Anderson
- Everything Flex
- Flex Authority
- Flex Daddy
- Kevin Hoyt
- Manish Jethani
- Matt Chotin
- Matt Woodward
- Merhl Interactive
- MF Worx
- Peter Ent
- Remember to visit Rich Internet Apps for useful Flex related resources and articles.
- Flex Builder is an easy to use tool to assist in developing Flex Applications.
- 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…).