Use Flash MX 2004 homemade palette and color components (1)

xiaoxiao2021-03-05  50

Wang Wei Gang, April 2005

For recent time, because many work involved in the Flash in Flash, I used the color software such as ColorImpact, and made a simple color palette and color components with Flash MX 2004. To provide to other Flash programs.

This component itself is not complicated (not perfect), but it seems that there are many flash prostitutes on the Internet to find similar source code, I will open it the source code (all JavaScript code, in response to the call of MX 2004) Also added some object-oriented features, but it's a hurry, everyone will look at it).

First, a flash applying that uses this component is simple to simulate the function of custom web color matching. You experience this component's usage (and some web color matching, home color matching, architectural FLASH application, this The advantage of the component is to provide an HSB color ring, which can be very intuitively selecting colors).

Using components is very simple, just in response to its Change event, like this

Var o = new object ();

o.change = function (e) {

VAR CCC = New Color (Block1);

Ccc.setrgb (e.target.color);

}

C1.AddeventListener ("Change", O);

...... Not complete ...

转载请注明原文地址:https://www.9cbs.com/read-36684.html

New Post(0)