01.16
Base aims to aid Flash/ Flex application architecture using a simple thought process. Instead of writing another Yet Another Framework, Base makes use of Actionscript’s powerful Event framework to create agile and maintainable code. The Base package contains utilities to help with common problems such as parsing XML, Remoting, Caching etc.
Overview
Document Views
A document view contains both the interface elements such as buttons and animations, as well as the logic to process and respond to user interaction. Document views listen to events from models and respond appropriately.
* Document Views have knowledge of Models
The Controller
The controller, unlike most frameworks, is not attached to a particular view. It is the very first object in the display list and listens for events from a list of IEventDispatchers. When it catches an event, it looks for a command that has been mapped to it.
* The Controller has knowledge of Commands and Models
Commands
A Command may retrieve and interact with models or execute other Commands. Commands are often used to orchestrate complex application activities.
* Commands have knowledge of other Commands and Models
Models
A model stores data that is used by the rest of the application and has no knowledge of any other element in the application, it communicates with interested objects by dispatching events.
* Models do not have knowledge of any other elements
Live Demo:
- The demo application will be provided soon.
License
Base is licensed under the MIT License
Download
Base is still in development, you can access the source from the SVN repository.
SVN
http://svn.tobydehavilland.com/base/trunk
Bugs / Improvements
Please email: tobydeh [-at-] gmail.com
