Re: [flexcoders] Layered ListBase component

2009-11-18 Thread Chris
As far as I can tell, List does almost exactly what you are after. The only
caveat is your last sentence 'The depth of the display objects is bound to
the data provider indexing.'.

The ItemRenderers of all List controls are re-used within the control, so
the display objects are not at all connected to the index. Nor would you
want to, if you had hundreds or thousands of items in your control. It seems
as though this is a somewhat surmountable issue.

Check out the 'dragEnabled', 'dropEnabled' and 'dragMoveEnabled' properties
of the list controls for more information.

On Tue, Nov 17, 2009 at 10:27 AM, method_air loudj...@hotmail.com wrote:



 Hello,

 I am looking for a component (presumably extending ListBase) that allows
 objects to be dropped inside of it, and positioned where they are dropped
 (kind of like a stage or root timeline). The depth of the display objects is
 bound to the data provider indexing.

 Does such a component exist?

 Thanks,

 Philip

  



RE: [flexcoders] Layered ListBase component

2009-11-18 Thread Loud Jazz

Thanks. The component I'm looking for can be found at scrapblog.com, the user 
can drag and drop items from the list onto the 'canvas'. The items can overlap 
and layer. Presumably when adding a new layer, the corresponding bound object 
in the data provider is at the highest index. 

To: flexcoders@yahoogroups.com
From: zomgfore...@gmail.com
Date: Tue, 17 Nov 2009 19:50:38 -0700
Subject: Re: [flexcoders] Layered ListBase component


















 



  



  
  
  As far as I can tell, List does almost exactly what you are after. The 
only caveat is your last sentence 'The depth of the display objects is bound to 
the data provider indexing.'.

The ItemRenderers of all List controls are re-used within the control, so the 
display objects are not at all connected to the index. Nor would you want to, 
if you had hundreds or thousands of items in your control. It seems as though 
this is a somewhat surmountable issue.


Check out the 'dragEnabled', 'dropEnabled' and 'dragMoveEnabled' properties of 
the list controls for more information.


On Tue, Nov 17, 2009 at 10:27 AM, method_air loudj...@hotmail.com wrote:
















 



  



  
  
  Hello,



I am looking for a component (presumably extending ListBase) that allows 
objects to be dropped inside of it, and positioned where they are dropped (kind 
of like a stage or root timeline). The depth of the display objects is bound to 
the data provider indexing.




Does such a component exist?



Thanks,



Philip







 









  












 









  
_
Use Hotmail to send and receive mail from your different email accounts
http://clk.atdmt.com/UKM/go/186394592/direct/01/

Re: [flexcoders] Layered ListBase component

2009-11-18 Thread Jeffry Houser


The Scrap blog canvas is most likely... well, a canvas or container.  
Dragging items from a list onto the canvas would just be like adding a 
new child to the canvas [I presume].  I've used scrap blog very little, 
but I would not be surprised if they have wrote a Z-order manager 
style class to control what shows on top of other things.


If you drag an item off the list based class, I Would expect the 
selectedIndex would reset to -1; the unselected state. 


Loud Jazz wrote:
 

Thanks. The component I'm looking for can be found at scrapblog.com, 
the user can drag and drop items from the list onto the 'canvas'. The 
items can overlap and layer. Presumably when adding a new layer, the 
corresponding bound object in the data provider is at the highest index.



To: flexcoders@yahoogroups.com
From: zomgfore...@gmail.com
Date: Tue, 17 Nov 2009 19:50:38 -0700
Subject: Re: [flexcoders] Layered ListBase component

 
As far as I can tell, List does almost exactly what you are after. The 
only caveat is your last sentence 'The depth of the display objects is 
bound to the data provider indexing.'.


The ItemRenderers of all List controls are re-used within the control, 
so the display objects are not at all connected to the index. Nor 
would you want to, if you had hundreds or thousands of items in your 
control. It seems as though this is a somewhat surmountable issue.


Check out the 'dragEnabled', 'dropEnabled' and 'dragMoveEnabled' 
properties of the list controls for more information.



On Tue, Nov 17, 2009 at 10:27 AM, method_air loudj...@hotmail.com wrote:

 
Hello,


I am looking for a component (presumably extending ListBase) that
allows objects to be dropped inside of it, and positioned where
they are dropped (kind of like a stage or root timeline). The
depth of the display objects is bound to the data provider indexing.

Does such a component exist?

Thanks,

Philip






Use Hotmail to send and receive mail from your different email 
accounts. Find out how. 
http://clk.atdmt.com/UKM/go/186394592/direct/01/




