RE: [flexcoders] Explorer-like drag drop tree

2006-07-12 Thread Jonas Windey












Cool, cant wait. Ive now
gotten so far that I can drag items on every node, but the only thing I need to
force now is that if you drag an item on a node on the last level, it needs to
be open for flex to allow dropping on it.

For now Ill just open every node in
my tree in the initial state. That way at least its working. 



Now give me your sample ;-)



Jonas

Lol - Jason, were
anagrammable











From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Jason Hawryluk
Sent: dinsdag 11 juli 2006 23:55
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders]
Explorer-like drag  drop tree













I'm at home, and it's late, but i'll put
together a sample, and post it when i get back to work ;)











Jason











-Message d'origine-
De: flexcoders@yahoogroups.com
[mailto:flexcoders@yahoogroups.com]De la part de Pat Buchanan
Envoyé: mardi 11 juillet
2006 22:58
À: flexcoders@yahoogroups.com
Objet: Re: [flexcoders]
Explorer-like drag  drop tree





Jason:











Do you have an example of this for us current/future newbies?











Thanks!







On 7/11/06, Jason
Hawryluk [EMAIL PROTECTED]
wrote: 













What I do is on dragover
after a set time when over the folderi open it. The user is then free to
drag into the folder.











If you want i can give
you more details, if you think this would help solve your problem.











jason























-Message
d'origine-
De: flexcoders@yahoogroups.com
[mailto:flexcoders@yahoogroups.com]De la part de Jonas Windey
Envoyé: mardi 11 juillet
2006 15:59 
À: flexcoders@yahoogroups.com
Objet: RE: [flexcoders]
Explorer-like drag  drop tree 









Yea, go figure that every
directory contains a dummy leaf. Wouldn't really
be explorer-like wouldn't it :-)

-Original Message-
From: flexcoders@yahoogroups.com
[mailto:flexcoders@yahoogroups.com]
On
Behalf Of Tom Chiverton
Sent: dinsdag 11 juli 2006 15:33
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Explorer-like drag  drop tree 

On Tuesday 11 July 2006 12:36, Jonas Windey wrote:
 Since the directories in the deepest level won't ever have an open node,
 this is impossible.

If it really is the case that it needs an open node, just add a dummy child 
node.

-- 
Tom Chiverton



This email is sent for and on behalf of Halliwells LLP.

Halliwells LLP is a limited liability partnership registered in England and 
Wales
under registered number OC307980 whose registered office address is at
St James's Court Brown Street
 Manchester M2 2JF.
A list of members is
available for inspection at the registered office. Any reference to a 
partner in relation to Halliwells LLP means a member of Halliwells LLP.
Regulated by the Law Society.

CONFIDENTIALITY

This email is intended only for the use of the addressee named above and may
be confidential or legally privileged. If you are not the addressee you 
must not read it and must not use any information contained in nor copy it
nor inform any person other than Halliwells LLP or the addressee of its
existence or contents. If you have received this email in error please 
delete it and notify Halliwells LLP IT Department on 0870 365 8008.

For more information about Halliwells LLP visit www.halliwells.com.

--
Flexcoders Mailing List 
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt

Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com

Yahoo! Groups Links

__ NOD32 1.1653 (20060711) Information __

This message was checked by NOD32 antivirus system.
http://www.eset.com
























__ NOD32 1.1654 (20060711) Information __

This message was checked by NOD32 antivirus system.
http://www.eset.com




__._,_.___





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








   






  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  






__,_._,___






RE: [flexcoders] Explorer-like drag drop tree

2006-07-12 Thread Jason Hawryluk





I have 
a little support task to do first then i'll put it up.

:°

jason


  -Message d'origine-De: 
  flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED]De la part 
  de Jonas WindeyEnvoyé: mercredi 12 juillet 2006 
  09:45À: flexcoders@yahoogroups.comObjet: RE: 
  [flexcoders] Explorer-like drag  drop tree
  
  
  
  Cool, can’t wait. 
  I’ve now gotten so far that I can drag items on every node, but the only thing 
  I need to force now is that if you drag an item on a node on the last level, 
  it needs to be open for flex to allow dropping on it.
  For now I’ll just 
  open every node in my tree in the initial state. That way at least it’s 
  working. 
  
  Now give me your 
  sample ;-)
  
  Jonas
  Lol - Jason, 
  we’re anagrammable
  
  
  
  
  
  From: 
  flexcoders@yahoogroups.com 
  [mailto:flexcoders@yahoogroups.com] On Behalf Of Jason HawrylukSent: dinsdag 11 juli 2006 
  23:55To: 
  flexcoders@yahoogroups.comSubject: RE: [flexcoders] Explorer-like 
  drag  drop tree
  
  
  
  
  
  I'm at home, and it's 
  late, but i'll put together a sample, and post it when i get back to work 
  ;)
  
  
  
  Jason
  
  
  
