|
||||||
|
||||||
Flash
- Sliding Menus
Moving an Object on Roll
Over using ActionScript
Free Flash Tutorial
This is the technique used to roll my menus on and off stage on the webwasp home page!
The aim of the tutorial is to learn how to create a menu or other object that slides on and off stage.
There a two reasons why you would use ActionScript to move an object. The first is that ActionScript is smaller than animation and the second is that you can move the object from any place to any other place irrespective of it's starting position. This makes the movement more versatile. In an animation movement must be linear, that is it must follow a pre-defined path. It will go from A to B to C. With ActionScript the object will go any order: A to B or A to C. You may have as many stop position as you want and the flash movie will not get any bigger as it is only a few lines of script.
My Example: Download the Flash file Int 101a
In
this example I have used four positions for the movie clip:
The start position: This is off stage to the bottom.
The position the movie clip moves to when the movie first starts (click refresh to see this).
The position for button one: Scroll up.
The position for button two: Scroll down.
You could have as many objects sliding in and out as you wish. These sliding objects may contain any flash object such as a graphic, a button, an input text frame, an animation or anything else. The only condition is that the object must be embedded in a movie clip symbol. So if you make a button, that button must be placed inside a movie clip then placed on the stage.
|
Why not try out webwasp's new community. Meet new people, find friends in your area: Webwasp Mates & Dates
•
126156 visitors to this page since Jan 04 |
|
|
All material on this site is protected under international copyright © law. DO NOT reproduce any material from this site without written permission. Please ask as permission is often granted.
|