First time here? First time here? Newsletter Signup Newsletter
Search tutorials
Author: jay w. friedman

part two - sowing the seeds:

the first step here is to set up the document properties (movie properties if you're not using MX yet.) for the purpose of this tutorial, set your dimensions to 600 by 200. choose a background color that you like, and set the fps to at least 30.

next up is creating our assets. all we really need are two movie clips - our moving object and a movie clip that will be our "button" (i'm going to use a movie clip instead of a button, more on this later...)

for the moving object, create a simple image. make sure you can tell if it is rotating (that means no solid circles, duh), and convert it to a symbol (f8). make sure to choose "movie clip" for behaviour.

for our button object, just draw a box and hit f8 to convert it to a symbol. like the moving object, choose "movie clip" for its behavior. "but WAIT," you're probably thinking, "this is a button! why shouldn't its behavior be set as button?" two reasons - buttons bring up that annoying finger cursor that makes me want to murder people, and... well... that's really it. but it can't hurt to learn how to turn a movie clip into a button anyways.

position the button wherever on the screen you like, and drag your moving object off the viewable area of the screen. give the moving object an instance name of "ball." you can put these two movie clips on their own layers if you're so inclined, but it's not particularly necessary.

whew. tough work, but we're done. now here comes the rough stuff. code.

» Level Intermediate

Added: 2002-06-24
Rating: 9 Votes: 87
(10 being the highest)
» Author
just some kid from florida who loves interactivity. i teach director labs and work with flash in my spare time, when i'm not rocking out in some foreign land. air guitar champion of the world.
» 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.