After setting dataProvider on the tree, I'm getting

"Error #2044: Unhandled ErrorEvent:. text=Error #2095: flash.net.LocalConnection was unable to invoke callback 'setTree' due to exception 'RangeError: Index '0' specified is out of bounds.'."

My code is this:

t.selectedIndex = 0;
t.expandChildrenOf(tree.selectedItem,true);

I've also tried:
var node:DisplayObject = tree.getChildAt(0);
if (!tree.isItemOpen(node))
              t.expandItem (node,true, false,false,null);

The error is thrown, BUT the tree does expand.  What am I doing wrong?  I had thought maybe it was timing, but I tried having it wait before calling that and still the same error exists.

Any ideas?

--
John Grden - Blitz

--
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