Advanced Flash Components
Search!
Search!
Home >  Knowledge Base >  Flow List (AS 3.0) >  Events on AS3 FLowlist
Events on AS3 FLowlist
Date: Oct 19, 2007   Views: 1656  
Question:
Hi,

I cant seem to access the description or actual data of the event:Object for your ITEM_ON_ROLL_OVER event.

The only propreties I can reference through the event.target are:

myXML
boundingBox_mc
_loadedItems

Using event.target.description returns undefined. So when I loop throught the propreties I get the 3 mentionned above.

How do i get a reference to the selected Item and access its propreties?
Answer:

wigz (Admin)
Patrick,

Sorry for the delayed response. We've been a bit behind on support in the last two weeks, but we are caught up now. Because of some changes in event dispatching for AS3, event.target is now the Flow List itself. To get properties of the individual item, use event.item instead. Here is an example:

import com.afcomponents.flowlist.FlowListEvent;

function flowRollOver(event:FlowListEvent) {   
    trace(event.item.id);
    trace(event.item.path);
    trace(event.item.description);
    trace(event.item.data);
}
myFlow.addEventListener(FlowListEvent.ITEM_ON_ROLL_OVER, flowRollOver);


Thank you!