First time here? First time here? Newsletter Signup Newsletter
Login | Register | 651326 Members and growing!
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: 165
(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: 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.