hey,
I have a text field inside a movie clip. I load to it from the root with a global variable (_global.textin) the text i need to load. I trace the text and it shows in the trace everything that works fine, but the inside the dynamic field doesn’t change!.
any ideas?
here’s the script for the MC that holds the textfield:
[size=1][/size]
[size=1]Code:[/size]
[font=Courier new]onClipEvent (load){
var txtborder = false;
var txtborderColor = 0x000000;//borderColor;
var txtcolor = 0x712DF0;
var txtbackground = false;
var txtbackgroundColor = 0xFFFFFF;
//set attributes
with (this.textin)
{
textColor = txtcolor;
border = txtborder;
borderColor = txtborderColor;
background = txtbackground;
backgroundColor = txtbackgroundColor;
multiline = true;
wordWrap = false;
autoSize = true;
trace (txtinput);// THIS WORKS FINE
text = txtinput;//THIS DOESN'T
selectable = false;
var txtfmt = new TextFormat();
txtfmt.size = 100;
txtfmt.align = "center";
setTextFormat(txtfmt);
}
}
//PARTIAL SCRIPT FROM MAIN TIMELINE:
var text_arr = new Array(“Painter”,“Impressionist”);
_global.txtinput = text_arr[cur_texteffect];
[/font]