Multiple text

I have this script which inputs text on the click of a button but when u click it again it doesnt put another text in why not. What do i need to change in my code thankyou:

on (release) {
if (font == “”) {
_root.extras.textpopup._visible = true ;
} else if (font == “Arial”) {
tellTarget ("_root.extras."+[“textmovie”+count]){
gotoAndStop(1);
dtext.text = _global.text;
dtext.border = false;
dtext.background = false;
dtext.backgroundColor = 0xFFFFFF;
dtext.borderColor = 0x000000;
dtext.multiline = false;
dtext.wordWrap = false;
dtext.autoSize = “Left”;
dtext.autoSize = “Right”;
}
} else if (font == “Times”) {
tellTarget ("_root.extras."+[“textmovie”+count]){
gotoAndStop(2);
dtext.text = _global.text;
dtext.border = false;
dtext.background = false;
dtext.backgroundColor = 0xFFFFFF;
dtext.borderColor = 0x000000;
dtext.multiline = false;
dtext.wordWrap = false;
dtext.autoSize = “Left”;
dtext.autoSize = “Right”;
}
} else if (font == “Brush”) {
tellTarget ("_root.extras."+[“textmovie”+count]){
gotoAndStop(3);
dtext.text = _global.text;
dtext.border = false;
dtext.background = false;
dtext.backgroundColor = 0xFFFFFF;
dtext.borderColor = 0x000000;
dtext.multiline = false;
dtext.wordWrap = false;
dtext.autoSize = “Left”;
dtext.autoSize = “Right”;
}
} else if (font == “Comic Sans”) {
tellTarget ("_root.extras."+[“textmovie”+count]){
gotoAndStop(4);
dtext.text = _global.text;
dtext.border = false;
dtext.background = false;
dtext.backgroundColor = 0xFFFFFF;
dtext.borderColor = 0x000000;
dtext.multiline = false;
dtext.wordWrap = false;
dtext.autoSize = “Left”;
dtext.autoSize = “Right”;
}
}
//}
}

are you updating _global.text everytime you hit the button??
better if you post ur fla

Ok here is my swf file that ive created, it all works fine until when you click the submit button, its ment to create another one but it replaces the old one instead.
http://img100.imageshack.us/my.php?image=text6yk.swf

In case you want to append the new text with the old one
do this.

dtext.text +=newline+ _global.text;

Where do i add this to in my script, sorry im a tad slow…

You need to replace

dtext.text= _global.text;

in your code by

dtext.text +=newline+ _global.text;
:s:

This still does not work i replaced all of the dtext.text = _global.text; to the new dtext.text +=newline+ _global.text; and it still just replaces the old text. Im not quiet sure why this isnt working …

This is pretty basic, but should point you in the right direction =)

Thanks alot !! Ill try these out :smirk: