First time here? First time here? Newsletter Signup Newsletter
Login | Register | 651326 Members and growing!
Search tutorials
Author: Aditya Sharma aka adit_ya_sharma | Website:

Circle Example

For explaining classes let's take a simple example of moving a circle to the right when the Right Arrow key is pressed. First task is to make a simple .fla document and a movieclip:- 1)Open your main flash program (which Iam hoping by now should be flash mx 2004 or higher) and create a new flash document(.fla). 2)Create a simple circle with the circle drawing tool and select the circle. 3)After selection, press F8 and select Movieclip and press ok to make it a MovieClip. 4)Look for the movie library, if it's not open then press Ctrl+L to open it. 5)Right click your circle MC(MovieClip) and then click on the 'Export for actionscript' radio button. 6)In the AS 2.0 class and in the instance name fields, write 'Circle' (without quotes, duh). 7)Select its properties and give it an instance name "circle_mc" (again, without the quotes). 8)Save your document for now, we will come back to it later.
Note: Be sure that of the case that you use in the MC instance, class name and file name, correctly. Here Iam using 'Circle' with an uppercase 'C' in the beginning.
Next we will take a look at the .as file creation and creation of the 'class' inside it...
» Level Intermediate

Added: 2005-10-12
Rating: 7 Votes: 9
(10 being the highest)
» Author
Iam a flash actionscript programmer.
» Download
Download the files used in this tutorial.
» Forums
More help? Search our boards for quick answers!


  • There are no comments yet. Be the first to comment!

  • You must have javascript enabled in order to post comments.

Leave a Comment
  • Your email address will not be published. All fields are required.
Featured Flash FLA
» Author: work2survive
» Title: Girl Walking 1kb
» Description: Walking girl, animation just takes 1kb, using high heels shoes, and fashion model attitude.
Featured Sound Loops
Image for equalize

Audio Player

» Author: BoxCat
» Title: CPU Talk
» Description: From the cyberpunk RPG, "Nameless: the Hackers" Completely Free to use! Keywords: edm hip hop rap electronic mysterious mission hacking chase exciting spy ios ambient chilling love happy sad angry suspense
Latest Font
» Author: Fábio FAFERS
» Description: I created this font for free use. Everyone can apply it in personal or business texts. Its free, but I want to be communicated in case of business use. Donations are accepted to keep the project of free fonts alive! Thank you all
Featured Sound Fx
Image for equalize

Audio Player

» Author: nathan
» Description:

A recorded sound of the Dimensional Fork Gate.