# Simple but fun

**URL:** <https://forum.kirupa.com/t/simple-but-fun/214201>\
**Category:** Uncategorized\
**Created:** [January 26, 2007, 6:32am UTC](https://forum.kirupa.com/t/simple-but-fun/214201 "2007-01-26T06:32:47Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![joshchernoff](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/joshchernoff/32/1852_2.png) [@joshchernoff](https://forum.kirupa.com/u/joshchernoff)\
**Post date:** [January 26, 2007, 6:32am UTC](https://forum.kirupa.com/t/simple-but-fun/214201/1 "2007-01-26T06:32:47Z")

</div>

ok this is not mine but a combintion of a few peoples work.

[SIZE=4]SWF:  
[http://gfxcomplex.com/labs/fun.html[/SIZE]](http://gfxcomplex.com/labs/fun.html%5B/SIZE%5D)

circles.as

```auto
import com.mosesSupposes.fuse.*;

ZigoEngine.register(Fuse, PennerEasing);

this.createEmptyMovieClip("leader",1);

function moveLeader():Void 
{
    var f:Fuse = new Fuse();
    f.push({target:leader, x:grp, y:grp, controlX:grp, controlY:grp, time:2, ease:"easeOutQuad"});
    f.push({func:moveLeader});
    f.start();
}
moveLeader();
function grp():Number 
{
    return Math.random()*400;
}

this.onEnterFrame = function(){
    var t:MovieClip = this.attachMovie("circle","c"+this.getNextHighestDepth(), this.getNextHighestDepth());
    t._x = leader._x;
    t._y = leader._y;
    var f:Fuse = new Fuse();
    f.push({target:t, tint:Math.random()*0xFFFFFF, time:1, ease:"easeOutExpo"});
    f.push({func:function(){t.removeMovieClip();}});
    f.start();
    
}

```
