#CopyLeft http://www.ep-ars.net .flash filename="blood.swf" bbox=100x300 version=8 compress fps=25 .sound snd "walking.wav" .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 90% #881C0Aff 100% #881C0A00 .end .box background width=100 height=300 color=#ffffff00 fill=#BC2309 .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(0xFF2222); } .end .frame 2 .action: move.useHandCursor=1; var life_duration; var speed; var life, bounding_side; if (life_duration == undefined) { life_duration = Math.round(200+(30*Math.random())); } if (speed == undefined) { speed = Math.round(5+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 < 200) { move._y += speed; move._alpha = 100 * (0.25+0.75*Math.random()); } else { speed = 5; move._y -= speed; if (bounding_side == 1) { move._x -= speed; } else { move._x += speed; } move._alpha = 100 * (1 - (life-200) / (life_duration-200)); } /*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); } 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+95*Math.random(); var r = 10*Math.random(); x_pos = 45 + r; var mc = _root.attachMovie("square","square_mc"+getNextHighestDepth(),getNextHighestDepth(), {_x: x_pos, _y:0}); //Mouse.hide(); .end .frame 2 .change bloodbg scalex=12 .change bloodbg2 scalex=65 scaley=12 #.del bloodbg2 .frame 3 .action: gotoAndPlay(1); .end .end