/** Garden1 2007 by Duncan Holby. www.glyfconstruct.com Protected under the Creative Commons Licence. For non-commerical use only. Feel free to use but please credit. For use with Flower4.as or Flower5.as, Pedal.as. **/ package { import flash.display.Sprite; import flash.events.Event; import flash.events.MouseEvent; public class Garden1 extends Sprite { private var i:uint = 0; private var j:uint = 0; private var k:uint = 0; private var n:uint = 0; private var seeds:Array = new Array(); private var eventSprite:Sprite; private var numFlowers:uint =30; private var minRadius:uint = 5; private var flowerXpos:Array = new Array(); private var flowerYpos:Array = new Array(); private var flowerRadius:Array = new Array(); private var distance:Array = new Array(); public function Garden1() { init(); } private function init():void { seeder(); stage.addEventListener(MouseEvent.MOUSE_DOWN, onmouseDown); } private function onmouseDown(event:Event):void { //reset for(k=0; k minRadius){ flowerRadius[i] = distance[0]; i++; }; }; //adds all flowers to the display for(k=0; k