I just checked my own message and realised that the Yahoo technique to
hide email addresses has removed some of my code as I was using the at
symbol. In Flex the at symbol is used to denote attribute in XML. My
code should look like this:

Note my use of (at) is the at symbol
  private function treeNodeOpen(event:TreeEvent):void {
    openedNode = event.item;
    if (openedNode.name().toString() == "brand") {
      if (openedNode.(at)fetchDone=="false") {
        openedNode = openedNode.setChildren(productFragment);
        openedNode.(at)fetchDone="true"
        myTree.dataProvider = productData;
      }
    }
  }


  public function productsData(event:ResultEvent) : void {
    productData = XML(event.result);
    for each (var prop:XML in productData.category) {
      for each (var propX:XML in prop.group) {
        for each (var propY:XML in propX.brand) {
          propY.(at)isBranch = "true";
          propY.(at)fetchDone="false"
        }
      }
    }
  }

Andrew





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com




SPONSORED LINKS
Web site design development Computer software development Software design and development
Macromedia flex Software development best practice


YAHOO! GROUPS LINKS




Reply via email to