Wednesday, November 12, 2008

this._name & myShow.push(this._name)

ACTIONSCIPT:
this._name
// the _name property: gets the name of this, whatever this is.

myShow.push(this._name)
// pushes what's inside the brackets into the array myShow

// FOR EXAMPLE:
// MOVIE CLIP INSTANCE SCRIPT
on (press) {
_root.remote.what = this._name;
/* gets the name of this Movie Clip instance
that is on the Stage, and places the name
in the variable/text field: _root.remote.what

_root.remote.myShow.push(this._name);
/* Pushes the name of this into an array named myShow
located within the Movie Clip _root.remote
}

No comments: