First time here? First time here? Newsletter Signup Newsletter
651326 Members and growing! | Flash Jobs
Search tutorials
Author: k-giannis | Website: http://users.hol.gr/~kgiannis

For our normal movement we declare that the fastmove variable equals 1 and our mc will play from the "normal" frame.

on (release) {
    fastmove = 1;
    gotoAndPlay ("normal");
}


For the backward the fastmove is 1 and the mc plays from the "reverse" frame.

on (release) {
    fastmove = 1;
    gotoAndPlay ("reverse");
}

For stop the mc stops to "stop" frame.

on (release) {
    gotoAndStop ("stop");
}

The next 2 buttons are used to increase and decrease the speed variable.

on (release) {
    if (speed>100) {
        speed = speed-100;
    }
}

The if statement is used so the speed variable will always be above 0.

on (release) {
    speed = speed+100;
}
When speed variable increases the speed of our movie decreases.

The double forward and backward button give fastmove variable a value of 5 and move the mc to "normal" and "reverse" frames.

on (release) {
    fastmove = 5;
    gotoAndPlay ("normal");
}

And:

on (release) {
    fastmove = 5;
    gotoAndPlay ("reverse");
}

And with that we have finished with the inside of our control mc. It's time to put it in our stage.

» Level Intermediate

Added: 2001-12-19
Rating: 8.99 Votes: 164
(10 being the highest)
» Author
No details available.
» Download
Download the files used in this tutorial.
» Forums
More help? Search our boards for quick answers!

Comments

  • There are no comments yet. Be the first to comment!

  • You must have javascript enabled in order to post comments.

Leave a Comment
  • Your email address will not be published. All fields are required.
Featured Flash FLA
» Author: Christopher E Vance
» Title: Aqua Live
» Description:

A vector based mermaid.

Featured Sound Loops
Image for equalize

Audio Player

» Author: Peter
» Title: Action
» Description: Funk Action Groove loop. let me know if you manage to find a use for it, would love to see it. Thanks
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: SoundScalpel
» Description: Cartoon stretching/expanding sound made from rubbing an inflated balloon.