Flash CS5, MovieClip Control with ActionScript Tutorial

preview_player
Показать описание

In this tutorial I show you hot to stop and play separate MovieClips using .stop() and .play(). With two names Buttons, I also demonstrate how to add Event Listener code (using addEventListener) to make the buttons 'listen out' for particular mouse events on themselves. I'm using MouseEvent.CLICK in this example but other mouse events include DOUBLE_CLICK, MOUSE_WHEEL and MOUSE_DOWN. To make all this clicking stuff work, we need to construct functions for each event.

Within each function, the curly braces, { }, allow you to add as many lines of code as you want. Here I'm using the gotoAndPlay() command to tell each MovieClip's Playhead to start at a particular frame.

All the content in these tutorial sessions are similar to CS3 through to CS5.0 and use ActionScript 3 (AS3). Enjoy and feel free to Like my videos and Subscribe to my Channel
Рекомендации по теме
Комментарии
Автор

The way you phrase things, like 'this symbol is listening for an event to happen' makes it easier to understand. Thanks. This was very helpful.

cybermollusk
Автор

Explained quite a bit of the basics :)
Thanks

hawx
Автор

I am new to action script and using CS5.5 flash . You are using static objects in movie clip. How I can control a moving object in a movie clip on main time line ? In that case I have to convert an object in the movie clip, again in the movie clip to produce motion.

TMohan
visit shbcf.ru