#CopyLeft http://www.ep-ars.net .flash filename="pneu.swf" bbox=100x300 version=8 compress fps=25 .gradient grad1 radial r=5: 0% #ffffffff 100% #073030ff .end .gradient grad2 radial r=5: 0% #ffffffff 100% #031515ff .end .box square1 width=5 height=5 color=#ffffff00 fill=green .circle circle1 r=45 color=#ffffff00 fill=#073030ff .circle circle2 r=25 color=#ffffff00 fill=grad1 .circle circle3 r=5 color=#ffffff00 fill=grad2 .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 = 210; if (life_duration == undefined) { life_duration = Math.round(level+(50*Math.random())); } //if (speed == undefined) { speed = Math.round(9+4*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; } } //~ if (go_through == undefined) { //~ if (Math.random() > 0.75) { //~ go_through = true; //~ life_duration = 300; //~ } else { //~ go_through = false; //~ } //~ } life += speed; if (life < life_duration) { if (life < level) { move._y += speed; move._alpha = 100 * (0.25+0.75*Math.random()); } else { //~ if (go_through) { //~ move._y += speed; //~ } else { //~ if (Math.random() > 0.33) { //~ become_red = true; //~ } else { //~ become_red = false; //~ } //~ if (become_red) { //~ c.setRGB(0xFF0000); //~ } speed = 5; move._x -= speed; if (bounding_side == 1) { move._y -= speed; } else { move._y += speed; } move._alpha = 100 * (1 - (life-level) / (life_duration-level)); //~ } } } else { trace("removed with = "+life_duration); removeMovieClip(this); } this.gotoAndPlay(1); .end .end .put bg .put circle1 x=50 y=250 pin=center .put circle2 x=50 y=250 pin=center .put circle3 x=50 y=250 pin=center .png bgpneu "pneu1.png" .sprite pneu .frame 1 .box tex width=100 height=100 color=#FFFFFF00 fill=bgpneu .put tex pin=center .frame 2 .action: tex._rotation-=30; gotoAndPlay(2); .end .end .put pneu x=50 y =250 .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(); //~ if (draw_lines == undefined) { //~ for (var i=0; i<20; i++) { //~ var mc = _root.attachMovie("line","line_mc"+getNextHighestDepth(),getNextHighestDepth(), {_x: 0, _y:i*10}); //~ } //~ draw_lines = false; //~ } for (var i=0; i<20; i++) { var mc = _root.attachMovie("square","square_mc"+getNextHighestDepth(),getNextHighestDepth(), {_x: 25+5*Math.random(), _y:0}); } //Mouse.hide(); /*this._rotation = -90; this._y = 100;*/ .end .frame 25 .action: gotoAndPlay(1); .end .end