typewriter i movieclip
Er der nogen der har et godt typewriter-actionscript der virker indefra et movieclip .... har en timeline der skal køre uden "tilbage-hop" .... Har brugt dette her men kan ikke få det til at køre (og _root.navnpåmovieclip gør det ikke alene) :Frame 1:
//set our counting-variable to starting point
q = 1;
//declare the text that we are going to use.
text = "This is an example of the actionscript typewriter. It takes less space (kb)\nthan a masked animation, and if you like - you can load text from\ntxtfiles and have them typed out here. The speed depends on your\nmovies framerate. Just remember that there is a limit for how much text\na single variable can hold. Enjoy :o)";
//stop the movie. wait for other commands
stop();
Frame 2:
//the typewriter:
if (q < text.length) {
textbox = text.substring(0, q);
q++
} else {
textbox = text;
gotoAndStop(1);
}
Frame 3:
//loop back
gotoAndPlay(2);
MVH Kalaharikid
