# Problem with typewriter effect

**URL:** <https://forum.kirupa.com/t/problem-with-typewriter-effect/116419>\
**Category:** Uncategorized\
**Created:** [July 17, 2004, 10:21pm UTC](https://forum.kirupa.com/t/problem-with-typewriter-effect/116419 "2004-07-17T22:21:00Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![bigbadmilkman](https://avatars.discourse-cdn.com/v4/letter/b/9fc348/32.png) [@bigbadmilkman](https://forum.kirupa.com/u/bigbadmilkman)\
**Post date:** [July 17, 2004, 10:21pm UTC](https://forum.kirupa.com/t/problem-with-typewriter-effect/116419/1 "2004-07-17T22:21:00Z")

</div>

I am trying to do the normal typwriter effect, I have created a text box and given it the instance name ‘text’ and on another layer I have the actionscript,

myText = “”;  
this.onEnterFrame = function() {  
text.text = myText.substr(0, type);  
type += 2;  
myText = “Welcome to Endorsements, this section provides details about the organisations that back 21st Century Sports Ltd and their products, please use the buttons to the side to find out more.”;  
};

I’ve run the movie, but it just doesn’t display anything, why is this happening, i definately know this code works because i have it on another file.

The fla has been attached.
