Be a Supporter!

writing text

  • 291 Views
  • 2 Replies
New Topic Respond to this Topic
doondeka
doondeka
  • Member since: Mar. 25, 2007
  • Offline.
Forum Stats
Member
Level 20
Blank Slate
writing text 2010-02-14 23:25:25 Reply

Ok I so I have a problemm, Whenever I try this code in AS2.0 it does not work, all that cokmes up in trace() or a dynamic text box is undefined.
this si what I'v been doing

fail = "sdwdsfsdfsdfs;
textt = "";
i =0;
function onEnterFrame(){
if(i<fail.length){
i++;
textt += fail[i];}}

if you can help, please comment or Pm me!

ZuluCS
ZuluCS
  • Member since: Mar. 15, 2006
  • Offline.
Forum Stats
Member
Level 12
Blank Slate
Response to writing text 2010-02-15 00:27:29 Reply

I think you might have the wrong forum for this.. but anyway:

txt_array = "cheese".split("");
text_box = "";
i = 0;
function onEnterFrame() {
if (i<txt_array.length) {
text_box += txt_array[i];
i++;
}
}

You didn't create an array for the letters of the string. Make sure you have a text box with the variable set to "text_box" or something.

doondeka
doondeka
  • Member since: Mar. 25, 2007
  • Offline.
Forum Stats
Member
Level 20
Blank Slate
Response to writing text 2010-02-15 17:46:38 Reply

thanks man, I would put in programming, but its for anything but actionscript!