[font=verdana, arial, helvetica][size=2]Hi,
I am using this code (within one frame) for a typewriter effect. [indent]
TextField.prototype.typeWriter = function(str, ms) {
var me = this;
var i = 0;
var itv = setInterval(function () {
me.text = str.substring(0, i);
i+=2;
if (i>str.length) {
clearInterval(itv);
}
updateAfterEvent();
}, ms);
};
mystring = “text”;
txt.typeWriter(mystring, 20);
[/indent]Which code should I add to go to another frame when the text is completed?
Thanks!
Jerryj[/size][/font]