# Spot the bug

**URL:** <https://forum.kirupa.com/t/spot-the-bug/194927>\
**Category:** Uncategorized\
**Created:** [July 27, 2006, 8:15am UTC](https://forum.kirupa.com/t/spot-the-bug/194927 "2006-07-27T08:15:11Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ybamary](https://avatars.discourse-cdn.com/v4/letter/y/919ad9/32.png) [@ybamary](https://forum.kirupa.com/u/ybamary)\
**Post date:** [July 27, 2006, 8:15am UTC](https://forum.kirupa.com/t/spot-the-bug/194927/1 "2006-07-27T08:15:11Z")

</div>

Thank you for your tutorials. I am really new to as, I have managed to make a drawing “thing” which draws different coloured stars. Sometimes it works perfectly and other times it sticks with the one colour. The code is below. Thanks. Also when i download your source files the display is really small. How can i make them full size? im using flash8.  
movieclips = [“star”,“sty”,“strs”];  
i = movieclips.length;  
k = Math.floor(Math.random()\*i);  
var Num:Number = 0;  
\_root.onMouseDown = function () {  
\_root.onMouseMove = function () {  
var temp = \_root.attachMovie(movieclips[k],“star”+ Num++,\_root.getNextHighestDepth());  
temp.\_x = \_root.\_xmouse;  
temp.\_y = \_root.\_ymouse;  
temp.gotoAndStop(Math.ceil(Math.random()\*4));  
temp.\_xscale = temp.\_yscale = Math.random()\*100+20  
temp.\_alpha = Math.random()\*100+20  
}  
}  
\_root.onMouseUp = function(){  
delete \_root.onMouseMove;  
}
