Tuesday, February 27, 2007
Prototype_01
Volley Invader! When the Invader got the bullet, it will bounce back to the upper stage.Try Out download fla file
Wednesday, February 21, 2007
Sunday, February 18, 2007
A MovieClip subclass
I found this from a very good Flash Game reference book: Foundation ActionScript Animation: Making Things Move!
"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."
"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."
Monday, February 12, 2007
This week OOP !!
I can't load and control the Object correctly! That's why I built this.[ download the .fla file ]
Subscribe to:
Posts (Atom)
