Pass parameters to movieclip subclasses

Being a motion graphic designer, I need flexibility in control of the movieclip classes. Subclasses of movieclips are often instantiated by coding using “attachMovie()”, thus makes it cumbersome to control and change the their positions.

One solution, if you want manipulate subclasses as visually as you can to movieclips, you can make them components and thus would be able to feed initializing parameters statically.
In a simple scenario, I just use place holder ghost movieclips solely for the purpose of positioning and then attach subclass dynamically. Like this:

var title = “2000”;
var bodyTxt = “To cancel a mask created with ActionScript, pass the value null to the setMask() method. The following code cancels the mask without affecting the mask layer in the timeline.”;
var expTxt_mc = _root.attachMovie(“expTxt_mc”, “expTxt_mc1”, this.getNextHighestDepth(), {
title: title,
bodyTxt: bodyTxt


Leave a Reply

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

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

Twitter picture

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

Facebook photo

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

Google+ photo

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

Connecting to %s

%d bloggers like this: