|
|
Actionscript movie clip randomly shakeIn this Macromedia Flash tutorial you will learn how to use action script to make a movie clip shake really cool and useful effect, and made with just a few lines of code. 1. Make whatever movie clip you desire to apply this feature to, as you can see from the image below, i choose a text. 2. 3. type in this code. onClipEvent (load) { Let me explain it to you. onClipEvent (load) { this code is activated once when the movie is launched, then to variables is declared and set to the x and y coordinates for the movie clip. onClipEvent (enterFrame) { this code makes the movie clip shake, so it takes the movie clip (called this) and set its _x axis to where it is now + a random number between 5. So now the movie clip can move randomly around within the boundaries of current coordinates *5. Now copy the code into the action script for the shadow movie clip to and you should be done. |




