Advanced retro starfield
Example:
Step.1
add the following script to Scene_1.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 | onFrame (1) { // starfield i=0; _x=275; _y=200; m=Math; onEnterFrame=function(){ star=createEmptyMovieClip("star"+i,++i); star.lineStyle(2,0xFFFFFF); star.lineTo(1,0); star._alpha=0; star.d=1; star.r=m.random()*m.PI*2; star.onEnterFrame=function(){ StarCol = Math.round( Math.random()*0xFFFFFF ); StarColoredObject = new Color (star); StarColoredObject.setRGB(StarCol); with(this){ d*=1.1; if(d>300)removeMovieClip(); _alpha=d/2; _x=m.cos(r)*d; _y=m.sin(r)*d; } } } // } |
black background, export swf 8.
Social Connect
Login with one of the following.Enter your WordPress.com blog URL
http://.wordpress.com
Proceed