#CopyLeft http://www.ep-ars.net .flash filename="blood2.swf" bbox=100x300 version=8 compress fps=25 .gradient grad2: 0% #881C0Aff 80% #076060ff 100% #07606000 .end .gradient grad4: 0% #BC2309ff 70% #076060ff 100% #BC2309FF .end .gradient grad5: 0% #000000ff 50% #ffffffff 100% #000000FF .end .box bg width=100 height=300 color=#ffffff00 fill=white .box background width=100 height=300 color=#ffffff00 fill=grad4 .box square1 width=5 height=5 color=#ffffff00 fill=green .box mask width=150 height=100 color=#ffffff00 fill=grad2 .box tube width=5 height=200 color=#ffffff00 fill=grad5 .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(0xFF0000); } .end .frame 2 .action: move.useHandCursor=1; var life_duration; var speed; var life, bounding_side; var level = 270; if (life_duration == undefined) { life_duration = Math.round(level+(20*Math.random())); } if (life < 200) { speed = Math.round(1+4*Math.random()); } else{ speed = 6; } 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 < level) { 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-level) / (life_duration-level)); } } else { removeMovieClip(this); } this.gotoAndPlay(1); .end .end .frame 1 .put bg # .put background # .put mask x=50 y=260 pin=center rotate=-90 .put tube x=60 y=0 .action: if (Math.random() > 0.66) { for (var i=0; i<30; i++) { var mc = _root.attachMovie("square","square_mc"+getNextHighestDepth(),getNextHighestDepth(), {_x: 60+5*Math.random(), _y:0}); } } //Mouse.hide(); .end .frame 15 .action: gotoAndPlay(1); .end .end