See labelFunction. -TH
--- In flexcoders@yahoogroups.com, "timgerr" <tgallag...@...> wrote: > > Hello all, I am having some troubles with the tree control and an array collection. I have this tree and the data provider is pointing to an array collection. This is working great, I now have to create a label function for the labelField. So this is what I did: > > public function TreeNodeLabel(obj:Object):String > { > return obj.name; > } > > Here is my MXML code: > <mx:Tree x="510" y="271" dataProvider="{this._ac}" labelField="{this.TreeNodeLabel()}"></mx:Tree> > > What am I supposed to use as the argument in the mxml code for the this.TreeNodeLabel() ????? > > > Thanks, > timgerr >