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: 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: work2survive
» Title: Girl Walking 1kb
» Description: Walking girl, animation just takes 1kb, using high heels shoes, and fashion model attitude.
Featured Sound Loops
Image for equalize

Audio Player

» Author: BoxCat
» Title: CPU Talk
» Description: From the cyberpunk RPG, "Nameless: the Hackers" Completely Free to use! Keywords: edm hip hop rap electronic mysterious mission hacking chase exciting spy ios ambient chilling love happy sad angry suspense
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: nathan
» Description:

A recorded sound of the Dimensional Fork Gate.