Archive for July, 2006

Type Conversions: Coercion vs. Casting

Monday, July 17th, 2006

Coercion
At run-time the Flash Player will implicitly convert the data type of a value into one that is suitable to be assigned.
For example, if number 5 is assigned to a variable of type Boolean, it will convert the 5 to a value of true and then store true in the variable.
Casting
In your code, you explicitly [...]

Notes: Dealing With Packages in AS3.0

Sunday, July 16th, 2006

In AS2.0, you would structure the class files of a project as one .as file for each class. Each .as file would declare a single class.
// Circle.as
class Circle
{
  public function Circle(){};  // constructor
}
Recall, packages in AS2.0 represented the directories where the source files resided. In AS3.0, this hasn’t changed either. If Circle.as was an ActionScript class file [...]

What I got out of the Cairngorm Microarchitecture

Thursday, July 13th, 2006

Parts 1-3

Model Locator is a facade that components/views can plug into.

As the different views make modifications to the Model Locator object, the Model Locator will notify all those objects who have subscribe to it via Data Binding.
The Data Transfer Object Pattern desires to enforce the same object model among different tiers of an n-tier architecture. [...]