Welcome To Snipplr


Everyone's Recent Snippets Tagged c



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 1433 posted 15 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 1348 posted 15 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 1682 posted 15 years ago by mhulse
listsEqual(["1","2"], ["1","2"]) is true;
0 1326 posted 15 years ago by prudnikov
0 1229 posted 15 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 1369 posted 15 years ago by smoothdzion
// Example usage ... trace(fNumToWord(56345)); // Output ... // Fifty-Six Thousand and Three Hundred and Forty-Five
0 2310 posted 15 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 1444 posted 15 years ago by adrianparr
0 1181 posted 15 years ago by hstothard
0 1162 posted 15 years ago by hstothard
1 1123 posted 15 years ago by hstothard
0 1099 posted 15 years ago by hstothard
This is useful for escaping multiple values in a POST array.
0 1568 posted 15 years ago by bradless
1 1029 posted 15 years ago by hstothard
2 1263 posted 15 years ago by hstothard
2 1219 posted 15 years ago by bionickid
0 1409 posted 15 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 1605 posted 15 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 1234 posted 15 years ago by 67ideas
1 ... 332 333 334 335 336 ... 553