Tutoriel : Text Space en AS 2
Tutoriel vidéo ( patientez durant le chargement )
Action du clip
Action image 1

Tutoriel vidéo ( patientez durant le chargement )
Action du clip
- Code: Tout sélectionner
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);
//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++;
}
Action image 1
- Code: Tout sélectionner
Stage.scaleMode = "noScale";
Stage.showMenu = false;
//---
m = i = 0;
words = new Array("Graphisme", "Flash", "Photoshop", "PSP", "After-Effect", "Illustrator", "Forum", "Concours", "Assistance", "Ambiance", "Shoot", "Renders", "Tutoriels");
_root.onEnterFrame = function() {
if (i==2){
_root.particle.duplicateMovieClip("particle"+m, m);
part = _root["particle"+m];
part.textbox.text = words[random(words.length)];
m++;
i=0;
}
i++;
};










