package classes{
import flash.display.Sprite;
import flash.display.MovieClip;
import flash.events.MouseEvent;

 

public class fullrain extends Sprite {


public function fullrain() {

this.addEventListener(MouseEvent.ROLL_OVER, randomize);

}

private function randomize(Event:MouseEvent):void {


var randNum:Number = (Math.ceil(Math.random() *2));


if (randNum==1){
left();}else if(randNum==2)
{right();}}




function left():void
{

var theAlpha:Number= Math.random();


{
this.alpha= theAlpha;
this.y++;}

}

function right():void
{
var theAlpha:Number= Math.random();


{
this.alpha =theAlpha
this.y++;};

}




}
}