Letter and Number Rain
| Category | : Flash | Views | : 36574 | ||
| Version | : 8 | Rating | : | ||
| Type | : Text | Source File | : letter-number-rain.zip | ||
| Result | : See the result | ||||
_rotation += rotSpeed
Rotate left or right.
speed += gravity;
Increase the speed by the gravity.
if(_y > 410)
{
this.removeMovieClip();
}
If the Movie Clip is over the limit of the screen, remove it.
}
var i = 0;
Variable used just to make unique names and depths for new Movie Clips.
setInterval(nLetter, 70);
This function calls the function "nLetter" every 70 milliseconds.Parameters for the setInterval:
setInterval(function name, milliseconds, parameters);
"parameters" is optional, it痴 the parameters for the function you are calling.
function nLetter()
{
duplicateMovieClip(letterMC, "letter" + i, 10 + i);
Duplicate the "letterMC" Movie Clip.
i++
}
Increase "i" by 1.That's all the tutorial for now. Hope this will help you in your learning, thanks!
![]() |
![]() |
![]() |
![]() |
![]() |






