1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42
|
txt = "DROPNROCK SOUND";//Le texte à afficher
ray = 36;//Le rayon du cercle
a = -12 * txt.length / 2 + 6;
col1 = 0;
col2 = 0;
col3 = 0;
for (i=0 ; i<txt.length ; i++) {
duplicateMovieClip("lp","lp"+i,i);
this["lp"+i].tx.text = txt.substr(i,1);
/*
c1 = col1.toString(16);
if (c1.length == 1) {c1 = "0"+c1 }
c2 = col2.toString(16);
if (c2.length == 1) {c2 = "0"+c2 }
c3 = col3.toString(16);
if (c3.length == 1) {c3 = "0"+c3 }
*/
this["lp"+i]._x = 643 + ray * Math.sin (a * Math.PI / 180);
this["lp"+i]._y = 396 - ray * Math.cos (a * Math.PI / 180);
this["lp"+i]._rotation = a;
a += 12;
// col1 += 5;
// col2 += 5;
col3 += 5;
};
this.onEnterFrame = function() {
a = -12 * txt.length / 2 + 6;
for (i=0 ; i<txt.length ; i++) {
this["lp"+i]._x = 643 + ray * Math.sin ((a+b) * Math.PI / 180);
this["lp"+i]._y = 396 - ray * Math.cos ((a+b) * Math.PI / 180);
this["lp"+i]._rotation = a+b;
a += 12;
};
b += 2;
if(b >= 360) {
b = 0;
};
}; |
Partager