PDA

View Full Version : [AS3] TileList custom mouseevents for objects


jbailey
01-11-2008, 11:39 PM
For the TileList component's objects how do you make custom mouseEvents (eg onRollOver) ?

springframework
01-12-2008, 10:21 AM
you make a custom itemrenderer

your itemrenderer can be as simple as this


<?xml version="1.0" encoding="utf-8"?>
<mx:Canvas xmlns:mx="http://www.adobe.com/2006/mxml"
rollOver="{trace(data.@specificelementattributeinfo)}">
</mx:Canvas>



i cant find any good TileListItemRenderer tutorials for the TileList itself, but check out ListItemRenderer tutorials for the List component. They should be very similar.



Jesse Couch actionscript 3.0 (http://www.jessecouch.com)