Main | Mouse events outside the browser window »
Tuesday
20Jan2009

Air TilieList drag bug workaround

This fix (more of a workaround really) is regarding a bug raised here

http://bugs.adobe.com/jira/browse/SDK-14156

In Air (even v1.5), when an item is dragged from a TileList, the image data is not visible in the drag icon.

To circumvent the issue I created a ListItemDragProxyPro class which allows us to create a custom drag icon for use with the TileList.

Since the drag proxy is completely custom I added a selection counter in the corner (the CircleIndicator component).

Here is an image of what it looks like.

 

To test this for yourself please feel free to view source and use it for your own projects.

View Source (a .air package is also included with the source)

If you have any questions about the code let me know and I'll go into it in more detail.

Reader Comments (1)

Thanks sharing this info!

August 24, 2009 | Unregistered CommenterBuenos Aires real estate

PostPost a New Comment

Enter your information below to add a new comment.

My response is on my own website »
Author Email (optional):
Author URL (optional):
Post:
 
Some HTML allowed: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <code> <em> <i> <strike> <strong>