aiuto esperti...![]()
volevo utilizzare una animazione di testo carina ma non riesco a rimuoverla nel frame successivo..qualche consiglio ???
questo è lo script che non riesco a bloccare
function genWord() {
// calculate grid resolution based on letter space
var gridrez=900/_global.letterSpacing;
// choose beginning screen position of word
var tx=random(Math.ceil(gridrez))*_global.letterSpacin g + gridrez/2;
var ty=random(Math.ceil(gridrez*.6183))*_global.letter Spacing + gridrez/2;
// makeAutoFixingWord(the word, x position, y position, resolution time, dissolution time)
makeAutoFixingWord(wordlist[random(wordlist.length)],tx,ty, 40,40);
}
// lay down an auto-fixing word at the coordinates specified
function makeAutoFixingWord(daword, x, y, resolve, dissolve) {
// kern tracks the current letter position
var kern=0;
// for each letter in the word
// create a new ltr movieclip
for (n=0;n<daword.length;n++) {
neo="oneletter"+String(depth++);
this.attachMovie("ltr",neo,depth);
// position movieclip
this[neo]._x=x + kern;
this[neo]._y=y;
// assign 'real' character for movieclip
this[neo].realch=daword.substr(n,1);
this[neo].ch=daword.substr(n,1);
// set timer
this[neo].resolve=random(resolve);
this[neo].dissolve=resolve+dissolve+random(dissolve*2);
// increment the kern for the next letter
kern+=_global.letterSpacing;
}
// return the screen position of the last letter
return (x+kern);
}
// make float in auto-fixing word
function makeFloatingWord(daword, x, y) {
var offset=100;
var kern=0;
oldneo=null;
for (n=0;n<daword.length;n++) {
neo="ltrclone"+String(depth++);
this.attachMovie("ltrfloat",neo,depth);
// position movieclip
this[neo].x=x+kern;
this[neo].y=y;
this[neo]._x=x+kern+random(offset)-offset/2;
this[neo]._y=y+random(offset)-offset/2;
this[neo]._alpha=0;
// assign 'real' character for movieclip
this[neo].ch=daword.substr(n,1);
// increment the kern for the next letter
bounds = new Object();
bounds=this[neo].getBounds();
kern+=(bounds.xMax-bounds.xMin)*.8;
}
}