I’m trying to get a conditional attribute list and keep getting this error
ReferenceError: Error #1065: Variable @title is not defined.
tried examples…
trace("1 - "+myXML.video.@title);
trace("2 - "+myXML.video.(@title == “foo”));
trace("3 - "+myXML.video.@title.name);
trace("4 - "+myXML.video.(@title == “foo”).name);
1 - gives me the list (as string) of all video titles
2 - gives me the error
3 - gives me an empty response, shouldn’t this be the name tag value?
I also tried @title[0] to try and get the first “foo” listed
4 - gives me the error
The reference is from a tutorial here…
http://www.kirupa.com/developer/flashcs3/using_xml_as3_pg6.htm
using Flash CS4 and actionscript 3
I’m not sure what i’m doing wrong here