Re: [flexcoders] Flex 3 Tree - Moving Nodes

2009-03-11 Thread Romuald Quantin
That tree is just working very well, thanks again Yves. Romu Yves Riel wrote: I have done something similar lately except for the spring loaded opening mechanism. The problem that I saw with Alex Harui's approach was that you had to turn a leaf into a branch before being able to drop a

Re: [flexcoders] Flex 3 Tree - Moving Nodes

2009-03-11 Thread Howard Fore
How are you detecting if it is over the top or bottom portion of a node? -- Howard Fore, howard.f...@hofo.com The universe tends toward maximum irony. Don't push it. - Jeff Atwood On Tue, Mar 10, 2009 at 8:30 AM, Yves Riel r...@cae.com wrote: What I finally did was to overload some tree

Re: [flexcoders] Flex 3 Tree - Moving Nodes

2009-03-11 Thread Howard Fore
Ah, didn't see the code attachment... -- Howard Fore, howard.f...@hofo.com The universe tends toward maximum irony. Don't push it. - Jeff Atwood On Wed, Mar 11, 2009 at 7:16 AM, Howard Fore howard.f...@hofo.com wrote: How are you detecting if it is over the top or bottom portion of a node?

RE: [flexcoders] Flex 3 Tree - Moving Nodes

2009-03-11 Thread Yves Riel
You're welcome Romu. It's not the first time people are looking for a better tree component. Maybe it would be worth while to create a new tree component in FlexLib. We could start with the basic functionality that I added. Yves

Re: [flexcoders] Flex 3 Tree - Moving Nodes

2009-03-11 Thread Alan Rother
Ok.. I'm going to confess.. Being a total newbie... I'm not sure if I am implementing this AS file correctly. I added the file to a folder under my project root and then imported it as such import TreeEx.TreeEx; Now, since it's imported and overriding several protected methods, it should just

RE: [flexcoders] Flex 3 Tree - Moving Nodes

2009-03-11 Thread Tracy Spratt
Subject: Re: [flexcoders] Flex 3 Tree - Moving Nodes Ok.. I'm going to confess.. Being a total newbie... I'm not sure if I am implementing this AS file correctly. I added the file to a folder under my project root and then imported it as such import TreeEx.TreeEx; Now, since it's

Re: [flexcoders] Flex 3 Tree - Moving Nodes

2009-03-11 Thread Alan Rother
BINGO! Thank you everyone! =] -- Alan Rother Adobe Certified Advanced ColdFusion MX 7 Developer Manager, Phoenix Cold Fusion User Group, AZCFUG.org

Re: [flexcoders] Flex 3 Tree - Moving Nodes

2009-03-10 Thread Romuald Quantin
%40yahoogroups.com] On Behalf Of Alan Rother Sent: 09 March 2009 23:01 To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com Subject: Re: [flexcoders] Flex 3 Tree - Moving Nodes Thanks Jim, Thats not exactly what I was looking for, but it's a great example of how to use some

RE: [flexcoders] Flex 3 Tree - Moving Nodes

2009-03-10 Thread Yves Riel
I have done something similar lately except for the spring loaded opening mechanism. The problem that I saw with Alex Harui's approach was that you had to turn a leaf into a branch before being able to drop a node on it. That impacts the icons that represent the nodes and I still wanted a leaf

Re: [flexcoders] Flex 3 Tree - Moving Nodes

2009-03-10 Thread Romuald Quantin
Thanks a lot, Flash (Flex) community is amazing :) I'll try that! Romu Yves Riel wrote: I have done something similar lately except for the spring loaded opening mechanism. The problem that I saw with Alex Harui's approach was that you had to turn a leaf into a branch before being able

[flexcoders] Flex 3 Tree - Moving Nodes

2009-03-09 Thread Alan Rother
Hey All, I am trying to build a Flex based tree for our content management system here at work. It needs to represent all of the pages on a given site. I already have a good working prototype using XML as the dataprovider and i have a good chunk of the drag and drop functions working well. The

