# Fish eyes

**URL:** <https://forum.kirupa.com/t/fish-eyes/176195>\
**Category:** Uncategorized\
**Created:** [January 21, 2006, 10:34am UTC](https://forum.kirupa.com/t/fish-eyes/176195 "2006-01-21T10:34:26Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![bodyvisual](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/bodyvisual/32/564_2.png) [@bodyvisual](https://forum.kirupa.com/u/bodyvisual)\
**Post date:** [January 21, 2006, 10:34am UTC](https://forum.kirupa.com/t/fish-eyes/176195/1 "2006-01-21T10:34:26Z")

</div>

```auto

Stage.scaleMode = "noScale";
Stage.align = "lt";
var v:Object = new Object({ball_mc: _root.createEmptyMovieClip("ball_mc", 1), balls: new Array(_root.ball_mc), cols: new Array(0xFF0066, 0x00CCFF, 0xFF9900, 0xFFFF00), G: 0.8, F: 0.965, E: 0.80, T: Math.round(Stage.width/4)});
for (var i:Number = 0; i<v.T; i++) {
    var mc:MovieClip = ball_mc.duplicateMovieClip("ball_mc"+i, _root.getNextHighestDepth());
    mc._x = Math.round(Math.random()*Stage.width);
    mc._y = Math.round(Math.random()*(-150-400))-150;
    mc.lineStyle(10, v.cols[Math.round(Math.random()*(v.cols.length-1))], Math.round(Math.random()*(100-25))+25);
    mc.moveTo(0, 0);
    mc.lineTo(0, 1);
    mc.sy = 0;
    mc._intID = setInterval(mc, "_fn", 12);
    mc._fn = _handle;
    v.balls.push(mc);
}
function _handle():Void {
    this.sy += v.G*v.F;
    this._y += this.sy;
    if (this._y>Stage.height-8) {
        this._y = Stage.height-8;
        this.sy = -this.sy*v.E;
    }
}
onMouseDown = function():Void {
    v.G = -0.2;
}
onMouseUp = function():Void {
    v.G = 0.8;
}

```

:p:
