# Mouse Trail Tween

**URL:** <https://forum.kirupa.com/t/mouse-trail-tween/251184>\
**Category:** flash\
**Created:** [February 6, 2008, 1:26am UTC](https://forum.kirupa.com/t/mouse-trail-tween/251184 "2008-02-06T01:26:04Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jeancnicolas](https://avatars.discourse-cdn.com/v4/letter/j/7bcc69/32.png) [@jeancnicolas](https://forum.kirupa.com/u/jeancnicolas)\
**Post date:** [February 6, 2008, 1:26am UTC](https://forum.kirupa.com/t/mouse-trail-tween/251184/1 "2008-02-06T01:26:04Z")

</div>

Hi there, Im trying to make a load of bubbles appear as the mouse moves, which then tween to the top of the screen.  
Im using “mc\_tween2.as” class to help the tweening.

```auto
onMouseMove = function(){
var number:Number = Math.floor(Math.random()*5);
    for(i=0;i<number;i++){
    
    _root.attachMovie("spot","bubble"+i,i,{x:_root._xmouse,_y:_root._ymouse});
    _root["bubble"+i].tween("_y",0,1);
    }
    
}

```

it kind of works … but there’s a lot of canceling out too.  
Any Help or ideas?!  
Thanks 🙂
