Chapter 9 of Robert Penner’s Programming Flash MX provides an extensive collection of custom methods that allow for more intuitive color manipulation.
I have gone through and converted all of Penner’s work to support not only the Color object, but also the ColorTransform object. So if you are using Flash 8, you have the choice of either workflows.
I have also tried to make the classes as flexible as possible to allow you to work with the Color and ColorTransform classes the way you like. For example, Color and ColorTransform each have a util class that allows you to pass in your respective object and decorate it with the new methods. They also each have an extended class that provides the new methods. And finally, they each have a class that allows you to decorate a particular MovieClip or all MovieClips with the new methods.
This chapter contains six classes, three based upon the Color object and another three based upon the ColorTransform object: ColorUtil and ColorTransformUtil, which will be included in the com.robertpenner.utils namespace, XColor and XColorTransform, which will be included in the com.robertpenner.graphics namespace, and ColorClip and ColorTransformClip, which will be included in the com.robertpenner.display namespace.
Documentation:
com.robertpenner.utils.ColorUtil
com.robertpenner.utils.ColorTransformUtil
com.robertpenner.graphics.XColor
com.robertpenner.graphics.XColorTransform
com.robertpenner.display.ColorClip
com.robertpenner.display.ColorTransformClip
Source:
Penner AS2 ProFMX: Chapter 9 Classes
Dependencies:
Color
flash.geom.ColorTransform
Hi, I wonder what documentation tool you use to generate doc for the classes. Thanks
Hey Tangent,
I use ZenDoc with a slightly customized version of his MMLiveDocs template (update: I just realized that he has released a new version with my custom template included). I highly recommend it. The only thing that it really lacks (which is a major thing for many people) is the ability to automatically link between multiple files.
This is very usefull. Thanks alot.
-Thomas
that’s i needed utils.thanks