Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3851794
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T17:13:03+00:00 2026-05-19T17:13:03+00:00

Basically I need the image of fast changing numbers. I am planning on having

  • 0

Basically I need the “image” of fast changing numbers. I am planning on having a series of these in a line, sort of like the matrix (how the numbers change repeatedly). I want them to basically generate the numbers 0-9 over and over pretty fast (sort of like milliseconds on a stopwatch), until I have them fade out.

I am fairly new to flash, so if you guys could help me out with a code I would greatly appreciate it!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-19T17:13:04+00:00Added an answer on May 19, 2026 at 5:13 pm

    As stated to get a random number between 0 and 9, Math.random is the way to go:

    var n:int = Math.floor(Math.Random()*10);
    

    But to address your second question, of how to get it so it does this every millisecond

    import flash.utils.setInterval;
    import flash.utils.clearInterval;
    
    //variable for the intervalID, 
    //and the variable that will be assigned the random number
    var rnGenIID:uint, rn:int;
    
    //function to update the rn variable 
    //to the newly generated random number
    function updateRN():void{
        rn = random0to9();
        //as suggested, you could just use:
        //rn = int(Math.random()*10);
        //but I figured you might find having it as a function kind of useful, 
        //...
        //the trace is here to show you the newly updated variable
        trace(rn);
    }
    function random0to9 ():int{
        //in AS3, when you type a function as an int or a uint,
        //so instead of using:
        //return Math.floor(Math.random()*10);
        //or
        //return int(Math.random()*10);
        //we use:
        return Math.random()*10;
    }
    
    //doing this assigns rnGenIID a number representing the interval's ID#
    //and it set it up so that the function updateRN will be called every 1 ms
    rnGenIID = setInterval(updateRN,1);
    
    //to clear the interval
    //clearInterval(rnGenIID);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Basically I need one like this: http://yogafasting.org/ First, it displays a partial image and
basically need to change the value that - admin_url() returns any idea?
Basically I need this: http://plugins.jquery.com/project/maphilight ...but instead of just having the <AREA> tags recieve
basically I need an image button, specifically a custom object that: 1) calls a
Ok folks, basically I need to change the value of the input (which is
Example I basically need something close to the following image : Existing Libraries I
I need an image editor for java.Which basically uses a JQuery for client side
I need to create an image badge in Cocoa. Basically I need to take
Possible Duplicate: Image comparison algorithm So basically i need to write a program that
Basically need to generate custom(some different then yes no) messeges(alert) in JS , how

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.