I've got a bit further with this and have got my dataDescriptor class
working ok now.

 

To load new data when I expand a branch on the tree I need to throw am
ItemPendingError which the Tree component will catch. I am unsure how to do
this however.

 

This code:

 

        public function getChildren(node:Object,
model:Object=null):ICollectionView

        {

            if(node.catsLoaded == -1){

                        return new ArrayCollection(node.children);

                    } else {

                        throw new ItemPendingError("data pending");

                    }

        }

 

Simply halts the application and I get lots of red text in the output
window. It doesn't seem to get caught by the tree, which should add some
item responders.

 

How can I throw the error at the Tree if you se what I mean.

 

Thanks, I hope someone can help with this.

 

 

Giles Roadnight 

Reply via email to