MovieClipUtil
| Kind of class: | class |
|---|---|
| Inherits from: | none |
| Version: | 10/29/06 |
| Author: | Aaron Clinger |
| Classpath: | org.casaframework.util.MovieClipUtil |
| File last modified: | Monday, 08 January 2007, 09:57:51 |
Summary
Class methods
Class methods
attachMovieRegisterClass
static function attachMovieRegisterClass (
attachLocation:Object,
id:String,
movieClipName:String,
depth:Number,
classPath:Function,
initObject:Object) : MovieClip
Allows a multiple classes to use a single MovieClip in the library. It also makes it easier to change or assign class' to MovieClip without having to change the settings in the IDE environment.
Parameters:
attachLocation:
Scope/location to where the MovieClip should be placed.
id :
The linkage name of the MovieClip in the library.
movieClipName :
A unique instance name for the MovieClip.
depth :
The depth level where the MovieClip is placed.
classPath :
Path to the class you want to link to the MovieClip instance.
initObject :
[optional] An object that contains properties with which to populate the newly attached MovieClip.
Returns:
A reference to the newly created MovieClip instance.
Example:
var myMc:MovieClip = MovieClipUtil.attachMovieRegisterClass(this, "libraryIdentifier", "myMovieClip_mc", this.getNextHighestDepth(), com.package.ClassName, {_x:15, _alpha:70});
createEmptyMovieClip
static function createEmptyMovieClip (
attachLocation:Object,
movieClipName:String,
depth:Number,
initObject:Object) : MovieClip
Creates the ability to pass an object that contains properties with which to properties the newly created MovieClip. Mimics the ability of
attachMovie.Parameters:
attachLocation:
Scope/location to where the MovieClip should be placed.
movieClipName :
A unique instance name for the MovieClip.
depth :
The depth level where the MovieClip is placed.
initObject :
[optional] An object that contains properties with which to populate the newly created MovieClip.
Returns:
A reference to the newly created MovieClip instance.
Example:
var myMc:MovieClip = MovieClipUtil.createEmptyMovieClip(this, "myMovieClip_mc", this.getNextHighestDepth(), {_x:15, _alpha:70});