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 node on it. That impacts the icons that represent the 
 nodes and I still wanted a leaf node to be represented with a leaf 
 icon up to the point where it contains children. If all your nodes 
 (leaf or branch) have the same icon, then you could make all the nodes 
 branches through a custom ITreeDataDescriptor. You'll have to live 
 with having the small arrow to the left on every node.
  
 What I finally did was to overload some tree methods. If the drag  
 drop is over the bottom half portion of a node, I highlight it and 
 rewrite the parent and rowIndex properties of the _dropData property. 
 That works well. You could extend the logic to open up the folder 
 after the drop and add a spring loaded opening mechanism.
  
 I'm attaching some code but I had to clean it up to remove proprietary 
 information. Not sure if it still compiles but that's a starting point :-)
  
 Hope it helps!
  
  
  
  
 



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 methods. If the drag  drop is
 over the bottom half portion of a node, I highlight it and rewrite the
 parent and rowIndex properties of the _dropData property. That works well.
 You could extend the logic to open up the folder after the drop and add a
 spring loaded opening mechanism.



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?

 --
 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 methods. If the drag  drop
 is over the bottom half portion of a node, I highlight it and rewrite the
 parent and rowIndex properties of the _dropData property. That works well.
 You could extend the logic to open up the folder after the drop and add a
 spring loaded opening mechanism.





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
 
http://geo.yahoo.com/serv?s=97359714/grpId=12286167/grpspId=1705007207/
msgId=138704/stime=1236765221/nc1=1/nc2=2/nc3=3 




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 apply that to my already included mx:tree component, correct?  Do I
need to do anything to the tree? include or not include certain attributes.

Here is my Tree

mx:Tree
id=myTree x=13 y=36 height=546 width=615 borderStyle=inset
dragEnabled=true dropEnabled=true
dragDrop=handleDragDrop(event);
dragMoveEnabled=true
click=showMenu(event);
labelField=@Title iconFunction=loadIconClass
showRoot=true
dataProvider={treeData.page}/


Thank you for your help on this guys. I'm really trying to learn it, but I
only get to work on it occasionally at work...


=]

-- 
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-11 Thread Tracy Spratt
You need to declare the extended component:

TreeEx id=myTree .

 

You may have component namespace issues.  If the component is in the same
folder as the app source, you can use the local xmlns=* If it is in a
different folder, you need to specify that in the xmlns declaration,
xmlns:mycomps=components.*, then do: mycomps:TreeEx id=myTree .

 

 

Tracy Spratt,

Lariat Services, development services available

  _  

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Alan Rother
Sent: Wednesday, March 11, 2009 2:10 PM
To: flexcoders@yahoogroups.com
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 imported and overriding several protected methods, it should
just apply that to my already included mx:tree component, correct?  Do I
need to do anything to the tree? include or not include certain attributes.

 

Here is my Tree

 

mx:Tree 

id=myTree x=13 y=36 height=546 width=615
borderStyle=inset

dragEnabled=true dropEnabled=true
dragDrop=handleDragDrop(event);

dragMoveEnabled=true

click=showMenu(event);

labelField=@Title iconFunction=loadIconClass

showRoot=true 

dataProvider={treeData.page}/

 

 

Thank you for your help on this guys. I'm really trying to learn it, but I
only get to work on it occasionally at work...

 

 

=]


-- 
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-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
I'm also looking for exactly this, do you let us know if you find something?

Romu

Sam Lai wrote:

 You could do what MindManager does and make the left half of the node
 dropzone for reordering, and the right half for making the node a
 child of the drop node.

 Not sure how easy it would be to implement that though in Flex.

 On 3/10/09, Jim Hayes j...@primalpictures.com 
 mailto:jim%40primalpictures.com wrote:
  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 may
  well be wrong.
  It wasn't perfect, but not bad at all.
  Also I may have misunderstood what you are looking for.
  Still, glad it wasn't entirely wasted!
 
  -Original Message-
  From: flexcoders@yahoogroups.com 
 mailto:flexcoders%40yahoogroups.com 
 [mailto:flexcoders@yahoogroups.com 
 mailto:flexcoders%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 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
 
 
  __
  This communication is from Primal Pictures Ltd., a company registered in
  England and Wales with registration No. 02622298 and registered 
 office: 4th
  Floor, Tennyson House, 159-165 Great Portland Street, London, W1W 
 5PA, UK.
  VAT registration No. 648874577.
 
  This e-mail is confidential and may be privileged. It may be read, 
 copied
  and used only by the intended recipient. If you have received it in 
 error,
  please contact the sender immediately by return e-mail or by telephoning
  +44(0)20 7637 1010. Please then delete the e-mail and do not 
 disclose its
  contents to any person.
  This email has been scanned for Primal Pictures by the MessageLabs Email
  Security System.
  __

 -- 
 Sent from my mobile device

 



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 node to be represented with a leaf icon up to the point
where it contains children. If all your nodes (leaf or branch) have the
same icon, then you could make all the nodes branches through a custom
ITreeDataDescriptor. You'll have to live with having the small arrow to
the left on every node.
 
What I finally did was to overload some tree methods. If the drag  drop
is over the bottom half portion of a node, I highlight it and rewrite
the parent and rowIndex properties of the _dropData property. That works
well. You could extend the logic to open up the folder after the drop
and add a spring loaded opening mechanism.
 
I'm attaching some code but I had to clean it up to remove proprietary
information. Not sure if it still compiles but that's a starting point
:-)
 
Hope it helps!
 
 
 
 



TreeEx.as
Description: TreeEx.as


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 to drop a node on it. That impacts the icons that represent the 
 nodes and I still wanted a leaf node to be represented with a leaf 
 icon up to the point where it contains children. If all your nodes 
 (leaf or branch) have the same icon, then you could make all the nodes 
 branches through a custom ITreeDataDescriptor. You'll have to live 
 with having the small arrow to the left on every node.
  
 What I finally did was to overload some tree methods. If the drag  
 drop is over the bottom half portion of a node, I highlight it and 
 rewrite the parent and rowIndex properties of the _dropData property. 
 That works well. You could extend the logic to open up the folder 
 after the drop and add a spring loaded opening mechanism.
  
 I'm attaching some code but I had to clean it up to remove proprietary 
 information. Not sure if it still compiles but that's a starting point :-)
  
 Hope it helps!
  
  
  
  
 



[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 problem I
am having is around the dragdrop handler. I need to be able to move any page
to anywhere on the tree, including below (as a child of) any other page in
addition to being able to reorder pages on the same level (same parent node)

I can get it to do one or the other but not both at the same time. As far as
I can tell, Flex doesn't recognize the difference between a drop on a node
and a drop between two nodes. As I think this would solve my problem. Has
anyone tackled this problem before? I basically need a simple way for my
very non-technical users to drag pages for one of two operations,
re-ordering within a section or moving a page to another section.

This ExtJS example is almost exactly what I want my Flex tree to do

http://www.extjs.com/deploy/dev/examples/tree/reorder.html

Except I need to treat every item on the tree as a folder.

=]

-- 
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 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
between the dragSource's dragItems and the item that exists in the tree at
the calculatedDropIndex. Through this comparison you'll know if you're
dropping onto a branch or leaf node and can handle it appropriately.

--
Howard Fore, howard.f...@hofo.com
The universe tends toward maximum irony. Don't push it. - Jeff Atwood


On Mon, Mar 9, 2009 at 3:34 PM, Alan Rother alan.rot...@gmail.com wrote:

  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 problem I
 am having is around the dragdrop handler. I need to be able to move any page
 to anywhere on the tree, including below (as a child of) any other page in
 addition to being able to reorder pages on the same level (same parent node)

 I can get it to do one or the other but not both at the same time. As far
 as I can tell, Flex doesn't recognize the difference between a drop on a
 node and a drop between two nodes. As I think this would solve my problem.
 Has anyone tackled this problem before? I basically need a simple way for my
 very non-technical users to drag pages for one of two operations,
 re-ordering within a section or moving a page to another section.

 This ExtJS example is almost exactly what I want my Flex tree to do

 http://www.extjs.com/deploy/dev/examples/tree/reorder.html

 Except I need to treat every item on the tree as a folder.

 =]

 --
 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 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
