Archive for the 'MXML/AS3' Category

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. [...]

Free Tools: mxmlc.exe and AS3

Thursday, June 29th, 2006

About two days ago, I was doing some research on getting Edit Plus 2 to fire up mxmlc.exe. I read the docs and in my opinion it was very minimal when it came to do a simple Hello World. What was positive about that experience was that I understand the numerous compiler options and I [...]

Pulling Data From Another Component Into Your Custom Component

Sunday, April 30th, 2006

Tonight, I was faced with the following situation:
Premise:
- One component is tasked to manipulate data.
- Another component which is a custom component needs access to that data
Problem:
How do I get the data into the custom component?
The following can be found in greater detail in Adobe Flex 2 Beta 2 Adobe Document
Creating and Extending Flex [...]