Dynamic Flash

Confessions of a serial code abuser
  • rss
  • Home
  • MTASC
  • Archives
  • About me
  • Goodies
    • Base64 encoder/decoder class
  • My Bookshelf
  • My Talks

Generate intrinsic ActionScript 2.0 classes with asigen

Sunday, 12 March 2006

At Featurecreep HQ we’re working hard on the next release of our Content Management System. Part of the new architecture was the ability to load in custom screens as and when necessary instead of compiling them all into the main SWF file.

These external screen SWFs needed to be compiled against all of the core SiteManager classes that are loaded as part of the main SWF, but without actually having these classes compiled into each external SWF. Since we’re using MTASC we had a couple of options, but the most promising was to use intrinsic versions of the core classes.

Given the number of core classes in our system we decided that creating these classes manually was going to be too much of a headache; any change to the core classes would have to also be reflected in the intrinsic versions also lest they fall out of sync. We needed to find a way to automatically generate the intrinsic classes directly from the source files.

A while ago I started an osflash project called asigen for exactly this purpose. Unfortunately nobody showed any interest in the tool (probably because I didn’t shout about it too much) and because I didn’t have a specific need for it at the time development stalled once I got the main ActionScript 2.0 code parsing module written.

I’ve recently picked up development again and I’m proud to say that asigen is now approaching beta quality. We’ve been using this tool at work for a while now and I’d like to start working towards a full 1.0 release, so I thought it was about time to get some help with testing (that’s where you come in ;o). If you have a need for a tool like this, please download asigen, give it a spin and let me know how it works out. Or not, as the case may be.

Find out more information on asigen, including links to the latest nightly builds and usage instructions, on the asigen page on osflash.

Categories
General
Comments rss
Comments rss
Trackback
Trackback

« MTASC 1.12 OS X and Linux Flash 8 Xtra for Director MX 2004 »

2 responses

The FlashDevelop IDE comes with a similar tool "igen", written

Robert Penner | Wednesday, 15 March 2006 | 12:23 am

The FlashDevelop IDE comes with a similar tool “igen”, written by Philippe Elsass.

Thanks for the heads-up Robert - that would probably explain

Steve | Wednesday, 15 March 2006 | 8:29 am

Thanks for the heads-up Robert - that would probably explain the lack of interest in asigen. I remember Philippe contacting me a while back about using/adapting asigen’s actionscript parsing module for use in FlashDevelop but I wasn’t in a position to continue development at the time.

Leave a comment

You can use these tags : <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

About Dynamic Flash

Steve Webster is a Senior Web Developer for Yahoo! in London, UK.

He is more than a little concerned that he defines himself in terms of his career, and that he talks about himself in the third person.

Find out more

Recent Posts

  • FotB ‘08 Schedule: iCal feeds
  • Read and write local files with Flash Player 10
  • The problem with SproutCore
  • Yahoo! London seeks Junior Developers
  • I am Singularity

Tags

Accessibility ActionScript actionscript3 actionscript 3.0 air apple astro book calendar conference designer filereference file upload Flash flex fotb08 framework ical internet internet explorer JavaScript jobs junior microsoft opportunities ria schedule singularity08 skin tutorial urlrequest web developer web development Web Standards Yahoo!

del.icio.us-ed

Stuff

Singularity?
Flex.org - The Directory for Flex
rss Comments rss valid xhtml 1.1 design by jide powered by Wordpress get firefox