The system.models
library provides a simple MVC implementation with a collection of Model
classes to manage your applications.
Example
var beforeChanged = function( value , model ) { trace( "before:" + value + " current:" + model.current ) ; } var changed = function( value , model ) { trace( "change:" + value + " current:" + model.current ) ; } var cleared = function( model ) { trace( "clear current:" + model.current ) ; } var model = new ChangeModel() ; model.beforeChanged.connect( beforeChanged ) ; model.changed.connect( changed ) ; model.cleared.connect( cleared ) ; model.current = "hello" ; model.current = "world" ; model.current = null ;