First time here? First time here? Newsletter Signup Newsletter
Search tutorials
Author: V. Ramraj

The Logic

Before you can even know the logic, you must understand a few points:

  1. Flash 5 has practically no capability to do anything in 3d space.
  2. Flash cannot also draw any lines or objects at runtime.
  3. Complex 3d objects can cause it to become a nightmare in slow machines(like mine, a PII 350).

Now that you have understood these facts, you can go and design a logic:

  1. You need to first specify the number of vertices an object is made up of, what points are connected and where they are located in 3 dimensional space.
  2. You need to then rotate the object virtually, i.e., you must rotate an object that does not even exist. You can do this using trignometrical formulae(No, they are the easiest part of the apple).
  3. Since Flash does not draw 3d, you must convert the 3D Points (with 3 co-ordinates x,y,z) to 2D Points(with 2 co-ordinates x & y). You can do this too by using simple formulae.(Now don't think that life's easy)
  4. Then you must draw lines or circles connecting the 2D vertices got from the previous step. You can do this by using a small movieclip with a 45 degree line and then duplicating it and positioning it.
  5. Then you must rotate this object every time the mouse moves.

We will do all the above one by one in the following steps.

» Level Advanced

Added: 2002-07-05
Rating: 8.99 Votes: 1242
» Author
Age: 14 Profession: High School Student Location: Chennai, India(Not Indiana). Just doing it for fun. Ready to do small Freelance jobs.
» Download
Download the files used in this tutorial.
» Forums
More help? Search our boards for quick answers!
Featured Flash FLA
» Author: Inocreato
» Title: RaiseTheBlocks
» Description: Raise all the blocks to win the game
Featured Sound Loops
Image for equalize

Audio Player

» Author: TomCat Carty
» Title: The Wood
» Description: Just a little game ending or it can maybe be looped. Recorders with music box and percussion to give the feel of well, I don't know, the woods? Free to use, just credit me. thank you
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: Davisigner
» Description: Hmm... what to say about this one? It's reminiscent of the closing notes of the opening music from the Three Stooges done in a church organ style with a closing cymbal crash. I'll give this one away gratis, but feel free to check out my free loops and potential upcoming license-mandated ones over in the respective part of Flashkit.