|
||||||
|
||||||
Flash
- Sliding Menus
Moving an Object on Roll
Over using ActionScript
Free
Flash Tutorial
Step Seven: Placing a Button on Stage
The last thing is to place a button on Stage and set the ActionScript so that the Movie Clip moves when you roll over or click the button. You will either need to either create a new button and place it on Stage or drag a button out of the common button library. Either:
My Button:
on (rollOver) {
yTargetMC = 200;
}Note: The target number must be different to the number in frame 1 otherwise the Movie Clip will not move. Change the target number to a number that suits the position that you want the Movie Clip to stop at.
As an alternative make the Movie Clip move on (release) like this:
on (release) {
yTargetMC = 200;
}
I created one more button:
on (release) {
yTargetMC = -600;
}
|
Why not try out webwasp's new community. Meet new people, find friends in your area: Webwasp Mates & Dates
•
36872 visitors to this page since
6 June 07 •
|
|
|
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.
|