ActionScript 3.0 Game Programming 01: Circle Class

Loading...

Sign in or sign up now!
Alert icon
Upgrade to the latest Flash Player for improved playback performance. Upgrade now or more info.
1,857
Loading...
Alert icon
Sign in or sign up now!
Alert icon

Uploaded by on May 14, 2011

This video is the first in a new series on game programming techniques in ActionScript 3.0.

A Circle class is created and instantiated that draws a circle on the stage, ready for adding keyboard interactivity.

Category:

Education

Tags:

License:

Standard YouTube License

  • likes, 0 dislikes

Link to this comment:

Share to:

Uploader Comments (da1bu89)

  • 5000: The class 'Main' must subclass 'flash.display.MovieClip' since it is linked to a library symbol of that type.

    Can you explain me what i could have done wrong? nearly did exactly the same except for the comments?

  • @Heckrothing Have you extended the class from the Sprite or MovieClip class on the line... public class Circle extends Sprite... That what's seems to be the problem. If not go through the code again slowly and it should work.

  • can you do this in cs3?

  • @TandHshows101 Yes you can.

  • @da1bu89 i can't seem to find the create new class button... but i think you can you just create a new actionscript and type in package { ...... etc

  • @TandHshows101 That's correct - I'm not sure if Flash CS3 has the Project panel. If it hasn't just create a new ActionScript 3.0 file from the File menu and save it in the same folder as the FLA. Then simply copy the code from this video and everything will be identical.

see all

All Comments (13)

Sign In or Sign Up now to post a comment!
  • good video. ive followed the vid but when i go to test movie at end it just comes up as blank screen with no circle?? ive checked the code and cant see any errors in it

  • At last, a decent actionscript programming tutorial, not just the usual "let's draw something and hack some code together that looks cool" shit. Thanks mate!

  • @da1bu89 thanks.... that works fine.

  • Thanks for the excellent tutorial. BTW, I love your accent.

Loading...

Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more