#CopyLeft http://www.ep-ars.net .flash filename="sad.swf" bbox=100x300 version=8 compress fps=25 .gradient grad3: 0% #ff000000 80% #ff0000ff 100% #ff0000ff .end .box square1 width=10 height=2 color=#ffffff00 fill=grad3 .box bg width=100 height=300 color=#ffffff00 fill=white .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(0xcc0000); } .end .frame 2 .action: move.useHandCursor=1; var life_duration; var speed; var life, bounding_side; var go_through; var level = 190; if (life_duration == undefined) { life_duration = Math.round(level+(50*Math.random())); } if (life < 40) { speed = Math.round(2*Math.random()); } else{ speed = 2; speed = Math.round(3+2*Math.random()); } 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) { move._x += speed; if (life < level) { move._alpha = 100 * (0.25+0.75*Math.random()); } else { speed = 5; if (bounding_side == 1) { move._rotation = 225; } else { move._rotation = 135; } c.setRGB(0xFF0000); move._width = 5; move._alpha = 100 * (1 - (life-level) / (life_duration-level)); //~ } } } else { trace("removed with = "+life_duration); removeMovieClip(this); } this.gotoAndPlay(1); .end .end .put bg .png bgprofil "profil.png" .box tex width=90 height=120 color=#FFFFFF00 fill=bgprofil .put tex pin=center x=50 y=60 .frame 1 .play snd loop=1 nomultiple=1 .action: if (goutte == undefined) goutte = 0; if (Math.random() > 0.75) { if (goutte != 2) { for (var i=0; i<20; i++) { var mc = _root.attachMovie("square","square_mc"+getNextHighestDepth(),getNextHighestDepth(), {_x: 75+3*Math.random(), _y:55}); mc._rotation = 90; } goutte++; } else { goutte = 0; } } //Mouse.hide(); .end .frame 15 .action: gotoAndPlay(1); .end .end