RPG-esque dialogue

How would I go about doing it? I have this
(speach is the variable for the text box)


speach = "Hello there traveler, have you come to save us?"
speach.length = 0;
onEnterFrame = function(){
speach.length++
}

but it doesn’t work. Any help?