between two pages on the same level (re-ordering) or if they wanted to move
the page to be the child of the page is was dropped onto.

That ExtJS example seems to be doing what I want (albeit, you cant drag a
file to another file, only folders) I have to believe Flex can do this as
well, I really don't want to do it in Ext...

=]
-- 
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 Alex Harui
There might be a way to use a custom ITreeDataDescriptor to turn every child 
into a branch.  Open but empty folders have a middle drop zone for dropping 
into.

Alex Harui
Flex SDK Developer
Adobe Systems Inc.http://www.adobe.com/
Blog: http://blogs.adobe.com/aharui

From: flexcoders@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 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 problem I am having is around 
the dragdrop handler. I need to be able to move any page to anywhere on the 
tree, including below (as a child of) any other page in addition to being able 
to reorder pages on the same level (same parent node)

I can get it to do one or the other but not both at the same time. As far as I 
can tell, Flex doesn't recognize the difference between a drop on a node and a 
drop between two nodes. As I think this would solve my problem. Has anyone 
tackled this problem before? I basically need a simple way for my very 
non-technical users to drag pages for one of two operations, re-ordering within 
a section or moving a page to another section.

This ExtJS example is almost exactly what I want my Flex tree to do

http://www.extjs.com/deploy/dev/examples/tree/reorder.html

Except I need to treat every item on the tree as a folder.

=]

--
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 Alan Rother
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 wrote:

There might be a way to use a custom ITreeDataDescriptor to turn every
 child into a “branch”.  Open but empty folders have a middle drop zone for
 dropping “into”.



 Alex Harui

 Flex SDK Developer

 Adobe Systems Inc. http://www.adobe.com/

 Blog: http://blogs.adobe.com/aharui



 *From:* flexcoders@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 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 problem I
 am having is around the dragdrop handler. I need to be able to move any page
 to anywhere on the tree, including below (as a child of) any other page in
 addition to being able to reorder pages on the same level (same parent node)



 I can get it to do one or the other but not both at the same time. As far
 as I can tell, Flex doesn't recognize the difference between a drop on a
 node and a drop between two nodes. As I think this would solve my problem.
 Has anyone tackled this problem before? I basically need a simple way for my
 very non-technical users to drag pages for one of two operations,
 re-ordering within a section or moving a page to another section.



 This ExtJS example is almost exactly what I want my Flex tree to do



 http://www.extjs.com/deploy/dev/examples/tree/reorder.html



 Except I need to treat every item on the tree as a folder.



 =]


 --
 Alan Rother
 Adobe Certified Advanced ColdFusion MX 7 Developer
 Manager, Phoenix Cold Fusion User Group, AZCFUG.org

   




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

Alan Rother wrote:

  
  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
Idiscriminate between intent, in other words how do I know if the user
wanted to move the page between two pages on the same level
(re-ordering) or if they wanted to move the page to be the child of the
page is was dropped onto.
  
  
  That ExtJS example seems to be doing what I want (albeit, you
cant drag a file to another file, only folders) I have to believe Flex
can do this as well, I really don't want to do it in Ext...
  
  
  =]
-- 
Alan Rother
Adobe Certified Advanced ColdFusion MX 7 Developer
Manager, Phoenix Cold Fusion User Group, AZCFUG.org
  
  
 
  
__ Information from ESET NOD32 Antivirus, version of virus
signature database 3922 (20090309) __
  
The message was checked by ESET NOD32 Antivirus.
  
  http://www.eset.com
 

-- 

Dr Martyn Bowis (PhD Engineering)
Director Net Design Ltd
New Zealand
www.netdesign.co.nz
Mob: +64 21 932626
Skype: mbowis
MSN: mbowis @ msn.com

Truth brings Freedom

The content of this email is confidential.
If you are not the intended recipient,
you must not use or distribute this
information in any way, shape or form.
Please notify the send of this error.
Thank you.





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 to display any current children (and if not a
placeholder child that you dynamically create for that purpose)

Cheers,
Martyn

Alan Rother wrote:

  
  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
Idiscriminate between intent, in other words how do I know if the user
wanted to move the page between two pages on the same level
(re-ordering) or if they wanted to move the page to be the child of the
page is was dropped onto.
  
  
  That ExtJS example seems to be doing what I want (albeit, you
cant drag a file to another file, only folders) I have to believe Flex
can do this as well, I really don't want to do it in Ext...
  
  
  =]
-- 
Alan Rother
Adobe Certified Advanced ColdFusion MX 7 Developer
Manager, Phoenix Cold Fusion User Group, AZCFUG.org
  
  
 
  
__ Information from ESET NOD32 Antivirus, version of virus
signature database 3922 (20090309) __
  
The message was checked by ESET NOD32 Antivirus.
  
  http://www.eset.com
 

-- 

Dr Martyn Bowis (PhD Engineering)
Director Net Design Ltd
New Zealand
www.netdesign.co.nz
Mob: +64 21 932626
Skype: mbowis
MSN: mbowis @ msn.com

Truth brings Freedom

The content of this email is confidential.
If you are not the intended recipient,
you must not use or distribute this
information in any way, shape or form.
Please notify the send of this error.
Thank you.





RE: [flexcoders] Flex 3 Tree - Moving Nodes

2009-03-09 Thread Jim Hayes
This may be of interest :
 
http://flexibleexperiments.wordpress.com/2007/02/26/flex-201-tree-with-s
pring-loaded-folders-update-2/
 
 
 
-Original Message-
From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Alan Rother
Sent: 09 March 2009 21:54
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 be a way to use a custom ITreeDataDescriptor to turn every
child into a branch.  Open but empty folders have a middle drop zone
for dropping into.
 
Alex Harui
Flex SDK Developer
Adobe Systems Inc. http://www.adobe.com/ 
Blog: http://blogs.adobe.com/aharui http://blogs.adobe.com/aharui 
 
From: flexcoders@yahoogroups.com mailto:flexcoders@yahoogroups.com
[mailto:flexcoders@yahoogroups.com mailto:flexcoders@yahoogroups.com ]
On Behalf Of Alan Rother
Sent: Monday, March 09, 2009 12:34 PM
To: flexcoders@yahoogroups.com mailto: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 prototype using XML as the dataprovider and
i have a good chunk of the drag and drop functions working well. The
problem I am having is around the dragdrop handler. I need to be able to
move any page to anywhere on the tree, including below (as a child of)
any other page in addition to being able to reorder pages on the same
level (same parent node)
 
I can get it to do one or the other but not both at the same time. As
far as I can tell, Flex doesn't recognize the difference between a drop
on a node and a drop between two nodes. As I think this would solve my
problem. Has anyone tackled this problem before? I basically need a
simple way for my very non-technical users to drag pages for one of two
operations, re-ordering within a section or moving a page to another
section.
 
This ExtJS example is almost exactly what I want my Flex tree to do
 
http://www.extjs.com/deploy/dev/examples/tree/reorder.html
http://www.extjs.com/deploy/dev/examples/tree/reorder.html 
 
Except I need to treat every item on the tree as a folder.
 
=]

-- 
Alan Rother
Adobe Certified Advanced ColdFusion MX 7 Developer
Manager, Phoenix Cold Fusion User Group, AZCFUG.org



-- 
Alan Rother
Adobe Certified Advanced ColdFusion MX 7 Developer
Manager, Phoenix Cold Fusion User Group, AZCFUG.org


