libraries:

full
mvc
assets
storing
distributing
processing
conditions
caching
recycling
stating
responding
interpreting
base
monitor

examples:

tic tac toe

description

The mvc library combines most of the codeboxes libraries into one big framework. Some of the other libs were exclusively created to be used here. As you can see, the name of it does not end in 'ing', which means this lib is something special! On one hand its application is very simple, but on the other hand its theory is very complex due to its so many included features. So complex, that I created an extra example project for this library:
The tic tac toe example

In the mvc lib you have:

  • Mediator to manage your views
  • Proxy to store your data
  • Command, Operator and Controller to organize your business logic
As you can see, there are three classes in the control section. And that has its reasons. All of them can manage mediators and proxies, but the Command is global. That means that all mvc elements that are added by commands are available for all other global elements. The operators and controllers are not global. Here we speak of them as "part of a box". Every Operator is the owner of a box. You can add mediators, proxies and controllers to that box (via the Operator and the controllers), but not another Operator. All mvc elements of a box are only available inside of that box and they have no access to global elements. The benefits of a box are:
  • all mvc elements have a unique name, but for elements of a box the name must only be unique inside of that box, which means you can have more than one instance of a box
  • you can set a state for a box and you can specify states for the mediators, proxies and controllers of a box, so these elements are only active, if the box has that specific state
  • you can share data between the proxies of a box
  • if you remove an Operator, all mvc elements (Proxy, Mediator, Controller) of its box will be automatically removed, too
If you want to communicate to other elements of your project, you can use the Distributor from the distributing library of the codeboxes framework. It is available as distributor reference in the control classes.

download

version 1.2 | released on Mar 9th 2016 | documentation

changes:
Used storing version 1.2 and added conditions version 1.0 so stored data can now removed automatically, determined by conditions.

version 1.1 | released on Jan 5th 2016 | documentation

changes:
Used updated part libraries of the codeboxes framework with new features:
a) Generate classes at runtime with the help of the as3commons libraries listed in the dependencies.
b) Updated trace statements.

version 1.0 | released on Aug 29th 2015 | documentation

author

Stefan Dubsky - stefan[at]codeboxes.com

navigate:

description
download
author

open:

tic tac toe example