On 2/18/06, Roger Gonzalez <
[EMAIL PROTECTED]> wrote:
Yes, although its painful, and requires some fairly complex AS code that
requires deep knowledge of how Flash runs a SWF. I'm working on some
code to post to Labs that will make it much easier, stay tuned!
(Quick summary: Flash 8.5 SWFs have a "root" class that corresponds to
the entire "movie". In a normal MXML application, this is a subclass of
SystemManager. In order to start code execution before the entire
application is downloaded, we partition the application into multiple
"frames", where the first frame contains SystemManager and the preloader
and download progress bar. It then watches the rest of the application
stream in, and hands off control to what you think of as your
application class once its ready. By implementing a different root
class other than SystemManager, its possible to create other sorts of
SWFs that aren't quite full-fledged applications... I call them
"modules". Mix in the "externs"/"external-library-path"/"load-externs"
functionality, and you can build some code that expects the main app to
provide services. Then, use loaders (read up on ApplicationDomain) to
pull these "module" SWFs on demand. Ok, so that wasn't so quick.)
-rg
--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
SPONSORED LINKS
| Web site design development | Computer software development | Software design and development |
| Macromedia flex | Software development best practice |
YAHOO! GROUPS LINKS
- Visit your group "flexcoders" on the web.
- To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
- Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.

