Ok, someone please tell me what is wrong with this code. I'm trying to change the alpha property of a text field and it won't work. I've done it with movie clips just fine. Here's the code:
function acctAppear() {
if (loopnum == 1) {
acct_txt._alpha = 1;
acct_txt._visible = true;
sandy_txt._alpha = 1;
sandy_txt._visible = true;
sandy_email._alpha = 1;
sandy_email._visible = true;
} else if (loopnum < 100) {
acct_txt._alpha += 1;
sandy_txt._alpha += 1;
sandy_email._alpha += 1;
} else {
acct_txt._visible = true;
sandy_txt._visible = true;
sandy_email._visible = true;
myStyle = new TextFormat();
myStyle.url = "mailto:sandy@nmankatocpa.com";
sandy_email.setTextFormat(myStyle);
}
loopnum++;
}
acct = setInterval(acctAppear,1000);
The text fields are dynamic of coarse and are set as either multiline with no wrap or single line.
I know that I can do this easily enough with the timeline, but I'm trying to familiarize myself with actionscript and do it without the timeline. The Flash help says that the alpha property of a textfield can be accessed and changed, but I can't get it to work.
Any help would be greatly appreciated!!!! Thanks.
Cole![Wink ;) ;)](data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7)
function acctAppear() {
if (loopnum == 1) {
acct_txt._alpha = 1;
acct_txt._visible = true;
sandy_txt._alpha = 1;
sandy_txt._visible = true;
sandy_email._alpha = 1;
sandy_email._visible = true;
} else if (loopnum < 100) {
acct_txt._alpha += 1;
sandy_txt._alpha += 1;
sandy_email._alpha += 1;
} else {
acct_txt._visible = true;
sandy_txt._visible = true;
sandy_email._visible = true;
myStyle = new TextFormat();
myStyle.url = "mailto:sandy@nmankatocpa.com";
sandy_email.setTextFormat(myStyle);
}
loopnum++;
}
acct = setInterval(acctAppear,1000);
The text fields are dynamic of coarse and are set as either multiline with no wrap or single line.
I know that I can do this easily enough with the timeline, but I'm trying to familiarize myself with actionscript and do it without the timeline. The Flash help says that the alpha property of a textfield can be accessed and changed, but I can't get it to work.
Any help would be greatly appreciated!!!! Thanks.
Cole