
This is the Title of the Book, eMatter Edition
Copyright © 2007 O’Reilly & Associates, Inc. All rights reserved.
Onward!
|
245
Onward!
With statements, operators, functions, and now events and event handlers under our
belt, we’ve covered how all of the internal tools of ActionScript work. To round out
your understanding of the language, in the next three chapters we’ll explore three
extremely important datatypes: arrays, objects, and movie clips.
// Restore the clip to its original size when it is released
optionButton_mc.onRelease = function ( ) {
this._xscale = this._yscale = 100;
}
Example 10-4. A movie clip button from scratch (continued)