bennyxqg / bulk-loader

Automatically exported from code.google.com/p/bulk-loader
0 stars 0 forks source link

Feature request #55

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
One useful feature that I think is missing, is an specific event for items
that finishing loading, which actually carries some properties identifying
the item (maybe id or an actual reference to the item).

Right now, we can register individual listeners for events
Bulkloader.COMPLETE, but this provides no info on what item has fired the
event. So I think a Bulkloader.ITEM_COMPLETE or something similar is needed.

Original issue reported on code.google.com by turb...@gmail.com on 23 Oct 2008 at 9:36

GoogleCodeExporter commented 9 years ago
Hi Turboh.

The event object has a target property. That target is the LoadingItem subclass 
(ImageItem, XMLItem, ect) that 
generated the event. From that target you can fetch the id, content, or any 
thing else you may need. This 
conforms to how AS3 handles events, it works the same way.

Cheers
Arthur Debert

Original comment by debert on 23 Oct 2008 at 11:13