Using Runtime Shared Libraries
With Macromedia Flex 1.5 you can build runtime shared
libraries (RSLs) that can be individually loaded, cached, and used
by multiple applications. This article demonstrates how easily you
can integrate RSLs into your Flex applications. It also addresses
the performance tradeoffs that you must consider when building dynamically
linked applications.
Requirements
To complete this tutorial you will need to install the following software
and files:
Macromedia Flex
Macromedia Flash Player
Tutorials and sample files:
- rsl_examples.zip (ZIP,
4K)
- The examples assume that you have enabled the
<keep-generated-swfs> and <compile-report> options
in your Flex configuration file
Prerequisite knowledge:
- Familiarity with ActionScript and MXML (the Macromedia Flex Markup
Language).
- Because this article explores issues related to
caching performance, you need to understand how to clear your browser
cache. On Windows in Microsoft Internet Explorer, select Tools > Internet
Options > Delete
Files. This is sometimes insufficient, and it may be necessary to
close all browser windows as well, including other Flash-enabled
applications such as certain instant messenger clients. Even if you
do not use Internet Explorer for the examples in this article, you
must flush the Internet Explorer browser cache, because the Windows
version of Flash Player uses the WinInet layer for loading RSLs.
About the author
Roger Gonzalez is a Principal Engineer on the Flex compiler team. Prior to Macromedia,
Roger has done everything from working on autonomous underwater robots to running
the engineering group at a 3D game development studio.
Roger is an avid motorcyclist, and recently relocated to California in order
to pursue year-round riding.