-Message 
d'origine-De: 
flexcoders@yahoogroups.com 
[mailto:flexcoders@yahoogroups.com]De la part de Pat BuchananEnvoyé: mardi 11 juillet 2006 
22:58À: 
flexcoders@yahoogroups.comObjet: Re: [flexcoders] 
Explorer-like drag  drop tree


Jason:



Do you have an example of this for us current/future 
newbies?



Thanks!

On 7/11/06, Jason Hawryluk [EMAIL PROTECTED] wrote: 







What I 
do is on dragover after a set time when over the folderi open it. The 
user is then free to drag into the folder.



If you 
want i can give you more details, if you think this would help solve your 
problem.



jason







  -Message 
  d'origine-De: 
  flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com]De la part de Jonas 
  WindeyEnvoyé: 
  mardi 11 juillet 2006 15:59 À: flexcoders@yahoogroups.comObjet: RE: [flexcoders] 
  Explorer-like drag  drop tree 



Yea, go figure that every directory contains a dummy 
leaf. Wouldn't reallybe explorer-like wouldn't it 
:-)-Original Message-From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] OnBehalf Of Tom 
ChivertonSent: dinsdag 11 juli 2006 15:33To: flexcoders@yahoogroups.comSubject: Re: [flexcoders] 
Explorer-like drag  drop tree On Tuesday 11 July 2006 12:36, 
Jonas Windey wrote: Since the directories in the deepest level won't 
ever have an open node, this is impossible.If it really is 
the case that it needs an open node, just add a dummy child 
node.-- Tom 
ChivertonThis 
email is sent for and on behalf of Halliwells LLP.Halliwells LLP is 
a limited liability partnership registered in England and 
Wales under registered number OC307980 whose 
registered office address is atSt James's Court Brown 
Street Manchester M2 2JF. A list of 
members isavailable for inspection at the registered office. Any 
reference to a partner in relation to Halliwells LLP means a member of 
Halliwells LLP.Regulated by the Law 
Society.CONFIDENTIALITYThis email is intended only for the 
use of the addressee named above and maybe confidential or legally 
privileged. If you are not the addressee you must not read it and must 
not use any information contained in nor copy itnor inform any person 
other than Halliwells LLP or the addressee of itsexistence or contents. 
If you have received this email in error please delete it and notify 
Halliwells LLP IT Department on 0870 365 8008.For more information 
about Halliwells LLP visit www.halliwells.com.--Flexcoders 
Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt 
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links__ NOD32 1.1653 (20060711) 
Information __This message was checked by NOD32 antivirus 
system.http://www.eset.com

  __ 
  NOD32 1.1654 (20060711) Information __This message was checked 
  by NOD32 antivirus system.http://www.eset.com
  
__._,_.___





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








   






  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development

RE: [flexcoders] Explorer-like drag drop tree (Delayed Open Example)

2006-07-12 Thread Jason Hawryluk
" 
//mx:Application


End: 
SampleDragDropOpen.mxml



  -Message d'origine-De: 
  flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED]De la part 
  de Jason HawrylukEnvoyé: mercredi 12 juillet 2006 
  10:06À: flexcoders@yahoogroups.comObjet: RE: 
  [flexcoders] Explorer-like drag  drop tree
  
  
  I 
  have a little support task to do first then i'll put it 
up.
  
  :°
  
  jason
  
  
-Message d'origine-De: 
flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED]De la part 
de Jonas WindeyEnvoyé: mercredi 12 juillet 2006 
09:45À: flexcoders@yahoogroups.comObjet: 
RE: [flexcoders] Explorer-like drag  drop tree



Cool, can’t wait. 
I’ve now gotten so far that I can drag items on every node, but the only 
thing I need to force now is that if you drag an item on a node on the last 
level, it needs to be open for flex to allow dropping on 
it.
For now I’ll just 
open every node in my tree in the initial state. That way at least it’s 
working. 

Now give me your 
    sample ;-)
    
    Jonas
    Lol - 
Jason, we’re anagrammable





From: 
flexcoders@yahoogroups.com 
[mailto:flexcoders@yahoogroups.com] On Behalf Of Jason HawrylukSent: dinsdag 11 juli 2006 
23:55To: 
flexcoders@yahoogroups.comSubject: RE: [flexcoders] Explorer-like 
drag  drop tree





