hi people, I am new to flash and xml and I am having this problem, should be simple, but I can not find how to fix it
on my button I have this code
on (release) {
attachMovie(“certo”, “c”, 2);
c._x = tres._x;
c._y = tres._y;
function loadXML(loaded) {
if (loaded) {
_root.premio4 = this.firstChild.childNodes[0];
_root.c.premio_txt.text = _root.premio4;
trace(this);
} else {
trace(“file not loaded!”);
}
}
xmlData = new XML();
xmlData.ignoreWhite = true;
xmlData.onLoad = loadXML;
xmlData.load(“premiacao.xml”);
}
what my text field display is this;
[color=#0000ff]<[/color][color=#990000]ganhou[/color][color=#0000ff]>[/color]Você ganhou uma melancia!!![color=#0000ff]</[/color][color=#990000]ganhou[/color][color=#0000ff]>[/color]
[color=#0000ff]it is the correct info, but the xml tagas are showing too[/color]
[color=#0000ff]my xml is this;[/color]
[color=#0000ff]<?xml version=“1.0” ?>[/color]
[[font=Courier New][color=#ff0000]-[/color][/font]](file:///C:/Documents%20and%20Settings/raul.steler/Desktop/raul/raspadinha/premiacao.xml#) [color=#0000ff]<[/color][color=#990000]premios[/color][color=#0000ff]>[/color]
[color=#0000ff]<[/color][color=#990000]ganhou[/color][color=#0000ff]>[/color]Você ganhou uma bola!!![color=#0000ff]</[/color][color=#990000]ganhou[/color][color=#0000ff]>[/color]
[color=#0000ff]<[/color][color=#990000]ganhou[/color][color=#0000ff]>[/color]Você ganhou uma laranja!!![color=#0000ff]</[/color][color=#990000]ganhou[/color][color=#0000ff]>[/color]
[color=#0000ff]<[/color][color=#990000]ganhou[/color][color=#0000ff]>[/color]Você não ganhou nada!!![color=#0000ff]</[/color][color=#990000]ganhou[/color][color=#0000ff]>[/color]
[color=#0000ff]<[/color][color=#990000]ganhou[/color][color=#0000ff]>[/color]Você ganhou uma melancia!!![color=#0000ff]</[/color][color=#990000]ganhou[/color][color=#0000ff]>[/color]
[color=#0000ff]</[/color][color=#990000]premios[/color][color=#0000ff]>[/color]
[color=#0000ff]anyone could help me out with this??[/color]
[color=#0000ff]thanks[/color]