Fresh Fruit for Rotting Vegetables - deceleration made somewhat easy. - Page 2
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|
Rating: 9 Votes: 87
|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 the files used in this tutorial.|
|Download (8 kb)|
|More help? Search our boards for quick answers!|