# MouseOver Actions Too Slow

**URL:** <https://forum.kirupa.com/t/mouseover-actions-too-slow/203824>\
**Category:** flash\
**Created:** [October 14, 2006, 2:17pm UTC](https://forum.kirupa.com/t/mouseover-actions-too-slow/203824 "2006-10-14T14:17:37Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![sunilMontRED](https://avatars.discourse-cdn.com/v4/letter/s/a8b319/32.png) [@sunilMontRED](https://forum.kirupa.com/u/sunilMontRED)\
**Post date:** [October 14, 2006, 2:17pm UTC](https://forum.kirupa.com/t/mouseover-actions-too-slow/203824/1 "2006-10-14T14:17:37Z")

</div>

Hi,

I am new to flash. I am creating a network diagram.

[http://S3.amazonaws.com/montred/iste…2006-10-03.swf](http://s3.amazonaws.com/montred/isteal-flash/myspace-2006-10-03.swf)

The problem is when the number of interconnections between two nodes increases, Mouse Over Effects takes a lot of time (10-15 secs).

Right now I am doing it as follows to draw multiple lines associated with a circle:

function drawLine(counter:Number) {  
item = groupLineCircle[counter];  
\_root.createEmptyMovieClip(item[0][1],item[0][0]);  
with (\_root[item[0][1]]) {  
var total:Number = item.length;  
for (var i:Number=0;i\<total;i++) {  
lineStyle(0,0xEEEEEE,100);  
moveTo(X1, Y1);  
lineTo(X2, Y2);  
}  
}  
}

and onmouse over I am changing the color and depth.

If I have 150 nodes and 5000 lines, the mouse action takes 15+ seconds.

Please suggest me a method to reduce this time to 1 sec or so.

thanks.