__
This communication is from Primal Pictures Ltd., a company registered in 
England and Wales with registration No. 02622298 and registered office: 4th 
Floor, Tennyson House, 159-165 Great Portland Street, London, W1W 5PA, UK. VAT 
registration No. 648874577.

This e-mail is confidential and may be privileged. It may be read, copied and 
used only by the intended recipient. If you have received it in error, please 
contact the sender immediately by return e-mail or by telephoning +44(0)20 7637 
1010. Please then delete the e-mail and do not disclose its contents to any 
person.
This email has been scanned for Primal Pictures by the MessageLabs Email 
Security System.
__

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
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 may
well be wrong.
It wasn't perfect, but not bad at all.
Also I may have misunderstood what you are looking for.
Still, glad it wasn't entirely wasted!
 
-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 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


__
This communication is from Primal Pictures Ltd., a company registered in 
England and Wales with registration No. 02622298 and registered office: 4th 
Floor, Tennyson House, 159-165 Great Portland Street, London, W1W 5PA, UK. VAT 
registration No. 648874577.

This e-mail is confidential and may be privileged. It may be read, copied and 
used only by the intended recipient. If you have received it in error, please 
contact the sender immediately by return e-mail or by telephoning +44(0)20 7637 
1010. Please then delete the e-mail and do not disclose its contents to any 
person.
This email has been scanned for Primal Pictures by the MessageLabs Email 
Security System.
__

RE: [flexcoders] Flex 3 Tree - Moving Nodes

2009-03-09 Thread Tracy Spratt
This has been a problem with Tree for as long as I can remember, that is,
especially with empty nodes, how do you select it to drop into?  Alex said,
Open but empty folders have a middle drop zone for dropping into.  I
wonder how to recognize that zone when you are over it?

 

The drag indicators are all lines, of different lengths, to show in a node
or between nodes.  Tree needs a block or bar highlight on the parent node
itself, to indicate drop into here.

 

Tracy Spratt,

Lariat Services, development services available

  _  

From: flexcoders@yahoogroups.com [mailto:flexcod...@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 may well
be wrong.

It wasn't perfect, but not bad at all.

Also I may have misunderstood what you are looking for.

Still, glad it wasn't entirely wasted!

 

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


__
This communication is from Primal Pictures Ltd., a company registered in
England and Wales with registration No. 02622298 and registered office: 4th
Floor, Tennyson House, 159-165 Great Portland Street, London, W1W 5PA, UK.
VAT registration No. 648874577.

This e-mail is confidential and may be privileged. It may be read, copied
and used only by the intended recipient. If you have received it in error,
please contact the sender immediately by return e-mail or by telephoning
+44(0)20 7637 1010. Please then delete the e-mail and do not disclose its
contents to any person.
This email has been scanned for Primal Pictures by the MessageLabs Email
Security System.
__







Re: [flexcoders] Flex 3 Tree - Moving Nodes

2009-03-09 Thread Sam Lai
You could do what MindManager does and make the left half of the node
dropzone for reordering, and the right half for making the node a
child of the drop node.

Not sure how easy it would be to implement that though in Flex.

On 3/10/09, Jim Hayes j...@primalpictures.com wrote:
 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 may
 well be wrong.
 It wasn't perfect, but not bad at all.
 Also I may have misunderstood what you are looking for.
 Still, glad it wasn't entirely wasted!

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


 __
 This communication is from Primal Pictures Ltd., a company registered in
 England and Wales with registration No. 02622298 and registered office: 4th
 Floor, Tennyson House, 159-165 Great Portland Street, London, W1W 5PA, UK.
 VAT registration No. 648874577.

 This e-mail is confidential and may be privileged. It may be read, copied
 and used only by the intended recipient. If you have received it in error,
 please contact the sender immediately by return e-mail or by telephoning
 +44(0)20 7637 1010. Please then delete the e-mail and do not disclose its
 contents to any person.
 This email has been scanned for Primal Pictures by the MessageLabs Email
 Security System.
 __

-- 
Sent from my mobile device