Dynamic
Do you want to be a star? Just copy the code for this tutorial! First look at the effect:
Production method:
First Modify document properties: Black background, frame frequency 30fps
Create a new movie clip. Draw a small pentagram or any other graphic in the movie clip symbol! You can even make an animation yourself.
To set connection properties:
Then create a background layer and an action layer in the home scene, the background layer to make its own background, the action layer first frame put the following code:
var stars = 150;
var maxspeed = 12;
var minspeed = 6
Create and position stars
for (var i = 0; i<stars; i++) {
var star = This.attachmovie ("Star", "Star" +i, I);
star._x = random (stage.width);
star._y = random (stage.height);
var size = random (2) +0.6* (random (4));
Star._width = size;
Star._height = size;
}
This.onenterframe = function () {
for (var j = 0; j<stars; j + +) {
var s = this["star" +j];
if (s._y>0) {
S._y-= random (maxspeed-minspeed) +minspeed;
} else {
s._y = Stage.height;
}
}
};
The code above, if you are not clear, you can try to change. Can test the film!