Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. Reg:Flash

Reg:Flash

Scheduled Pinned Locked Moved Web Development
adobetutoriallounge
5 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • P Offline
    P Offline
    princy_cute
    wrote on last edited by
    #1

    how to get random values into global function in flash8

    S H 2 Replies Last reply
    0
    • P princy_cute

      how to get random values into global function in flash8

      S Offline
      S Offline
      steffw
      wrote on last edited by
      #2

      hello maybe this helps: Math.round(Math.random()); Stef

      Stef

      P 1 Reply Last reply
      0
      • P princy_cute

        how to get random values into global function in flash8

        H Offline
        H Offline
        hiral_shah
        wrote on last edited by
        #3

        if you want random numbers more than a single number then you can use: var test:Number; var str:String; str = ''; // Loop for the count of the string that how long you want random number(i.e. 01234 or 98765 etc) for(i = 0; i < 5; i++) { test = random(9); //will reurn random from 0 to 9 str += test.toString(); } trace("Number String = " + str);

        -------------------------------------------------------------------------------------------------- Hiral Shah India If you think that my answer is good enough and can be helpful for other then don't forget to vote. :)

        P 1 Reply Last reply
        0
        • H hiral_shah

          if you want random numbers more than a single number then you can use: var test:Number; var str:String; str = ''; // Loop for the count of the string that how long you want random number(i.e. 01234 or 98765 etc) for(i = 0; i < 5; i++) { test = random(9); //will reurn random from 0 to 9 str += test.toString(); } trace("Number String = " + str);

          -------------------------------------------------------------------------------------------------- Hiral Shah India If you think that my answer is good enough and can be helpful for other then don't forget to vote. :)

          P Offline
          P Offline
          princy_cute
          wrote on last edited by
          #4

          Thank u for ur reply

          1 Reply Last reply
          0
          • S steffw

            hello maybe this helps: Math.round(Math.random()); Stef

            Stef

            P Offline
            P Offline
            princy_cute
            wrote on last edited by
            #5

            Thank u for ur reply

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups