Personal License


  • Perpetual license (does not expire)
  • 1 site, unlimited servers
  • No distribution (hosted use only)
  • Commercial use allowed
$9.99 Read License

14 Day money-back guarantee

Full refund within 14 days of purchase date.

You need to log-in or create an account
  • Create an account
  • Log-in

Please use your real name.

Activation link will be sent to this address.

Minimum 8 characters

Enter your password again

Clicking this button confirms you read and agreed to the terms of use and privacy policy.

ActionScript 3 Tools

ActionScript 3 Tools
Developed by Mirza Hatipovic, Released May 23, 2011

Useful simple functions for everyday flashers

ActionScript

Tags: actionscript , facebook , flash , flex

Useful simple functions for everyday flashers that can save tons of time for actionscript developers.

Back to top

Method list

/*
 * creates a random string with specified length
 */
getRandomString(length:Number):String


/*
* - chooses one of the supplied objects
*/
getOneOfTwo(first:Object, second:Object):Object 

/*
* - trims the whitspace and tabs around strings
*/ 

trim(str:String):String - 


/*
* - checks if the string is really empty, if there are no whitespaces
*/

isEmpty(str:String):Boolean

/*
* - calulates minutes from seconds in a nice string format like "02:30"
*/

calcMinsFromSecs(seconds:Number):String


/*
* - escapes the HTML for network
*/

htmlEscape(str:String):String 


/*
* - unescapres the HTML
*/

htmlUnescape(str:String):String 


/*
* - strips the base url , like from "http://mirza.com/test?item=1" you get "mirza.com"
*/

 getBaseURL(url:String):String 



/*
* 
*/

isEmail(email:String):Boolean


/*
* - Shuffles an array as many times as you specify, good for card games
*/

shuffleArray(arr:Array, times:Number):void 

/*
* - retrieves the domain out of the url, like "yahoo.com"
*/

getDomain(path:String):String


/*
* - strips out the extenstion from uploaded file names, like "jpg" from "mirza.jpg"
*/

getExtension(str:String):String 

/*
* - Strips the ID from youtube urls, like "http://www.youtube.com/watch?v=CxKWTzr-k6s"
*/

getYoutubeVideoID(str:String):String 


/*
* - Gives a random number from a specified range, like from 1 to 100
*/

getRandomBetween(min:Number, max:Number):Number 


/*
* - Rounds long floats to decimals, like 1.043232 to 1.04 if you specify 2 decimal places
*/

roundNum(num:Number, dec:int):Number 


/*
* - Go to full screen mode
*/

goFullScreen(s:Stage):void

User Reviews

No reviews have been submitted yet.

Questions & Comments


Or enter your name and Email
No comments have been posted yet.
You must be logged-in to vote. Log-in to your account or register now.