jump to navigation

MovieClipCommander

MovieClipCommander Framework is a system of classes for quick and easy management and handling of events and extensions for MovieClips.

The MovieClipCommander (MCC) keeps reference to a designated MovieClip along a corresponding hierarchy structure. Thus making it able to be extended, without actually extend the MovieClip class.

The Framework allows:

3 Tier based Framework:

First layer: The “Wrapper”.

This class constitutes the main core of the Framework.
MovieClipWrapper keeps the reference to the designated MovieClip and its corresponding hierarchy structure.

Second layer: The Events Management.

public function handleEvent(evt:Object) {

}

As the name implies, this class is responsible for central and organized registration and management of events.
MovieClipEvents keeps delegates and allows a more robust managing and dispatching of events.

Third layer: The Application Layer:

This layer is the interface that binds it all to a Framework.
Its compound of two parts; The Commander and the Service:

var MCC:MovieClipCommander = new MovieClipCommander(mc);
MCC.registerExtention(“ease”, Ease);
MCC.addEventListener(“easeDone”, this);
MCC.addClipEvent(“onEnterFrame”, this);

Using the MovieClipCommander it is possible to manage behaviors of MovieClips as easy as managing extensions.

class iap.commander.extentions.*** extends MovieClipService{

}

Every behavior registered to an MCC is a service.
MovieClipService is an implementation of the Service interface.
To create an extension that expands the MovieClip’s abilities, the MovieClipService needs to be extended.

Comments»

No comments yet — be the first.

Leave a Reply

Fill in your details below or click an icon to log in:

Gravatar
WordPress.com Logo

Please log in to WordPress.com to post a comment to your blog.

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.