Skip navigation
Currently Being Moderated

change state for itemRenderer when drag complete

Apr 27, 2013 10:44 PM

Tags: #flex4

I have a List with dragEnabled = true, and selectionColor = "#ff0000", when the user selects one item, it behaves as what I expect. But when I complete drag and release item, it still remains selected state. What I want is when drag complete, the item back to normal state, NOT selected state. What I do is that I check if the data dropComplete property is true, then change the state, but it can NOT work.

my code is following:

override protected function getCurrentRendererState():String {
    currentState = super.getCurrentRendererState();
    if(data.dropComplete) {
        currentState = null;
        data.dromComplete = false;


More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points