Thank you very much. This is indeed what I needed to get it working.

I did not know you can invoke an event like that :)

Again, thanks Karen.

--- In [email protected], "Karen" <[EMAIL PROTECTED]> wrote:
>
> Here are the steps I'm using for something similar:
> 
> In the click event handler for your "edit" button
>    treeReference.editable = true;
> 
>    treeReference.dispatchEvent(new ListEvent(
> ListEvent.ITEM_EDIT_BEGINNING, false, false, 0, indexOfItemToEdit) );
> 
> On your tree set
>    itemEditEnd="editEnd(event)"
>  
> In editEnd
>    treeReference.editable=false;
> 
> 
> --- In [email protected], "nocturnal_world"
> <nocturnal_world@> wrote:
> >
> > Hello, 
> > 
> > I just joined this group hoping to find an answer to this flex project
> > I am working on.
> > 
> > Basically what I need to do is, I have a tree, it has a folder and
> > some items in it. Then I have this button called edit.
> > 
> > What I want to do is, if I select an item on the tree, then I click on
> > the edit button, the selected item on the tree becomes editable.
> > 
> > I know it sounds simple, but I can't do it. I have been trying to
> > solve this on my own even though I have no proper training on flex.
> > 
> > Hope you guys can point me to the right direction. 
> > 
> > Thanks in advance.
> >
>


Reply via email to