I'm at home, and 
it's late, but i'll put together a sample, and post it when i get back to 
work ;)
    

    
    Jason
    
    

  -Message 
  d'origine-De: 
  flexcoders@yahoogroups.com 
  [mailto:flexcoders@yahoogroups.com]De la part de Pat 
  BuchananEnvoyé: 
  mardi 11 juillet 2006 22:58À: 
  flexcoders@yahoogroups.comObjet: Re: [flexcoders] 
  Explorer-like drag  drop tree
  
  
  Jason:
  
  
  
  Do you have an example of this for us 
  current/future newbies?
  
  
  
  Thanks!
  
  On 7/11/06, Jason Hawryluk [EMAIL PROTECTED] 
  wrote: 
  
  
  
  
  
  
  What 
  I do is on dragover after a set time when over the folderi open it. 
  The user is then free to drag into the 
  folder.
  
  
  
  If 
  you want i can give you more details, if you think this would help solve 
  your problem.
  
      
  
  jason
  
      
  
  
  
  
  
-Message 
d'origine-De: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com]De la part de Jonas 
WindeyEnvoyé: 
mardi 11 juillet 2006 15:59 À: flexcoders@yahoogroups.comObjet: RE: [flexcoders] 
Explorer-like drag  drop tree 
  
  
  
  Yea, go figure that every directory contains a 
      dummy leaf. Wouldn't reallybe explorer-like wouldn't it 
  :-)-Original Message-From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] OnBehalf Of Tom 
  ChivertonSent: dinsdag 11 juli 2006 15:33To: flexcoders@yahoogroups.comSubject: Re: [flexcoders] 
  Explorer-like drag  drop tree On Tuesday 11 July 2006 12:36, 
  Jonas Windey wrote: Since the directories in the deepest level 
  won't ever have an open node, this is impossible.If it 
  really is the case that it needs an open node, just add a dummy child 
  node.-- Tom 
  ChivertonThis 
  email is sent for and on behalf of Halliwells LLP.Halliwells LLP 
  is a limited liability partnership registered in England and 
  Wales under registered number OC307980 whose 
  registered office address is atSt James's Court Brown 
  Street Manchester M2 2JF. A list of 
  members isavailable for inspection at the registered office. Any 
  reference to a partner in relation to Halliwells LLP means a member of 
  Halliwells LLP.Regulated by the Law 
  Society.CONFIDENTIALITYThis email is intended only for the 
  use of the addressee named above and maybe confidential or legally 
  privileged. If you are not the addressee you must not read it and must 
  not use any information contained in nor copy itnor inform any person 
  other than Halliwells LLP or the addressee of itsexistence or 
  contents. If you have received this email in error please delete it 
  and notify Halliwells LLP IT Department on 0870 365 8008.For more 
  information about Halliwells LLP visit www.halliwells.com.--Flexcoders 
  Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt 
  Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
  Yahoo! Groups Links__ NOD32 1.1653 (20060711) 
  Information __This message was checked by NOD32 antivirus 
  system.http://www.eset.com
  
__ 
NOD32 1.1654 (20

RE: [flexcoders] Explorer-like drag drop tree

2006-07-12 Thread Jason Hawryluk





Found 
the original source (flex 1.5)for it. 

http://www.richinternet.de/blog/index.cfm?mode=entryentry=71F7DA77-DE13-D55B-91A5E87F8040B02F

Thanks 
dirk,I make great use of it :)




  -Message d'origine-De: 
  flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED]De la part 
  de Jason HawrylukEnvoyé: mercredi 12 juillet 2006 
  10:36À: flexcoders@yahoogroups.comObjet: RE: 
  [flexcoders] Explorer-like drag  drop tree
  
  
  Forgot to mention how to see the effect.
  
  Drag 
  an item over any closed folder and it will open after a set period of time 
  (1sec)
  
  Jason
  
  
  
-Message d'origine-De: 
flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED]De la part 
de Jason HawrylukEnvoyé: mercredi 12 juillet 2006 
10:06À: flexcoders@yahoogroups.comObjet: 
RE: [flexcoders] Explorer-like drag  drop tree


I 
have a little support task to do first then i'll put it 
up.

:°

