Loading XML to a Dynamic Text Field
0 Comments Published by David Kingsnorth on Tuesday, September 23, 2008 at 12:19 PM.The XML was simple for the information I needed to store. Literally took about 10 minutes to learn the basics but I'll post a reminder of the structure here in case I forget.
XML works in a 'tree-like' system with nodes, child nodes. For instance ITEM is a child of NEWS_LIST and DATE is a child of ITEM. Any information within the nodes tags are attributes.
I found the AS pretty complicated. I've spent a while reading through the code line by line and it makes sense to me now. I have created a sample FLA where I have loaded the specific items I want into individual text fields.
This will work fine for my application this time since I know what XML items I'm targeting but with a more dynamic application that lets the user determine the number of tabs themself, by creating or deleting nodes within the XML file I would need to use more complex AS with a loop that checks through all the relavent XML items.
Thats enough computer spil for one day, screen shots tommorow and a working version when I get my wordpress blog sorted.
Labels: ActionScript, XML
0 Responses to “Loading XML to a Dynamic Text Field”
Post a Comment