Flex Random Password Generator

Here’s a nice static method for creating random passwords…should the need ever arise 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 public static function generateRandomPassword( length:int = 7 ) : String { //characters to use in password var _salt : String = "abchefghjkmnpqrstuvwxyz0123456789ABCHEFGHJKMNPQRSTUVWXYZ";   //initialize vars var _password : String = ”; var _i:Number = 0;   //loop while ( _i <= length ) { var _num : Number = Math.random() * _salt.length; _password [...]

You Might Also Like...

  • Quick Tip: Get a Random Number Within a Specified Range Using AS3

    1772 readers

  • Exclusive Freebie: Text-To-Speech Utility

    1654 readersFirst of the month (more or less) and therefore time for another Exclusive Freebie! This month ActiveDen author flashanctuary offers up an interesting tool making use of the Google Text-To-Speech API. Check it out after the jump! Using the Unofficial Text-To-Speech Google API Not so long ago, google added a new cool feature to the

  • Create a Password Masking Class in ActionScript 3.0

    2027 readers

  • AS3 Random Star Field Animation

    821 readersThis simple function creates star field animation. You need MovieClip in your library with 'star' class linkage. If stars are not your thing, feel free to try it with any other image you make. code ::import flash.events.Event;import flash.events.MouseEvent;function starField():void {var i:uint = 0; while (i < 30) { var a:star = new star(); a.x =

  • View Demo

    New Year Countdown with AS3

    1525 readers

  • View Demo

    Create a Flower Sprayer with AS3

    1209 readers

  • Quick Tip: The Singleton Pattern

    1661 readersIn this Quick Tip we are going to talk about the Singleton design pattern and how it can help you to optimize your code when you need exactly one instance of a class. Step 1: Introduction As a programmer you must be aware that there are some cases where you want to use an instance

  • Using Enums In AS3

    489 readersUsing the enum strategy can save you some heartache if you want to create type safe applications. Say you have a type characteristic of an object. For example, every time you create a new Person(), you can specify a height like new Person("tall"), new Person("average") or new Person("short"). But how do you ensure that you

  • A Game Spinner Using the Tween Class and Math.random() in AS3 and Flash

    658 readersA simple AS3 how-to in which we show basic methods and properties of the Tween class. We also show how to generate random integers in a given range via the Math.random() method. We construct a simple game spinner as an example.

  • A Game Spinner Using the Tween Class and Math.random() in AS3 and Flash

    1598 readersA simple AS3 how-to in which we show basic methods and properties of the Tween class. We also show how to generate random integers in a given range via the Math.random() method. We construct a simple

Subscribe to RSS headline updates from: GurusUnleashed
Powered by FeedBurner

  • Design & Career Resources

    Open design job and RFQ/RFP listings for Friday, 10 September Courtesy of Design Jobs Live!
    The latest resources and free stuff (like textures, fonts, Photoshop brushes, scripts, plug-ins, and much more!) from workflowFreelance.com. Read more!
    The latest headlines from workflowFreelance.com. Read more!
  • Popular Search Terms

    Curious what others are searching for? Below are the most popular search terms over the last 30 days.