jason


  -Message d'origine-De: 
  flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED]De la 
  part de Jonas WindeyEnvoyé: mercredi 12 juillet 2006 
  09:45À: flexcoders@yahoogroups.comObjet: 
  RE: [flexcoders] Explorer-like drag  drop tree
  
  
  
  Cool, can’t wait. 
  I’ve now gotten so far that I can drag items on every node, but the only 
  thing I need to force now is that if you drag an item on a node on the 
  last level, it needs to be open for flex to allow dropping on 
  it.
  For now I’ll just 
  open every node in my tree in the initial state. That way at least it’s 
  working. 
  
  Now give me your 
  sample ;-)
  
  Jonas
  Lol - 
  Jason, we’re anagrammable
  
  
  
  
  
  From: 
  flexcoders@yahoogroups.com 
  [mailto:flexcoders@yahoogroups.com] On Behalf Of Jason 
  HawrylukSent: dinsdag 11 
  juli 2006 23:55To: 
  flexcoders@yahoogroups.comSubject: RE: [flexcoders] 
  Explorer-like drag  drop tree
  
  
  
  
  
  I'm at home, and 
  it's late, but i'll put together a sample, and post it when i get back to 
  work ;)
  
  
  
  Jason
  
  
  
-Message 
d'origine-De: 
flexcoders@yahoogroups.com 
[mailto:flexcoders@yahoogroups.com]De la part de Pat 
BuchananEnvoyé: 
mardi 11 juillet 2006 22:58À: 
flexcoders@yahoogroups.comObjet: Re: [flexcoders] 
Explorer-like drag  drop tree


Jason:



Do you have an example of this for us 
current/future newbies?



Thanks!

On 7/11/06, Jason Hawryluk [EMAIL PROTECTED] 
wrote: 






What I do is on 
dragover after a set time when over the folderi open it. The user 
is then free to drag into the folder.



If 
you want i can give you more details, if you think this would help solve 
your problem.



jason







  -Message 
  d'origine-De: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com]De la part de Jonas 
  WindeyEnvoyé: 
  mardi 11 juillet 2006 15:59 À: flexcoders@yahoogroups.comObjet: RE: [flexcoders] 
  Explorer-like drag  drop tree 



Yea, go figure that every directory contains a 
dummy leaf. Wouldn't reallybe explorer-like wouldn't it 
:-)-Original Message-From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] OnBehalf Of Tom 
ChivertonSent: dinsdag 11 juli 2006 15:33To: flexcoders@yahoogroups.comSubject: Re: 
[flexcoders] Explorer-like drag  drop tree On Tuesday 11 
July 2006 12:36, Jonas Windey wrote: Since the directories in 
the deepest level won't ever have an open node, this is 
impossible.If it really is the case that it needs an open node, 
just add a dummy child node.-- Tom 
ChivertonThis 
email is sent for and on behalf of Halliwells LLP.Halliwells LLP 
is a limited liability partnership registered in England and 
Wales under registered number OC307980 whose 
registered office address is atSt James's Court Brown 
Street Manchester M2 2JF. A list of 
members isavailable for inspection at the registered office. Any 
reference to a partner in relation to Halliwells LLP means a member 
of Halliwells LLP.Regulated by the Law 
Society.CONFIDENTIALITYThis email is intended only for 
the use of the addressee named above and maybe confidential or 
legally

RE: [flexcoders] Explorer-like drag drop tree

2006-07-12 Thread Jason Hawryluk






Also one last thing 
about the Delayedtimer.as The original was flex 1.5.The 
idea, and credit for it goes to someone else (not sure who) I think it was 
richinternet blog or something. I just made it work for flex 2.0 in a different 
context from the original. It is quite different though.

Credit where credit is 
due ;)

Jason





  -Message d'origine-De: 
  flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED]De la part 
  de Jason HawrylukEnvoyé: mercredi 12 juillet 2006 
  10:36À: flexcoders@yahoogroups.comObjet: RE: 
  [flexcoders] Explorer-like drag  drop tree
  
  
  Forgot to mention how to see the effect.
  
  Drag 
  an item over any closed folder and it will open after a set period of time 
  (1sec)
  
  Jason
  
  
  
-Message d'origine-De: 
flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED]De la part 
de Jason HawrylukEnvoyé: mercredi 12 juillet 2006 
10:06À: flexcoders@yahoogroups.comObjet: 
RE: [flexcoders] Explorer-like drag  drop tree


I 
have a little support task to do first then i'll put it 
up.

:°

