titi82
Nombre de messages : 96 Age : 47 Niveau graphique : aprentie +1 Date d'inscription : 24/10/2008
| Sujet: explosion de mots Jeu 11 Déc - 19:41 | |
| - Code:
-
Actionscript 1
onClipEvent (load) { m = 0; xtrajectory = Math.random()*10-Math.random()*10; ytrajectory = Math.random()*10-Math.random()*10; particlelife = random(50); _x = 275; _y = 200; _alpha = 0; size = 100; //Pcolor = new Color(this); http://Pcolor.setRGB(Math.round(Math.random()*0x0011FF)) } onClipEvent (enterFrame) { _x += xtrajectory; _y += ytrajectory; _width += .03; _height += .03; // Pcolor.setRGB(Math.round(Math.random()*0x0011FF)) // _root.particle.duplicateMovieClip("particle"+m, m); if (m>=10 && m<=50) { _alpha += 3; } if (m>=70) { _alpha -= 3; if (_alpha<=0) { this.removeMovieClip(); } } if (_x-_width/2>Stage.width || _x+_width/2<0 || _y-_height/2>Stage.height || _y+_height/2<0) { this.removeMovieClip(); } m++; size++; }
Actionscript 2
Stage.scaleMode = "noScale"; Stage.showMenu = false; //--- m = i = 0;
words = new Array("tuto", "pour", "faire", "une", "explosion", "de", "mots", "proposé", "by", "titi", "82");
_root.onEnterFrame = function() { if (i==2){ _root.particle.duplicateMovieClip("particle"+m, m); part = _root["particle"+m]; part.textbox.text = words[random(words.length)]; | |
|