I see, I didn't understand that you want to alter the drop-zone.  IIRC, 
altering renderer size/position on rollover has a difficulty rating of 8 out of 
10 if not higher.  The trick is to not have the list change its renderer 
mapping, and doing that on rollover is hard because the resizing affects what 
you've rolled over.  I'd probably try to use some of the dataEffects code 
(which won't work on DataGrid).  Honestly, I'm not sure it's been successfully 
done.  Search the web to see if someone's found an easy way to do this.

Also consider how such an effect will look when the drop area is being 
scrubbed.  If renderers are constantly shifting open and close it may not be 
pleasant to the eye and could also make targeting more difficult.

You could alter the paddingTop and paddingBottom for all renderers on 
DRAG_ENTER and restore on DRAG_EXIT.  Not as snazzy for sure, but I'd say 
that'd have a difficulty rating of 3 out 10.

From: [email protected] [mailto:[email protected]] On Behalf 
Of Todd
Sent: Tuesday, January 27, 2009 7:36 PM
To: [email protected]
Subject: [flexcoders] Re: Looking to tweak a List control's drop indicator


What I need is something that the dropIndicator, that can actually
take up space. Right now, I can draw whatever I want on the
dropIndicator, but it bleeds over the Items. I'd prefer it to have 10
pixels of padding on the top and bottom, so it "pushes" the Item
before and after away from the dropIndicator line with a nice animation.

I know I can make the dragImage whatever I want. But that's just
going to be displaying what I'm dragging, not affecting the potential
drop zone.

Maybe I need to work with temporarily adding a dummy ListItem where
the drop zone is going to be?

--- In [email protected]<mailto:flexcoders%40yahoogroups.com>, Alex 
Harui <aha...@...> wrote:
>
> The dropIndicator is a simple line showing where the drop will go.
>
> The dragProxy shows a dragImage that is handed into DragManager that
shows an image of what is being dragged. In theory, you can replace
the dragImage with a fancier one that changes somehow.
>
> From: [email protected]<mailto:flexcoders%40yahoogroups.com> 
> [mailto:[email protected]<mailto:flexcoders%40yahoogroups.com>]
On Behalf Of Todd
> Sent: Tuesday, January 27, 2009 9:02 AM
> To: [email protected]<mailto:flexcoders%40yahoogroups.com>
> Subject: [flexcoders] Looking to tweak a List control's drop indicator
>
>
> Hello All,
> I'm looking to change the behavior/looks of the drop indicator when
> rearranging items in a List control.
>
> I understand that I can make a new dropIndicatorSkin (which I hope
> to do this in Flash).
>
> However, I'd also like to add some separation between the items in
> the list when I drag the item over a potential drop spot. What would
> happen is both the item above and below would shift apart a bit.
> Ideally, the individual items wouldn't change size, but if it made it
> easier, they could squash a bit.
>
> Any suggestions on how to do something like this? (I'm thinking there
> might be an API inside Flex to already deal with this.)
>
> Thanks.
>

Reply via email to