jason


  -Message d'origine-De: 
  flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED]De la 
  part de Jonas WindeyEnvoyé: mercredi 12 juillet 2006 
  09:45À: flexcoders@yahoogroups.comObjet: 
  RE: [flexcoders] Explorer-like drag  drop tree
  
  
  
  Cool, can’t wait. 
  I’ve now gotten so far that I can drag items on every node, but the only 
  thing I need to force now is that if you drag an item on a node on the 
  last level, it needs to be open for flex to allow dropping on 
  it.
  For now I’ll just 
  open every node in my tree in the initial state. That way at least it’s 
  working. 
  
  Now give me your 
  sample ;-)
  
  Jonas
  Lol - 
  Jason, we’re anagrammable
  
  
  
  
  
  From: 
  flexcoders@yahoogroups.com 
  [mailto:flexcoders@yahoogroups.com] On Behalf Of Jason 
  HawrylukSent: dinsdag 11 
  juli 2006 23:55To: 
  flexcoders@yahoogroups.comSubject: RE: [flexcoders] 
  Explorer-like drag  drop tree
  
  
  
  
  
  I'm at home, and 
  it's late, but i'll put together a sample, and post it when i get back to 
  work ;)
  
  
  
  Jason
  
  
  
-Message 
d'origine-De: 
flexcoders@yahoogroups.com 
[mailto:flexcoders@yahoogroups.com]De la part de Pat 
BuchananEnvoyé: 
mardi 11 juillet 2006 22:58À: 
flexcoders@yahoogroups.comObjet: Re: [flexcoders] 
Explorer-like drag  drop tree


Jason:



Do you have an example of this for us 
current/future newbies?



Thanks!

On 7/11/06, Jason Hawryluk [EMAIL PROTECTED] 
wrote: 






What I do is on 
dragover after a set time when over the folderi open it. The user 
is then free to drag into the folder.



If 
you want i can give you more details, if you think this would help solve 
your problem.



jason







  -Message 
  d'origine-De: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com]De la part de Jonas 
  WindeyEnvoyé: 
  mardi 11 juillet 2006 15:59 À: flexcoders@yahoogroups.comObjet: RE: [flexcoders] 
  Explorer-like drag  drop tree 



Yea, go figure that every directory contains a 
dummy leaf. Wouldn't reallybe explorer-like wouldn't it 
:-)-Original Message-From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] OnBehalf Of Tom 
ChivertonSent: dinsdag 11 juli 2006 15:33To: flexcoders@yahoogroups.comSubject: Re: 
[flexcoders] Explorer-like drag  drop tree On Tuesday 11 
July 2006 12:36, Jonas Windey wrote: Since the directories in 
the deepest level won't ever have an open node, this is 
impossible.If it really is the case that it needs an open node, 
just add a dummy child node.-- Tom 
ChivertonThis 
email is sent for and on behalf of Halliwells LLP.Halliwells LLP 
is a limited liability partnership registered in England and 
Wales under registered number OC307980 whose 
registered office address is atSt James's Court Brown 
Street Manchester M2 2JF. A list of 
members isavailable for inspection at the registered office. Any 
reference to a partner in relation to Halliwells LLP means a member 
of Halliwells LLP.Regulated by the Law

RE: [flexcoders] Explorer-like drag drop tree

2006-07-11 Thread Jonas Windey












Yea so I had gotten so far already. The
problem is, I cant spend another day trying and experimenting, since
time is running out.

Until then, I guess Ill play a bit
further.











From:
flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Jeremy Lu
Sent: dinsdag 11 juli 2006 13:04
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders]
Explorer-like drag  drop tree












custom item renderer is the way to go.





On 7/11/06, Jonas
Windey [EMAIL PROTECTED]
wrote:













I'm trying to create a folder-manager in flex that allows
a user to move, create and delete folders.

The folderstructure gets sent to the client in xml
format, like this:



root


folder label=ftproot


folder label=subfolder1 /


folder label=subfolder2 /


/folder


folder label=ftproot2 /

/root



Etc.



This is all working well, I get a treeview, and with
some custom icons it looks exactly like the explorer in windows. 

The problem arrives when folders are seen as leafs
instead of nodes (like every deepest folder for instance, is seen as a leaf)



To enable true drag  drop, every node, also the
leafs, should act as a node. In explorer for instance, if you drag a folder on
another folder, it is automatically seen as a subfolder.

Since Flex doesn't allow items to be dragged onto a
leaf, I'm having a problem here. Once every folder is on the root node for
instance, it's impossible to move any folder onto another folder.



Anyone with a suggestion? I suppose I'll have to
create a custom itemrenderer and force every item so it 'thinks' it has
childnodes, but maybe someone could give me a good direction here.



Thanks






















__ NOD32 1.1652 (20060710) Information __

This message was checked by NOD32 antivirus system.
http://www.eset.com




__._,_.___





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








   






  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  






__,_._,___






RE: [flexcoders] Explorer-like drag drop tree

