Adderal
12-22-2001, 06:03 AM
Hi I tried that animating text with action script, I was wondering if there is a way to make more than 1 on the same scene without it giving me the error WARNING: Duplicate label, Scene=Scene 1, Layer=Layer 15, Frame=20, Label=end I wanted to have it say
MAD IMAGES then dissapera like it does then reapear on another x y cordinate then another and anotehr so it would give the vanishing feather affect. But for some reason i can't duplicate and change the scriptor use more than 1 scene or it messes it up. Any Idea with the script???
------------------------------------------------------------
text = "MAD IMAGES";
startx = 165;
starty = 45;
setProperty ("/ani", _visible, false);
length = length(text);
linelength = 50;
kerning = 12;
charinline = 0;
linenumber = 1;
linespace = 10;
i = 1;
x = 1;
lettercount = 1;
-------------------------------------------------------------
charinline = Number(charinline)+1;
if (Number(charinline)>=Number(linelength)) {
prevent = substring(text, i-1, 1);
if (prevent eq " ") {
linenumber = Number(linenumber)+1;
charinline = 1;
}
}
duplicateMovieClip ("/ani", "ani" add i, i);
setProperty ("ani" add i, _x, Number(startx)+Number(charinline*kerning));
setProperty ("ani" add i, _y, Number(starty)+Number(linenumber*linespace));
set ("/ani" add i add "/letters:letters", substring(text, i, 1));
i = Number(i)+1;
-----------------------------------------------------
if (Number(x)<=Number(length)) {
tellTarget ("ani" add x) {
gotoAndPlay ("end");
}
x = Number(x)+1;
}
-------------------------------------------------
gotoAndPlay (_currentframe-1);
MAD IMAGES then dissapera like it does then reapear on another x y cordinate then another and anotehr so it would give the vanishing feather affect. But for some reason i can't duplicate and change the scriptor use more than 1 scene or it messes it up. Any Idea with the script???
------------------------------------------------------------
text = "MAD IMAGES";
startx = 165;
starty = 45;
setProperty ("/ani", _visible, false);
length = length(text);
linelength = 50;
kerning = 12;
charinline = 0;
linenumber = 1;
linespace = 10;
i = 1;
x = 1;
lettercount = 1;
-------------------------------------------------------------
charinline = Number(charinline)+1;
if (Number(charinline)>=Number(linelength)) {
prevent = substring(text, i-1, 1);
if (prevent eq " ") {
linenumber = Number(linenumber)+1;
charinline = 1;
}
}
duplicateMovieClip ("/ani", "ani" add i, i);
setProperty ("ani" add i, _x, Number(startx)+Number(charinline*kerning));
setProperty ("ani" add i, _y, Number(starty)+Number(linenumber*linespace));
set ("/ani" add i add "/letters:letters", substring(text, i, 1));
i = Number(i)+1;
-----------------------------------------------------
if (Number(x)<=Number(length)) {
tellTarget ("ani" add x) {
gotoAndPlay ("end");
}
x = Number(x)+1;
}
-------------------------------------------------
gotoAndPlay (_currentframe-1);