--
Jeffry Houser, Technical Entrepreneur
Adobe Community Expert: http://tinyurl.com/684b5h
http://www.twitter.com/reboog711  | Phone: 203-379-0773
--
Easy to use Interface Components for Flex Developers
http://www.flextras.com?c=104
--
http://www.theflexshow.com
http://www.jeffryhouser.com
--
Part of the DotComIt Brain Trust



Re: [flexcoders] Layered ListBase component

2009-11-18 Thread Chris
I've implemented something similar on a project. You need to define
dragEnter, dragExit,dragDrop events like so:

addEventListener(DragEvent.DRAG_ENTER, dragEnterHandler);
addEventListener(DragEvent.DRAG_EXIT, dragExitHandler);
addEventListener(DragEvent.DRAG_DROP, dragDropHandler);

And in your dragEnterHandler you can 'accept' the drag and on
dragDropHandler add a child to your canvas based on the data being dragged
in.

A great tutorial:
http://www.adobe.com/devnet/flex/quickstart/adding_drag_and_drop/


On Wed, Nov 18, 2009 at 11:08 AM, Jeffry Houser j...@dot-com-it.com wrote:




 The Scrap blog canvas is most likely... well, a canvas or container.
 Dragging items from a list onto the canvas would just be like adding a new
 child to the canvas [I presume].  I've used scrap blog very little, but I
 would not be surprised if they have wrote a Z-order manager style class to
 control what shows on top of other things.

  If you drag an item off the list based class, I Would expect the
 selectedIndex would reset to -1; the unselected state.

 Loud Jazz wrote:



 Thanks. The component I'm looking for can be found at scrapblog.com, the
 user can drag and drop items from the list onto the 'canvas'. The items can
 overlap and layer. Presumably when adding a new layer, the corresponding
 bound object in the data provider is at the highest index.

  --
 To: flexcoders@yahoogroups.com
 From: zomgfore...@gmail.com
 Date: Tue, 17 Nov 2009 19:50:38 -0700
 Subject: Re: [flexcoders] Layered ListBase component


  As far as I can tell, List does almost exactly what you are after. The
 only caveat is your last sentence 'The depth of the display objects is bound
 to the data provider indexing.'.

 The ItemRenderers of all List controls are re-used within the control, so
 the display objects are not at all connected to the index. Nor would you
 want to, if you had hundreds or thousands of items in your control. It seems
 as though this is a somewhat surmountable issue.

 Check out the 'dragEnabled', 'dropEnabled' and 'dragMoveEnabled' properties
 of the list controls for more information.


 On Tue, Nov 17, 2009 at 10:27 AM, method_air loudj...@hotmail.com wrote:


  Hello,

 I am looking for a component (presumably extending ListBase) that allows
 objects to be dropped inside of it, and positioned where they are dropped
 (kind of like a stage or root timeline). The depth of the display objects is
 bound to the data provider indexing.

 Does such a component exist?

 Thanks,

 Philip





 --
 Use Hotmail to send and receive mail from your different email accounts. Find
 out how. http://clk.atdmt.com/UKM/go/186394592/direct/01/


 --
 Jeffry Houser, Technical Entrepreneur
 Adobe Community Expert: 
 http://tinyurl.com/684b5hhttp://www.twitter.com/reboog711  | Phone: 
 203-379-0773
 --
 Easy to use Interface Components for Flex 
 Developershttp://www.flextras.com?c=104
 --http://www.theflexshow.comhttp://www.jeffryhouser.com
 --
 Part of the DotComIt Brain Trust

  



[flexcoders] Layered ListBase component

2009-11-17 Thread method_air
Hello,

I am looking for a component (presumably extending ListBase) that allows 
objects to be dropped inside of it, and positioned where they are dropped (kind 
of like a stage or root timeline). The depth of the display objects is bound to 
the data provider indexing.

Does such a component exist?

Thanks,

Philip



Re: [flexcoders] Layered ListBase component

2009-11-17 Thread Jeffry Houser


I guess I don't understand the request.

Don't most list based classes allow you to drag and drop items in them 
and then position those items where they were dropped? 

When you say depth, I'm unclear what you are referring to. 


method_air wrote:
 


Hello,

I am looking for a component (presumably extending ListBase) that 
allows objects to be dropped inside of it, and positioned where they 
are dropped (kind of like a stage or root timeline). The depth of the 
display objects is bound to the data provider indexing.


Does such a component exist?

Thanks,

Philip




--
Jeffry Houser, Technical Entrepreneur
Adobe Community Expert: http://tinyurl.com/684b5h
http://www.twitter.com/reboog711  | Phone: 203-379-0773
--
Easy to use Interface Components for Flex Developers
http://www.flextras.com?c=104
--
http://www.theflexshow.com
http://www.jeffryhouser.com
--
Part of the DotComIt Brain Trust