2006-07-11 Thread Jonas Windey












Ok so apparently its nearly
impossible to achieve this, since dragging an item so it becomes a child of the
item you dragged it on requires that its new parent has an open node.

Since the directories in the deepest level
wont ever have an open node, this is impossible.



Too bad. 











From:
flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Jeremy Lu
Sent: dinsdag 11 juli 2006 13:04
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders]
Explorer-like drag  drop tree












custom item renderer is the way to go.





On 7/11/06, Jonas
Windey [EMAIL PROTECTED]
wrote:













I'm trying to create a folder-manager in flex that allows
a user to move, create and delete folders.

The folderstructure gets sent to the client in xml
format, like this:



root


folder label=ftproot


folder label=subfolder1 /


folder label=subfolder2 /


/folder


folder label=ftproot2 /

/root



Etc.



This is all working well, I get a treeview, and with
some custom icons it looks exactly like the explorer in windows. 

The problem arrives when folders are seen as leafs
instead of nodes (like every deepest folder for instance, is seen as a leaf)



To enable true drag  drop, every node, also the
leafs, should act as a node. In explorer for instance, if you drag a folder on
another folder, it is automatically seen as a subfolder.

Since Flex doesn't allow items to be dragged onto a
leaf, I'm having a problem here. Once every folder is on the root node for
instance, it's impossible to move any folder onto another folder.



Anyone with a suggestion? I suppose I'll have to
create a custom itemrenderer and force every item so it 'thinks' it has
childnodes, but maybe someone could give me a good direction here.



Thanks






















__ NOD32 1.1652 (20060710) Information __

This message was checked by NOD32 antivirus system.
http://www.eset.com




__._,_.___





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








   



  




  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  






__,_._,___






Re: [flexcoders] Explorer-like drag drop tree

2006-07-11 Thread Tom Chiverton
On Tuesday 11 July 2006 12:36, Jonas Windey wrote:
 Since the directories in the deepest level won't ever have an open node,
 this is impossible.

If it really is the case that it needs an open node, just add a dummy child 
node.

-- 
Tom Chiverton



This email is sent for and on behalf of Halliwells LLP.

Halliwells LLP is a limited liability partnership registered in England and 
Wales under registered number OC307980 whose registered office address is at St 
James's Court Brown Street Manchester M2 2JF.  A list of members is available 
for inspection at the registered office. Any reference to a partner in relation 
to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law 
Society.

CONFIDENTIALITY

This email is intended only for the use of the addressee named above and may be 
confidential or legally privileged.  If you are not the addressee you must not 
read it and must not use any information contained in nor copy it nor inform 
any person other than Halliwells LLP or the addressee of its existence or 
contents.  If you have received this email in error please delete it and notify 
Halliwells LLP IT Department on 0870 365 8008.

For more information about Halliwells LLP visit www.halliwells.com.



 Yahoo! Groups Sponsor ~-- 
See what's inside the new Yahoo! Groups email.
http://us.click.yahoo.com/2pRQfA/bOaOAA/yQLSAA/nhFolB/TM
~- 

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 





RE: [flexcoders] Explorer-like drag drop tree

2006-07-11 Thread Jonas Windey
Yea, go figure that every directory contains a dummy leaf. Wouldn't really
be explorer-like wouldn't it :-)

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Tom Chiverton
Sent: dinsdag 11 juli 2006 15:33
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Explorer-like drag  drop tree

On Tuesday 11 July 2006 12:36, Jonas Windey wrote:
 Since the directories in the deepest level won't ever have an open node,
 this is impossible.

If it really is the case that it needs an open node, just add a dummy child 
node.

-- 
Tom Chiverton



This email is sent for and on behalf of Halliwells LLP.

Halliwells LLP is a limited liability partnership registered in England and
Wales under registered number OC307980 whose registered office address is at
St James's Court Brown Street Manchester M2 2JF.  A list of members is
available for inspection at the registered office. Any reference to a
partner in relation to Halliwells LLP means a member of Halliwells LLP.
Regulated by the Law Society.

CONFIDENTIALITY

This email is intended only for the use of the addressee named above and may
be confidential or legally privileged.  If you are not the addressee you
must not read it and must not use any information contained in nor copy it
nor inform any person other than Halliwells LLP or the addressee of its
existence or contents.  If you have received this email in error please
delete it and notify Halliwells LLP IT Department on 0870 365 8008.

For more information about Halliwells LLP visit www.halliwells.com.




--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links



 






__ NOD32 1.1653 (20060711) Information __

