[Sorry for the inaccurate post title!]

Hi list...

The second line returns an XMLList only if the first line (bug) isn't commented 
out.  If the first line is commented out, the second line returns null. 
How can it be possible that the second line's result depends on the first line 
running?

Thanks,
- Michael M.

var bug:XMLList = topic..asset.(hasOwnProperty("@title"));
var xmlList:XMLList = topic.descendants("*").(hasOwnProperty("@title") && 
(@title == "Presentation"));

<topic title="my topic">
<menu>
  <section type="pubs">
    <asset id="i" type="doc" fileName="doc.pdf"/></section>
  <section type="media">
    <asset id="a" title="Presentation" fileName="pres.pptx"/>
    <asset id="b" title="animation" fileName="flash.swf"/>
  <section type="info">
    <asset id="c" title="questions"/>
    <asset id="d" title="something"/>
</section>
 </menu>
</topic>

_______________________________________________
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to