estos errores son los que me marca
Scene=Scene 1, Layer=Layer 1, Frame=1: Line 23: '{' expected
function randRange(min:Number, max:Number):Number {
Scene=Scene 1, Layer=Layer 1, Frame=1: Line 26: Unexpected '}' encountered
}
y no se que hay en eso
ayudame ya casi termino
el codigo completo es este:
i = _root.getNextHighestDepth();
_root.createEmptyMovieClip("control_mc", i);
control_mc.onEnterFrame = function() {
CreateRain();
};
function CreateRain() {
i = _root.getNextHighestDepth();
tmp = _root.attachMovie("Rain", "Rain_mc"+i, i);
tmp._x = randRange(-70, 500);
tmp._y = -10;
tmp._y = -10;
tmp._alpha = randRange(1, 40);
tmp.speed = randRange(10, 54);
tmp._yscale = randRange(50, 200);
tmp.onEnterFrame = MoveRain;
}
function MoveRain() {
this._y += this.speed;
if (this._y>340) {
removeMovieClip(this);
}
}
function randRange(min:Number, max:Number):Number {
var randomNum:Number = Math.floor(Math.random()*(max-min+1))+min;
return randomNum;
}
