brwnsuga21
Technical User
I am trying to use a ranomizer effect in Flash CS 3 using the following code:
desiredText = "Destination: WLS";
dt.text = "";
function randomizer() {
(i<desiredText.length) ? go() : clr();
function go() {
if (dt.text.charAt(i) != desiredText.charAt(i)) {
j++;
dt.replaceText(i, i+1, String.fromCharCode(j));
} else {
i++;
j = 0;
}
}
function clr() }{
clearInterval(intID)
}
intID = setInterval (randomize,10);
When I test the movie I recieve the error message "1126: Function does not have a body.". Since I am new to this I cant seem to figure out what I am doing wrong. Please help.
desiredText = "Destination: WLS";
dt.text = "";
function randomizer() {
(i<desiredText.length) ? go() : clr();
function go() {
if (dt.text.charAt(i) != desiredText.charAt(i)) {
j++;
dt.replaceText(i, i+1, String.fromCharCode(j));
} else {
i++;
j = 0;
}
}
function clr() }{
clearInterval(intID)
}
intID = setInterval (randomize,10);
When I test the movie I recieve the error message "1126: Function does not have a body.". Since I am new to this I cant seem to figure out what I am doing wrong. Please help.