First time here? First time here? Newsletter Signup Newsletter
Search tutorials
Author: Knoj | Website: http://www.righthanddesign.com

More Actionscripting

Place a keyframe on the 6th frame of the actions layer.

Double click on the 6th frame of the actions layer. This will bring up the Frame Properties Box. Under the actions tab, you will need to enter the folowing actionscript:

Set Variable: "starttime" = GetTimer

Place a keyframe on the 25th frame of actions.

Double click on the 25th frame, and add the folowing actions:

Set Variable: "eltime" = GetTimer - starttime
If (eltime < 2500)
    Get URL ("fast.html")
    Get URL ("slow.html")
End If

You will want to substitute "fast.html" for the page you will want to send the user to if their computer is fast enough. You will also want to substitute "slow.html" for the page you will want to send the user to if their computer is too slow for all of your animations. I have substituted each for a text field that displays either "Too Slow!", or "Fast enough." You may also want to change the number "2500" up or down depending on your animation. Try out many diffrent numbers, and see what the results are on your computer. The smaller the number, the faster the computer will have to be, the bigger the number, the slower the computer can be.

This tutorial shows a result of "Too slow!" on a 100 Mhz computer, but gives a result of "Fast enough" on a 233 Mhz.

» Level Advanced

Added: 2000-12-25
Rating: 7 Votes: 106
(10 being the highest)
» Author
I am called "Knoj" (that's spoken as "Noj"), but my official title is "Jon Reneberg". I am a 19 year old college student in Peru Nebraska.
» Download
Download the files used in this tutorial.
» Forums
More help? Search our boards for quick answers!


  • 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.