Spiral

View a project:

[|spiral.swf]

Download a file:



Attach the following code to the movie clip;

onClipEvent(load) { spiralColor = new Color(this); colorTransform = {rb:255, bb:255, gb:255}; n = 1; }

onClipEvent(enterFrame) { if (n == 1) { colorTransform.rb -= 5; if (colorTransform.rb == 0) n = 2; } else if (n == 2) { colorTransform.bb -= 5; if (colorTransform.bb == 0) n = 3; } else if (n == 3) { colorTransform.rb += 5; if (colorTransform.rb == 255) n = 4; } else if (n == 4) { colorTransform.gb -= 5; if (colorTransform.gb == 0) n = 5; } else if (n == 5) { colorTransform.bb += 5; if (colorTransform.bb == 255) n = 6; } else if (n == 6) { colorTransform.gb += 5; if (colorTransform.gb == 255) n = 1; } spiralColor.setTransform(colorTransform);

this._rotation = this._rotation += 5; }