# Spectrum

**URL:** <https://forum.kirupa.com/t/spectrum/181962>\
**Category:** open source\
**Created:** [March 14, 2006, 4:37pm UTC](https://forum.kirupa.com/t/spectrum/181962 "2006-03-14T16:37:36Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![KyoKusanagi](https://avatars.discourse-cdn.com/v4/letter/k/bc79bd/32.png) [@KyoKusanagi](https://forum.kirupa.com/u/KyoKusanagi)\
**Post date:** [March 14, 2006, 4:37pm UTC](https://forum.kirupa.com/t/spectrum/181962/1 "2006-03-14T16:37:36Z")

</div>

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

here:

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

```

Script:

```auto
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. 😉
