"The class MovieClip is the template for all the ActionScript properties and methods that are part of a movie clip object. It contains properties such as _x, _y, _xscale, _alpha, _currentframe, and so on, and methods like gotoAndPlay, attachMovie, lineTo, and so on.If you write a class that extends MovieClip, it will automatically inherit all the properties and methods inherent to a movie clip. Then you can add specific behaviors or properties that apply only to the type of object you are creating. For example, say you wanted to make a spaceship object for a game. You might want it to contain some graphics, have a position on the screen, move around, rotate, change its appearance over time, contain some sounds, listen for enterFrame events for animation, and listen for keyboard and mouse events for interaction. These are all things that movie clips can do, so it makes sense to extend MovieClip."

No comments:
Post a Comment