Full refund within 14 days of purchase date.
Useful simple functions for everyday flashers that can save tons of time for actionscript developers.
/*
* 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
Questions & Comments