writing text
- doondeka
-
doondeka
- Member since: Mar. 25, 2007
- Offline.
-
- Forum Stats
- Member
- Level 20
- Blank Slate
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
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
thanks man, I would put in programming, but its for anything but actionscript!

