Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3277084
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T19:19:54+00:00 2026-05-17T19:19:54+00:00

I have a List with an item renderer and would like to enable drag-and-drop

  • 0

I have a List with an item renderer and would like to enable drag-and-drop onto the items in the list, rather than adding the data to the list. Is it possible to find the item that is being hovered over when dragging?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-17T19:19:55+00:00Added an answer on May 17, 2026 at 7:19 pm

    You can save the data that is being dragged from another element, using a “dragHandler” when the drag action starts like this:

    dragStart="dragHandler(event)"

    "dragHandler" should look like this:

    protected function dragHandler(event:DragEvent):void{
         yourSourceList.selectedItems;
    }

    You can save the selectedItems in a vector because that is the nature of the elements being dragged.

    Then in the itemRenderer of the list where you are going to drop the elements you have to set the property "dragEnter" in an element of the itemRenderer like a Group or a SkinnableContainer:

    dragEnter="dragEnterHandler(event)"

    Your "dragEnterHandler" should look like this:

    private function dragEnterHandler(e:DragEvent):void {
          DragManager.acceptDragDrop(e.currentTarget as IUIComponent);
    }

    Doing this will prevent the elements from being added to your list.

    And still in your Group or Skinnablecontainer of your itemRenderer you should have a "dragDrop" property set:

    dragDrop="dragDropHandler(event)"

    Then your "dragDropHandler"should look like this:

    private function dragDropHandler(e:DragEvent):void {
         //Do something when the elements are dropped
    }

    This way you don't have the need to explore the event variable of the dropped element because you already saved the items dragged in the "dragHandler" method

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have the following ListView with a custom list item: I would like to
Using flex4, I have a list with an item renderer: <mx:List id=queueView dataProvider={presenter.queue.items}> <mx:itemRenderer>
I have a list item with buttons in it like so: <mx:List contentBackgroundAlpha=0 baseColor=0x333333
I have a WPF listbox and have updated the list item data template to
I have a list of items. When I create the list each item has
I have an asp.net drop down list that has a number of items, users
I have a regular spark list which is sorted correctly when no item renderer
In my application, I have a List that uses an item renderer. The renderer
I have a list with time related data. the item renderers display this time.
I have a list item with a button inside. When the button is shown,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.