Okay. I’m creating a News Scroller for my schools Intranet…
I created a VB program to open the XML file, edit it, and save it back on the server for easy editing.
Now… In flash…
I can load the XML file.
Extract the Attributes of the nodes…
And post that into a text box… But when I try to create links I get
the output (to the text box) of:
<a href=“http://urlhere.com/news/today.html#1”>Harrison Hall, Renovation Complete</a>
Instead of the actual link…
My AS looks like this.
[AS]
for(var i=0; i < newsItem.length; i++){
trace(“forloop position " + i);
item* = “<a href=”” + newsItem*.attributes.URL + “”>" + newsItem*.attributes.Subject + “</a>”
content_txt.text = content_txt.text + item* + "
";
trace(item*);
}
[/AS]
In other words item* = “anchor tag” + xmlitem + “end anchor tag” + xmlitem + “close anchor tag”
The trace functions were from an earlier bug I had: not being able to view the XML file’s contents… I haven’t removed them yet.
My question is… Am I going about this in the wrong way? Could anyone help me fix my code? It’s very frustrating… The information I got on AS’ing links in dynamic text boxes was helpful… but it didn’t get the job done.
Encode text as HTML is enabled in my dynamic textbox instanced as “content_txt”.
-Kedaeus-