alert This appears to be a flash file, you cannot see a preview because flash player is no longer supoorted in browsers, but you can still download the file to study it's source code.
You can open/play the swf file with Flash Player exe
user adrianTNT
adrianTNT (32)

Stars

Stars generated randomly. Stars are positioned randomly on stage and then randomly changes color and rotation.
The action script has around 13 code lines.

8249 downloads, 39601 views

flash stars animation blue


Download (5.94 KB)

Comments

You need to login to post a comment.

user MissSof
MissSof 14 years ago

aww so cute, let me have it :D

user adrianTNT
the listing author adrianTNT (admin) 14 years ago

I am glad you like it.
Thanks for the comments (Alexandra, Vicmar, etc).

user Alexandra
Alexandra 14 years ago

Thanks for sharing this wonderful stars!

user vicmar
vicmar 14 years ago

good!

user vicmar
vicmar 14 years ago

nice! god job

user storyseed
storyseed 14 years ago

Thank

user adrianTNT
the listing author adrianTNT (admin) 14 years ago

Inside "star_group" clip you can replace:

var matrix_array:Array = Array("FFFFFF", "00BFF3", "00EAFF");
//
starcolor1 = new Color(star1);
starcolor2 = new Color(star2);
onEnterFrame = function () {
star1._rotation = random(180);
star2._rotation = random(180);
star1._alpha = random(50)+50;
star2._alpha = random(50)+50;
starcolor = matrix_array[random(matrix_array.length) ];
starcolor1.setRGB("0x"+starcolor);
starcolor2.setRGB("0x"+starcolor);
};


with:

var matrix_array:Array = Array("FFFFFF", "00BFF3", "00EAFF");
//
starcolor1 = new Color(star1);
starcolor2 = new Color(star2);
star1._rotation = random(180);
star2._rotation = random(180);
function refresh_star() {
star1._rotation++;
star2._rotation++;
star1._alpha = random(50)+50;
star2._alpha = random(50)+50;
starcolor = matrix_array[random(matrix_array.length) ];
starcolor1.setRGB("0x"+starcolor);
starcolor2.setRGB("0x"+starcolor);
}
refresh_star_interval = setInterval(refresh_star, 5);

Where "5" are milliseconds interval to repeat the function, the one that includes rotating the stars.

user erotomania76
erotomania76 14 years ago

hi is it possible to slow down the rotation of the stars?

user saichiu
saichiu 14 years ago

thx !!!

user raghav_pmars
raghav_pmars 15 years ago

thanx

user BravoRJ
BravoRJ 15 years ago

Perfect!!!
Thanks.

user DI-ANA
DI-ANA 15 years ago

thank you