Welcome To Snipplr
Everyone's Recent Snippets Tagged c
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
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
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
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