#CopyLeft http://www.ep-ars.net .flash filename="pixels.swf" bbox=100x495 version=8 compress fps=25 .box square1 width=5 height=5 color=#ffffff00 fill=green .sprite square_sprite .frame 1 .put square1 pin=center .frame 2 .action: gotoAndPlay(1); .end .end .sprite square .frame 1 .put move=square_sprite .action: if (c == undefined) { c = new Color(move); c.setRGB(0x00FF00); } .end .frame 2 .action: move.useHandCursor=1; var life_duration; var speed; if (life_duration == undefined) { life_duration = Math.round(200+(295*Math.random())); } if (speed == undefined) { speed = Math.round(1+5*Math.random()); } move._y += speed; if (move._y < life_duration) { move._alpha = 100 * (1 - move._y / life_duration); var c_val = c.getRGB(); var blue = c_val%256; c_val = c_val/256; var green = c_val%256; c_val = c_val/256; var red = c_val%256; var r = Math.round(255*Math.random()); c.setRGB(0+255*255-r+0); /*var myColorTransform = new Object(); myColorTransform.ra = 0; myColorTransform.rb = 0; myColorTransform.ga = 0; myColorTransform.gb = 0; myColorTransform.ba = 255; myColorTransform.bb = 0; myColorTransform.aa = 255; myColorTransform.ab = 0; c.setTransform(myColorTransform);*/ } else { removeMovieClip(this); } gotoAndPlay(1); .end .end .box bg width=100 height=495 fill=black .frame 1 .action: var x_pos = 2.5+95*Math.random(); var r = Math.random(); if (r < 0.75 && x_pos < 50) { x_pos = x_pos + 47.5; } var mc = _root.attachMovie("square","square_mc"+getNextHighestDepth(),getNextHighestDepth(), {_x: x_pos, _y:0}); //Mouse.hide(); .end .frame 5 .action: gotoAndPlay(1); .end .end