Re: [flexcoders] Flex 3 Tree - Moving Nodes

2009-03-09 Thread Howard Fore
I just implemented the same thing. What I did was have data in the XML elements that differentiated what kind of node they were (topic and article in my case) and that told me the parent topic of the selected node (using parent topic id of 0 for a top level topic). This way you can compare data

Re: [flexcoders] Flex 3 Tree - Moving Nodes

2009-03-09 Thread Alan Rother
Yeah, I tried something similar, but since all of my nodes are essentially the same (all pages) and can all be a parent or a child (leaf or branch as it were) but the problem I'm running into is how do I discriminate between intent, in other words how do I know if the user wanted to move the page

RE: [flexcoders] Flex 3 Tree - Moving Nodes

2009-03-09 Thread Alex Harui
@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Alan Rother Sent: Monday, March 09, 2009 12:34 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Flex 3 Tree - Moving Nodes Hey All, I am trying to build a Flex based tree for our content management system here at work. It needs

Re: [flexcoders] Flex 3 Tree - Moving Nodes

2009-03-09 Thread Alan Rother
, March 09, 2009 12:34 PM *To:* flexcoders@yahoogroups.com *Subject:* [flexcoders] Flex 3 Tree - Moving Nodes Hey All, I am trying to build a Flex based tree for our content management system here at work. It needs to represent all of the pages on a given site. I already have a good working

Re: [flexcoders] Flex 3 Tree - Moving Nodes

2009-03-09 Thread Martyn Bowis
You could consider using a combination of a key input and being over a certain node as to how you interact with it. ie: if the CTRL key is down, then treat the node as a folder and drop the page you are dragging as a child, otherwise drop the page you are dragging as a sibling. Cheers,

Re: [flexcoders] Flex 3 Tree - Moving Nodes

2009-03-09 Thread Martyn Bowis
Another alternative is to have the node you are dragging over open after two seconds and display a placeholder child. If you want to make it a sibling, that will be your first option before the node has time to open. If you want it to be a child, wait a couple of seconds whilst the node opens

RE: [flexcoders] Flex 3 Tree - Moving Nodes

2009-03-09 Thread Jim Hayes
To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Flex 3 Tree - Moving Nodes Good to know Alex, I'm still a little (ok, a lot) green can you point me at a good tutorial / example to start from? =] On Mon, Mar 9, 2009 at 2:48 PM, Alex Harui aha...@adobe.com mailto:aha...@adobe.com wrote: There might

Re: [flexcoders] Flex 3 Tree - Moving Nodes

2009-03-09 Thread Alan Rother
Thanks Jim, Thats not exactly what I was looking for, but it's a great example of how to use some of the Tree components, which I've been struggling with... =] -- Alan Rother Adobe Certified Advanced ColdFusion MX 7 Developer Manager, Phoenix Cold Fusion User Group, AZCFUG.org

RE: [flexcoders] Flex 3 Tree - Moving Nodes

2009-03-09 Thread Jim Hayes
! -Original Message- From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Alan Rother Sent: 09 March 2009 23:01 To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Flex 3 Tree - Moving Nodes Thanks Jim, Thats not exactly what I was looking for, but it's

RE: [flexcoders] Flex 3 Tree - Moving Nodes

2009-03-09 Thread Tracy Spratt
...@yahoogroups.com] On Behalf Of Jim Hayes Sent: Monday, March 09, 2009 7:17 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Flex 3 Tree - Moving Nodes I had thought that I'd used the code there to allow users to drag/drop reorder and move tree nodes, but it was quite a long while ago so I

Re: [flexcoders] Flex 3 Tree - Moving Nodes

2009-03-09 Thread Sam Lai
Message- From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Alan Rother Sent: 09 March 2009 23:01 To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Flex 3 Tree - Moving Nodes Thanks Jim, Thats not exactly what I was looking for, but it's a great example