#CopyLeft http://www.ep-ars.net .flash filename="time.swf" bbox=100x300 version=8 compress fps=25 .gradient grad3: 0% #d21e00ff 48% #d21e00ff 52% #d21e00ff 100% #d21e0000 .end .gradient grad1 radial r=50: 0% #ff0000ff 100% #ff000000 .end .gradient grad2: 0% #881C0Aff 80% #000000ff 100% #00000000 .end .gradient grad4: 0% #BC2309ff 70% #000000ff 100% #BC2309FF .end .box background width=100 height=300 color=#ffffff00 fill=grad4 .box square1 width=5 height=5 color=#ffffff00 fill=green .circle bloodbg r=50 color=#FF000000 fill=grad1 .circle bloodbg2 r=50 color=#FF000000 fill=grad1 .box mask width=150 height=100 color=#ffffff00 fill=grad2 .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(0xFFFFFF); } .end .frame 2 .action: move.useHandCursor=1; var life_duration; var speed; var life, bounding_side; if (life_duration == undefined) { life_duration = Math.round(250+(30*Math.random())); } //if (speed == undefined) { speed = Math.round(10+3*Math.random()); //speed = 5; //} if (life == undefined) { life = 0; } if (bounding_side == undefined) { if (Math.random() > 0.5) { bounding_side = 0; } else { bounding_side = 1; } } life += speed; if (life < life_duration) { if (life < 250) { move._y += speed; move._alpha = 100 * (0.25+0.75*Math.random()); } else { c.setRGB(0xFF0000); speed = 5; move._y -= speed; if (bounding_side == 1) { move._x -= speed; } else { move._x += speed; } move._alpha = 100 * (1 - (life-250) / (life_duration-250)); } /*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(255*255*255-r+0+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); } this.gotoAndPlay(1); .end .end .frame 1 .put background # .put bloodbg x=50 y=100 pin=center scalex=10 scaley=450 .put mask x=50 y=260 pin=center rotate=-90 # .put bloodbg2 x=50 y=200 pin=center scalex=50 scaley=10 # .play snd loop=1 nomultiple=1 .action: var x_pos = 2.5+90*Math.random(); //~ var r = 10*Math.random(); //~ x_pos = 45 + r; var mc = _root.attachMovie("square","square_mc"+getNextHighestDepth(),getNextHighestDepth(), {_x: x_pos+5*Math.random(), _y:0}); var mc = _root.attachMovie("square","square_mc"+getNextHighestDepth(),getNextHighestDepth(), {_x: x_pos+5*Math.random(), _y:0}); var mc = _root.attachMovie("square","square_mc"+getNextHighestDepth(),getNextHighestDepth(), {_x: x_pos+5*Math.random(), _y:0}); var mc = _root.attachMovie("square","square_mc"+getNextHighestDepth(),getNextHighestDepth(), {_x: x_pos+5*Math.random(), _y:0}); var mc = _root.attachMovie("square","square_mc"+getNextHighestDepth(),getNextHighestDepth(), {_x: x_pos+5*Math.random(), _y:0}); var mc = _root.attachMovie("square","square_mc"+getNextHighestDepth(),getNextHighestDepth(), {_x: x_pos+5*Math.random(), _y:0}); var mc = _root.attachMovie("square","square_mc"+getNextHighestDepth(),getNextHighestDepth(), {_x: x_pos+5*Math.random(), _y:0}); var mc = _root.attachMovie("square","square_mc"+getNextHighestDepth(),getNextHighestDepth(), {_x: x_pos+5*Math.random(), _y:0}); var mc = _root.attachMovie("square","square_mc"+getNextHighestDepth(),getNextHighestDepth(), {_x: x_pos+5*Math.random(), _y:0}); var mc = _root.attachMovie("square","square_mc"+getNextHighestDepth(),getNextHighestDepth(), {_x: x_pos+5*Math.random(), _y:0}); var mc = _root.attachMovie("square","square_mc"+getNextHighestDepth(),getNextHighestDepth(), {_x: x_pos+5*Math.random(), _y:0}); var mc = _root.attachMovie("square","square_mc"+getNextHighestDepth(),getNextHighestDepth(), {_x: x_pos+5*Math.random(), _y:0}); var mc = _root.attachMovie("square","square_mc"+getNextHighestDepth(),getNextHighestDepth(), {_x: x_pos+5*Math.random(), _y:0}); var mc = _root.attachMovie("square","square_mc"+getNextHighestDepth(),getNextHighestDepth(), {_x: x_pos+5*Math.random(), _y:0}); var mc = _root.attachMovie("square","square_mc"+getNextHighestDepth(),getNextHighestDepth(), {_x: x_pos+5*Math.random(), _y:0}); var mc = _root.attachMovie("square","square_mc"+getNextHighestDepth(),getNextHighestDepth(), {_x: x_pos+5*Math.random(), _y:0}); var mc = _root.attachMovie("square","square_mc"+getNextHighestDepth(),getNextHighestDepth(), {_x: x_pos+5*Math.random(), _y:0}); var mc = _root.attachMovie("square","square_mc"+getNextHighestDepth(),getNextHighestDepth(), {_x: x_pos+5*Math.random(), _y:0}); var mc = _root.attachMovie("square","square_mc"+getNextHighestDepth(),getNextHighestDepth(), {_x: x_pos+5*Math.random(), _y:0}); var mc = _root.attachMovie("square","square_mc"+getNextHighestDepth(),getNextHighestDepth(), {_x: x_pos+5*Math.random(), _y:0}); //Mouse.hide(); .end .frame 25 .action: gotoAndPlay(1); .end .end