This message was checked by NOD32 antivirus system.
http://www.eset.com





 Yahoo! Groups Sponsor ~-- 
Check out the new improvements in Yahoo! Groups email.
http://us.click.yahoo.com/6pRQfA/fOaOAA/yQLSAA/nhFolB/TM
~- 

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 




Re: [flexcoders] Explorer-like drag drop tree

2006-07-11 Thread Tom Chiverton
On Tuesday 11 July 2006 14:58, Jonas Windey wrote:
 Yea, go figure that every directory contains a dummy leaf. Wouldn't really
 be explorer-like wouldn't it :-)

Depends if your item renderer hides it or not.

-- 
Tom Chiverton



This email is sent for and on behalf of Halliwells LLP.

Halliwells LLP is a limited liability partnership registered in England and 
Wales under registered number OC307980 whose registered office address is at St 
James's Court Brown Street Manchester M2 2JF.  A list of members is available 
for inspection at the registered office. Any reference to a partner in relation 
to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law 
Society.

CONFIDENTIALITY

This email is intended only for the use of the addressee named above and may be 
confidential or legally privileged.  If you are not the addressee you must not 
read it and must not use any information contained in nor copy it nor inform 
any person other than Halliwells LLP or the addressee of its existence or 
contents.  If you have received this email in error please delete it and notify 
Halliwells LLP IT Department on 0870 365 8008.

For more information about Halliwells LLP visit www.halliwells.com.



 Yahoo! Groups Sponsor ~-- 
See what's inside the new Yahoo! Groups email.
http://us.click.yahoo.com/2pRQfA/bOaOAA/yQLSAA/nhFolB/TM
~- 

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 




RE: [flexcoders] Explorer-like drag drop tree

2006-07-11 Thread Jason Hawryluk





What I 
do is on dragover after a set time when over the folderi open it. The user 
is then free to drag into the folder.

If you 
want i can give you more details, if you think this would help solve your 
problem.

jason




  -Message d'origine-De: 
  flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED]De la part 
  de Jonas WindeyEnvoy: mardi 11 juillet 2006 
  15:59: flexcoders@yahoogroups.comObjet: RE: 
  [flexcoders] Explorer-like drag  drop tree
  
  Yea, go figure that every directory contains a dummy leaf. Wouldn't 
  reallybe explorer-like wouldn't it :-)-Original 
  Message-From: [EMAIL PROTECTED]ups.com 
  [mailto:[EMAIL PROTECTED]ups.com] 
  OnBehalf Of Tom ChivertonSent: dinsdag 11 juli 2006 15:33To: [EMAIL PROTECTED]ups.comSubject: 
  Re: [flexcoders] Explorer-like drag  drop treeOn Tuesday 11 July 
  2006 12:36, Jonas Windey wrote: Since the directories in the deepest 
  level won't ever have an open node, this is impossible.If it 
  really is the case that it needs an open node, just add a dummy child 
  node.-- Tom 
  ChivertonThis 
  email is sent for and on behalf of Halliwells LLP.Halliwells LLP is a 
  limited liability partnership registered in England andWales under 
  registered number OC307980 whose registered office address is atSt James's 
  Court Brown Street Manchester M2 2JF. A list of members isavailable for 
  inspection at the registered office. Any reference to apartner in relation 
  to Halliwells LLP means a member of Halliwells LLP.Regulated by the Law 
  Society.CONFIDENTIALITYThis email is intended only for the use 
  of the addressee named above and maybe confidential or legally privileged. 
  If you are not the addressee youmust not read it and must not use any 
  information contained in nor copy itnor inform any person other than 
  Halliwells LLP or the addressee of itsexistence or contents. If you have 
  received this email in error pleasedelete it and notify Halliwells LLP IT 
  Department on 0870 365 8008.For more information about Halliwells LLP 
  visit www.halliwells.com.--Flexcoders Mailing ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch 
  Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
  Yahoo! Groups Links__ NOD32 1.1653 (20060711) Information 
  __This message was checked by NOD32 antivirus system.http://www.eset.com
__._,_.___





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








   






  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  






__,_._,___



Re: [flexcoders] Explorer-like drag drop tree

2006-07-11 Thread Pat Buchanan



Jason:

Do you have an example of this for us current/future newbies?

Thanks!
On 7/11/06, Jason Hawryluk [EMAIL PROTECTED] wrote:







What I do is on dragover after a set time when over the folderi open it. The user is then free to drag into the folder.

If you want i can give you more details, if you think this would help solve your problem.

jason




