nulldesign // lars gerckens » Preloader in AS3 projects (factoryClass)

Preloader in AS3 projects (factoryClass)

The last days I was playing around with the Flex Metadata Tag “Frame” to implement a preloader in an AS3 project. You might have read Keith Peters post concerning this issue. This method is working fine, except of the fact that I can’t get rid of the flex framework classes in my compiled SWF, which blows up the size of an nearly empty SWF to 120kb.

If you check out the comments in his post, you’ll find a few solutions, but none of them worked for me. So I generated a XML exclude File, that excludes the whole flex framework. You might want to give it a try: flex_framework_exclude.xml (compile with the option -load-externs+=flex_framework_exclude.xml). It’s still not satisfying, but it’s working…

20. November 2007 | Posted in Actionscript

3 Comments

  • 1. Erik  |  31. July 2009 at 18:33

    This solution is working for me (your updated blog posting ( http://www.nulldesign.de/2007/11/30/as3-preloading-continued/ ) does not work for me using flex3.3, I am not sure why).

    I am hoping you can explain how you made / found your flex_framework_exclude.xml file? I want to make sure I can generate new ones when flex is updated.

    Thanks much.

  • 2. AS3 Application Preloadin&hellip  |  16. August 2009 at 14:12

    [...] Kollege Lars hat in seinem Beitrag beschrieben, wie man mit dem [Frame] Tag und einer Factory Klasse seine [...]

  • 3. AS3 Application Preloadin&hellip  |  16. August 2009 at 14:48

    [...] colleague Lars described in his article, how to use the [Frame] Tag together with a Factory class in order to [...]

Leave a Comment

Required

Required, hidden

Some HTML allowed:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre lang="" line="" escaped="">

Trackback this post  |  Subscribe to the comments via RSS Feed

About

  • nulldesign is the company and showcase site of freelance developer Lars Gerckens who is based in Hamburg, Germany. I'm available for freelance work with focus on Flex, Flash and AIR development. I like to create dynamic user interfaces, cutting edge web experiences and innovative ways to visualize data.

    This site showcases some of my personal work and projects as well as an selection of commercial projects.

    If you are interested in my work or you have any questions, don't hesitate to drop me a line:

  • Profiles: Xing | Linkedin
  • Mail: lars [at] nulldesign [dot] de

Categories

Search