intercorni
Erfahrenes Mitglied
Hallo,
ich erzeuge ein leeres dynamisches Textfeld:
Und das versuche ich dann per function-Aufruf zu füllen, was jedoch nicht funktioniert:
Warum geht das nicht bzw. was mache ich hier falsch?
Danke,
Cornel
ich erzeuge ein leeres dynamisches Textfeld:
PHP:
//textfeld erzeugen
var my_fmt:TextFormat = new TextFormat();
my_fmt.font = "Polo22K";
my_fmt.size = 80;
my_fmt.color = 0xFFFFFF;
my_fmt.align = "center";
this.createTextField("my_txt", this.getNextHighestDepth(), 40, 300, 700, 160);
my_txt.autoSize = "center";
my_txt.multiline = true;
my_txt.align = "center";
my_txt.wordWrap = true;
my_txt.border = false;
my_txt.embedFonts = true;
my_txt.text = "";
my_txt.setTextFormat(my_fmt);
my_txt._alpha = 100;
PHP:
//textdefinition01
function textdefinition01() {
my_txt._alpha = "100"
my_txt.text = "neuer Text";
my_txt.setTextFormat(my_fmt);
}
textdefinition01()
Danke,
Cornel