I currently have a tile list which, when clicked on, correctly calls a
function
<mx:TileList id="myTiles" dataProvider="{myData}"
listItemRenderer="ThumbNail" itemClick="imageClicked()" />
I wish to alternatively set up a listener
<mx:TileList id="myOtherTiles" dataProvider="{myData}"
listItemRenderer="ThumbNail" />
function createListener():Void {
myOtherTiles.addEventListener(MouseEvent.CLICK, myClickListener);
}
function myClickListener(e:MouseEvent):Void {
trace ("A thumbnail was clicked");
}
No errors occur (though I do get a warning that the functions have
been scoped to Images:Internal) but the myClickListener function is
not called
--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/