i am trying to create news update for my website. what i want is to update the news with a notepad insted of updating it with flash all the time. with this script(below mention) i can call multiple lines one by one but main problem is now what i realize is that i can not break it where i want, i have to write the number of lines what i have mention in the script suppose(a==6) then i have to write the six lines otherwise it blank the screen till it reach to 6. so pl help to get rid of it. is there any other better way to do that…
on first frame…
a=1;
_root.mm.createTextField(“input_txt”, 999, 34, 105, 530, 156);
/* set the text field parameters so that the text field has a border,
word wrap and multiline enabled, and set it to an input text field so users can modify the text. */
var myformat:TextFormat = new TextFormat();
myformat.font = “Eccentric Std”;
myformat.color = 20000090;
// your text code here
_root.mm.input_txt.setTextFormat(myformat);
_root.mm.input_txt.border = false;
_root.mm.input_txt.wordWrap = true;
_root.mm.input_txt.multiline = true;
_root.mm.input_txt.type = “input”;
_root.mm.input_txt.background = 0xFFFFFF;
_root.mm.input_txt.variable = a;
loadVariables(“N.txt”,_root.mm);
on 50 frame
_root.mm.createTextField(“input_txt”, 999, 34, 105, 530, 156);
a=a+1;
_root.mm.input_txt.type = “input”;
_root.mm.input_txt.textColor=0xFF0000;
_root.mm.input_txt.variable = a;
var myformat = setNewTextFormat();
myformat.font = “arial”;
myformat.size = “160”;
_root.mm.input_txt.setNewTextFormat(myformat);
loadVariables(“N.txt”,_root.mm);
if (a==6) {
gotoAndPlay(1);
}