PDA

View Full Version : [AS3] List Component question


absolutezero3424
09-04-2007, 04:23 PM
How do you check for a List item MOUSE_OVER/ROLL_OVER event on a List Component in AS3? Is there a way? I would think so....The same could be true for a TileList Component & a DataGrid Component.

panel
09-04-2007, 04:35 PM
import fl.events.ListEvent;

myList.addEventListener(ListEvent.ITEM_ROLL_OVER, onItemRollOver);

function onItemRollOver(evt:ListEvent)
{
trace("Over")
}


Yes it will work for TileList Component & DataGrid

absolutezero3424
09-04-2007, 05:12 PM
awesome, thx!