Welcome To Snipplr
Everyone's Recent Snippets
- 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
1074
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
971
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
1115
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
948
posted 15 years ago by smoothdzion
// Example usage ...
trace(fNumToWord(56345));
// Output ...
// Fifty-Six Thousand and Three Hundred and Forty-Five
0
1620
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
1051
posted 15 years ago by adrianparr