Networking, Programming and Graphics Tutorials

How to make flash movie [2/2]

Step Three
In the Action Panel (Window>Actions or F9), choose 'Expert Mode' and type the code below.

How to make flash movie
Step Four
Now click Control>Test Movie (Ctrl+Enter) and you will see the circle/rectangle you've made is moving as it wish.
Now it's your turn to make some changes to the Action Script and see how does the animation looks like. In that way, you will
know and learn more about the action script.

onClipEvent (load) 
{ xdirection=random(20)-10;
 ydirection=random(20)-10; 
}
 onClipEvent (enterFrame) 
{ if(this._x>=630){ 
this._x=0; 

else if(this._x<=0){ 
this._x=630; 

else if(this._y>480) { 
this._y=0; 

else if(this._y<=0) { 
this._y=480; 

this._x=this._x+xdirevtion; 
this._y=this._y+ydirection; 
}
Rate this tutorial:                    
Networking, Programming and Graphics Tutorials - How to make flash movie [2/2] - Networking, Programming and Graphics Tutorials

Need a specific tutorial? Do not hesitate and submit a request!
Related Tags: how to make a movie in flash  how to make a movie clip in flash mx  how to make a movie clip using flash  how make a flash movie using photoshop  How to make within the flash movie to open a pdf file  scale flash movie  flash movie 100% no scale  making movie scale flash  flash scale movie in web page  how to make swf movie