//rgbrobot codes from flash2 itp class Rgbrobot extends MovieClip { private var myColor:Color; function init(arg) { myColor = new Color(this); myColor.setRGB(arg); onEnterFrame = motion; } private function motion():Void { var randx = (Math.random()-Math.random())*40; var randy = (Math.random()-Math.random())*40; _x += randx; _y += randy; if (_x < 0 || _x > Stage.width) _x = Stage.width/2; if (_y < 0 || _y > Stage.height) _y = Stage.height/2; } }