View Full Version : [FMX] typewriter with action script


Sphere
08-25-2003, 03:51 AM
no links

1. use the text tool to make a dynamic text box with multiline, and as variable "textbox"
no links

now insert a keyframe @ frame 2 and 3

2. insert actionscript in the frames

- copy and past this in frame 1:

q = 1;
text = "this is where you put your text";


use "\n" to start a new line

- copy and past in frame 2 :

if (q < text.length) {
textbox = text.substring(0, q);
q++
} else {
textbox = text;
gotoAndStop(1);
}



- copy and past in frame 3:

gotoAndPlay(2);



thats all export it and have fun :)