Using RSL cache in Flex Builder

Submitted by Falken on

One of the reasons I love Builder (apart from CTRL-O and CTRL-SHIFT-R) is that I've actually managed to make the new RSL cache feature of Flash Player work, when previously I'd failed totally to do it using the free command line SDK compiler.

Taking the instructions from Adobe's RSL cache wiki entry, it was a simple matter to go through and set the Framework, RPC and DataVisualization libraries to be RSL .swz and .swf files.

Here's the screen shots, before

-rw-r--r-- 1 chivertont users 1.1M 2007-12-05 11:54 index.swf

and after

-rw-r--r-- 1 chivertont users 190K 2007-12-05 11:58 index.swf

Cool, eh ? I've saved a megabyte off the size of the download ! If I was to do run time loading of images and style sheets (like HTML does) it would be even smaller again.

The only gotcha is having to move the Framework up before the RPC and Data. Vis. libraries in the dialogue, otherwise you get class not found errors at run time. 

Sections