Welcome To Snipplr


Everyone's Recent Snippets



1 ... 332 333 334 335 336 ... 553
The ColorMatrix class by Grant Skinner allows you to modify the Brightness, Contrast, Saturation and Hue of a DisplayObject.
0 1437 posted 16 years ago by adrianparr
To use it, simply create a new folder called “art-direction” in your theme. Then to style any particular Post or Page, just drop a file in that folder named style-XXXX.css where XXXX is the ID of the Post or Page. When that Post or Page loads, Wo...
0 1360 posted 16 years ago by gd6d
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 1693 posted 16 years ago by mhulse
listsEqual(["1","2"], ["1","2"]) is true;
0 1332 posted 16 years ago by prudnikov
0 1240 posted 16 years ago by browncardigan
When creating a drop-down menu/hover menu, the subitems will usually go as wide as the parent li. To make them go as wide as the value of their containing li you have to add a white-space: nowrap. If you still run into issues you may have to ma...
1 1379 posted 16 years ago by smoothdzion
// Example usage ... trace(fNumToWord(56345)); // Output ... // Fifty-Six Thousand and Three Hundred and Forty-Five
0 2320 posted 16 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 1454 posted 16 years ago by adrianparr
0 1189 posted 16 years ago by hstothard
0 1170 posted 16 years ago by hstothard
1 1134 posted 16 years ago by hstothard
0 1106 posted 16 years ago by hstothard
This is useful for escaping multiple values in a POST array.
0 1583 posted 16 years ago by bradless
1 1042 posted 16 years ago by hstothard
2 1269 posted 16 years ago by hstothard
2 1229 posted 16 years ago by bionickid
0 1418 posted 16 years ago by chrismendis
This lets you type Mandarin tones like a1, o2, e3, and so on instead of having to type the real pinyin. The tones are saved with the proper characters in the database.
0 1617 posted 16 years ago by 67ideas
Put the height_options method into a helper file, and use it as the select collection for select or collection_select. It allows heights between 4 feet and 7 feet. To change these limits, change 48 and 84 to some other numbers.
0 1246 posted 16 years ago by 67ideas
1 ... 332 333 334 335 336 ... 553