-Message d'origine-De: flexcoders@yahoogroups.com
 [mailto:flexcoders@yahoogroups.com]De la part de Jonas WindeyEnvoyé: mardi 11 juillet 2006 15:59
À: flexcoders@yahoogroups.comObjet: RE: [flexcoders] Explorer-like drag  drop tree



Yea, go figure that every directory contains a dummy leaf. Wouldn't reallybe explorer-like wouldn't it :-)-Original Message-From: 
flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] OnBehalf Of Tom Chiverton
Sent: dinsdag 11 juli 2006 15:33To: flexcoders@yahoogroups.comSubject: Re: [flexcoders] Explorer-like drag  drop tree
On Tuesday 11 July 2006 12:36, Jonas Windey wrote: Since the directories in the deepest level won't ever have an open node, this is impossible.If it really is the case that it needs an open node, just add a dummy child 
node.-- Tom ChivertonThis email is sent for and on behalf of Halliwells LLP.Halliwells LLP is a limited liability partnership registered in England and
Wales under registered number OC307980 whose registered office address is atSt James's Court Brown Street Manchester M2 2JF. A list of members isavailable for inspection at the registered office. Any reference to a
partner in relation to Halliwells LLP means a member of Halliwells LLP.Regulated by the Law Society.CONFIDENTIALITYThis email is intended only for the use of the addressee named above and maybe confidential or legally privileged. If you are not the addressee you
must not read it and must not use any information contained in nor copy itnor inform any person other than Halliwells LLP or the addressee of itsexistence or contents. If you have received this email in error please
delete it and notify Halliwells LLP IT Department on 0870 365 8008.For more information about Halliwells LLP visit www.halliwells.com.--Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links__ NOD32 1.1653 (20060711) Information __This message was checked by NOD32 antivirus system.
http://www.eset.com


 

__._,_.___





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








   



  




  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  






__,_._,___



RE: [flexcoders] Explorer-like drag drop tree

2006-07-11 Thread Jason Hawryluk





I'm at 
home, and it's late, but i'll put together a sample, and post it when i get back 
to work ;)

Jason


  -Message d'origine-De: 
  flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED]De la part 
  de Pat BuchananEnvoyé: mardi 11 juillet 2006 
  22:58À: flexcoders@yahoogroups.comObjet: Re: 
  [flexcoders] Explorer-like drag  drop tree
  
  
  Jason:
  
  Do you have an example of this for us current/future newbies?
  
  Thanks!
  On 7/11/06, Jason 
  Hawryluk [EMAIL PROTECTED] 
  wrote: 
  






What I do is on dragover 
after a set time when over the folderi open it. The user is then free 
to drag into the folder.

If you want i can give you 
more details, if you think this would help solve your 
problem.

jason




  -Message 
  d'origine-De: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com]De la part de Jonas 
  WindeyEnvoyé: mardi 11 juillet 2006 15:59 
  À: flexcoders@yahoogroups.comObjet: RE: 
  [flexcoders] Explorer-like drag  drop tree 




Yea, go figure that every directory contains a dummy leaf. Wouldn't 
reallybe explorer-like wouldn't it :-)-Original 
Message-From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] OnBehalf Of Tom 
ChivertonSent: dinsdag 11 juli 2006 15:33To: flexcoders@yahoogroups.comSubject: Re: [flexcoders] 
Explorer-like drag  drop tree On Tuesday 11 July 2006 12:36, 
Jonas Windey wrote: Since the directories in the deepest level won't 
ever have an open node, this is impossible.If it really is 
the case that it needs an open node, just add a dummy child 
node.-- Tom 
ChivertonThis 
email is sent for and on behalf of Halliwells LLP.Halliwells LLP is 
a limited liability partnership registered in England and Wales under 
registered number OC307980 whose registered office address is atSt 
James's Court Brown Street Manchester M2 2JF. A list of members 
isavailable for inspection at the registered office. Any reference to a 
partner in relation to Halliwells LLP means a member of Halliwells 
LLP.Regulated by the Law Society.CONFIDENTIALITYThis 
email is intended only for the use of the addressee named above and 
maybe confidential or legally privileged. If you are not the addressee 
you must not read it and must not use any information contained in nor 
copy itnor inform any person other than Halliwells LLP or the addressee 
of itsexistence or contents. If you have received this email in error 
please delete it and notify Halliwells LLP IT Department on 0870 365 
8008.For more information about Halliwells LLP visit www.halliwells.com.--Flexcoders 
Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt 
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links__ NOD32 1.1653 (20060711) 
Information __This message was checked by NOD32 antivirus 
system.http://www.eset.com



  
__._,_.___





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








   






  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  






__,_._,___