Spectrum

I don’t know how to call this, and I don’t know if i posted in the right section.

here:

http://asia.geocities.com/andrew11_11_86/butterfly_catcher.swf

Script:

var ctr = 0;
var R = 0;
var G = 0;
var B = 255;
var colorSwitcher = 0;
_root.onMouseMove = function() {
    var myCircle:MovieClip = _root.attachMovie("myCircle", "myC"+ctr, ctr++);
    myCircle._x = _xmouse;
    myCircle._y = _ymouse;
    myCircle.c = new Color(myCircle);
    
    switch (colorSwitcher) {
    case 0 :
        if (R>=255) {
            colorSwitcher = 1;
        } else {
            R++;
            B--;
        }
        break;
    case 1 :
    if (G>=255) {
            colorSwitcher = 2;
        } else {
            G++;
            R--;
        }
        break;
    case 2 :
    if (B>=255) {
            colorSwitcher = 0;
        } else {
            B++;
            G--;
        }
        break;
    }
    
    
    var currentColor = (R << 16)+(G << 8)+B;
    myCircle.c.setRGB(currentColor);
    if (FF>255) {
        FF = 0;
    }
    if (ctr>=500) {
        ctr = 0;
    }
};

where “myCircle” is the linkage name of an animated MovieClip from the library.

In this case, I created a shape tween from a Big Opaque cirlce to a transparent small circle.

You may have other shapes rather than that. :wink: