# Problem with typewriter effect

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

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [July 17, 2004, 11:38pm UTC](https://forum.kirupa.com/t/problem-with-typewriter-effect/57927/2 "2004-07-17T23:38:07Z")

</div>

u posted in the wrong forum - its an FMX2004 file yes? either that or ive sumhow poggered my FMX!  
just checking is the instance name of this dynamic textfield set to _text_? coz i copied and pasted the code into a new document and works fine… thik u musta forgotten to put the instance name on it 😉

Prophet.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [July 18, 2004, 1:13am UTC](https://forum.kirupa.com/t/problem-with-typewriter-effect/57927/3 "2004-07-18T01:13:30Z")

</div>

I’ve put the instance name on the textfield and it is set to dynamic, still won’t work.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [July 18, 2004, 5:26am UTC](https://forum.kirupa.com/t/problem-with-typewriter-effect/57927/4 "2004-07-18T05:26:47Z")

</div>

have you given your text box an instance name of “text”, not “myText”…i tested that…it definitely works…but you should use some other name…like ‘typeText’ or what ever, because text is part of the AS santax…

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [July 18, 2004, 10:36am UTC](https://forum.kirupa.com/t/problem-with-typewriter-effect/57927/5 "2004-07-18T10:36:58Z")

</div>

yer, what he said 😉

Prophet.

PS if you still cant get it to work then try starting a new file and doing what i did and try to integrate it again… :S

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [July 18, 2004, 3:35pm UTC](https://forum.kirupa.com/t/problem-with-typewriter-effect/57927/6 "2004-07-18T15:35:38Z")

</div>

Thanks, its strange i did it again and this time it worked, thanks for the help, i’ve put another thread on, its about making stuff disappear its in the MX2004 forum, i’m desperate for help.

Thanks again
