-
-
Save takumus/952b67814095df83a322b3b9d0ae6136 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//mousedown | |
body.addEventListener(ListCellMouseEvent.MOUSE_DOWN, function(e:ListCellMouseEvent):void | |
{ | |
if(body.mouseX > cellWidth - 70){ | |
//if mousedown on right of cell, begin sort. | |
beginSort(); | |
} | |
}); | |
//click | |
body.addEventListener(ListCellMouseEvent.CLICK, function(e:ListCellMouseEvent):void | |
{ | |
if(body.mouseX < 70){ | |
//if click on left of cell, remove this cell. | |
remove(); | |
}else if(body.mouseX < cellWidth - 70){ | |
//if click on center of cell, message. | |
message("Hi. My data is [" + data.data + "]"); | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment