Skip to main content
Inspiring
February 15, 2009
Answered

Loading Title and Description from external XML

  • February 15, 2009
  • 3 replies
  • 604 views
I am creating an Autorun for CD using flash CS4 in which Tilelist will show product image and slider will slide across images. when slided, product Title and Description should be shown. But instead of showing, Text field goes blank and nothing is shown. Here is the code:
This topic has been closed for replies.
Correct answer fredingston
Yeah looks like you have your information stored in the XML-attributes instead of nodes.

Access them via my_xml.product[item].@label

3 replies

248275Author
Inspiring
February 15, 2009
Hey! it worked! thanks!
248275Author
Inspiring
February 15, 2009
what does "@" do? I had seen it in one AS also.
Inspiring
February 15, 2009
Could it be that my_xml.product[0].label is not existent? If the data would be read but empty it should at least return "<label></label>" since you didn't append a "text()".
Could it be that "label" and "infoText" are actually attributes or sth like that?
248275Author
Inspiring
February 15, 2009
SOrry I forget to load XML. Here it is:
fredingstonCorrect answer
Inspiring
February 15, 2009
Yeah looks like you have your information stored in the XML-attributes instead of nodes.

Access them via my_xml.product[item].@label