Skip to content
This repository has been archived by the owner on Feb 6, 2020. It is now read-only.
justsee edited this page Sep 13, 2010 · 38 revisions

A Lightweight, Enjoyable Framework for ActionScript

Dawn is a lightweight framework for ActionScript inspired by Google Guice. In addition to Dependency Injection, it provides type safe notifications and helps you to build apps which are loosely coupled, easily unit tested, and less error-prone.

If you’ve become frustrated with verbose and fragile frameworks, give Dawn a chance and we promise you will have at least 30% more fun!

Dependency Injection?

There’s really nothing to it, promise. While we’re promising, we will say that Dependency Injection (DI) makes it easier to build and test your apps. DI simply means instead of littering your classes with new:

 var bicycle:Bicycle = new Bicycle();

You let Dawn do it for you:

[Inject] public var bicycle:Bicycle;

Metadata (like the [Inject] above) is at the heart of the DI and Notification system in Dawn. Nothing tricky here: Adobe provide many metadata tags for the language, and Google uses the same approach for Guice (though in the Java world they call them annotations).

Right, Lets Get Started!

GettingStarted
DawnBasics

Clone this wiki locally