Welcome To Snipplr


Everyone's Recent ActionScript 3 Snippets



1 ... 11 12 13 14 15 ... 19
This is a sound manager class for a small project I've been working on for the past two days. Nothing really major or new, but just some simple functionality including play/stop/forward/previous functions that may help prove useful to someone. If you...
1 920 posted 14 years ago by alvincrespo
There has to be a better way to do this rather than using regular expressions to remove the various namespaces within the ATOM feed. Also variables could be reused (currently used for teaching so helpful to explain process). Based on: http://www.r...
2 998 posted 14 years ago by eddequincey
Use this to detect key presses and respond to them.
0 674 posted 14 years ago by adrianparr
The ColorMatrix class by Grant Skinner allows you to modify the Brightness, Contrast, Saturation and Hue of a DisplayObject.
0 869 posted 14 years ago by adrianparr
I really like the use of constants and the dollar sign ($) in this class. I have only used $ in jQuery to designate objects. Looks like one might use $ in AS3 classes to designate/differentiate passed-in variables from internal method/global vars.
1 886 posted 14 years ago by mhulse
// Example usage ... trace(fNumToWord(56345)); // Output ... // Fifty-Six Thousand and Three Hundred and Forty-Five
0 1367 posted 14 years ago by adrianparr
This is a handy starting point when creating a new DocumentClass. This is also available from Lee Brimelow's Snippets Panel ... New Snippets Panel Extension for Flash CS3! http://theflashblog.com/?p=336 Flash CS3 Snippets Panel Updated htt...
0 836 posted 14 years ago by adrianparr
This SearchArray class was written by Flanture. I claim no credit for this. The class can be downloaded from here ... http://www.box.net/shared/7fj14higai
2 796 posted 14 years ago by adrianparr
This handy String Utils class was written by Ryan Matsikas at gSkinner.com I take no credit for it. A ZIP file containing 'StringUtils.as' can be downloaded from here ... http://www.gskinner.com/products/downloads/AS3StringUtils.zip
2 1078 posted 14 years ago by adrianparr
Handy Date/Time converter: Convert Date Object to MySQL date format, Translate minutes into an English phrase, Convert MySQL date to Actionscript Date object, Get Day name from Date, Get name of Month from a Date Object, Input the seconds and return...
1 1289 posted 14 years ago by chrisaiv
I found this awesome class by [email protected] and can't help but share it.
1 989 posted 14 years ago by chrisaiv
This is the most simple example of a ComboBox created in AS3, based mostly on Adobe's example from http://help.adobe.com/en_US/ActionScript/3.0_UsingComponentsAS3/WS5b3ccc516d4fbf351e63e3d118a9c65b32-7fa9.html Inside the zip file you will find two...
0 1727 posted 14 years ago by Winkyboy
Format a number so it is more humanly readable. It allows for setting the number of decimal places (inc. adding 0000s to the end) and separating thousands with a comma. Example usage: trace(numberFormat(1234.695, 2, true, false)); // Output:...
0 1304 posted 14 years ago by adrianparr
Uses JSON Lite SWC/Class from http://thanksmister.com/?p=40
0 970 posted 14 years ago by allnatural
Gets the loaderInfo of the top-most parent. For example, if you load an external swf, placing this code within that external swf can access the loaderInfo and FlashVars for the parent SWF (the SWF that has loaded this external SWF) from within the ch...
1 595 posted 14 years ago by sandropadin
3 1343 posted 14 years ago by BoNzO
Consider the following piece of code which compares two arrays to find which elements exist in outerArray that do not exist in innerArray:
0 797 posted 14 years ago by quan
Turn off auto kerning to get rid of that goddamn line break that happens on multiline text inputs!
0 959 posted 14 years ago by creativelifeform
Read a file from the FileSystem
0 709 posted 14 years ago by allnatural
Display all files in a folder
0 2145 posted 14 years ago by allnatural
1 ... 11 12 13 14 15 ... 19