# tyepwriter\_mc and classic tween

**URL:** <https://forum.kirupa.com/t/tyepwriter-mc-and-classic-tween/330110>\
**Category:** flash\
**Created:** [December 2, 2012, 3:11am UTC](https://forum.kirupa.com/t/tyepwriter-mc-and-classic-tween/330110 "2012-12-02T03:11:45Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![tHeNeWgUy](https://avatars.discourse-cdn.com/v4/letter/t/c77e96/32.png) [@tHeNeWgUy](https://forum.kirupa.com/u/tHeNeWgUy)\
**Post date:** [December 2, 2012, 3:11am UTC](https://forum.kirupa.com/t/tyepwriter-mc-and-classic-tween/330110/1 "2012-12-02T03:11:45Z")

</div>

Hi there,

I’m trying to create a fade effect to a mc but i stuck. I converted a tet box to a mc and have a typewriter effect. So when it plays it doesnt stop. So i added a stop command but now it stops before the typewriter effect fades away. When the typewriter effect ends i like it to fade so another writing can come up. I dont know how to manage the 2.nd mc to play when the first one is finished. Please help… Thank you in advance…  
Here is the as i have sofar…

var str:String = ‘Herzlich Willkommen Bei’;  
var i:uint = 0;  
var timer:Timer = new Timer(80);  
timer.start();  
timer.addEventListener(TimerEvent.TIMER,gotime);

function gotime(e:TimerEvent){  
textbox\_txt.appendText(str.charAt (i) );  
i++;  
if(i\>=str.length) {  
timer.stop();  
MovieClip(parent).play();  
stop();  
}  
}
