<?xml version="1.0" encoding="utf-8"?>
<mx:Application backgroundColor="#ffffff" themeColor="#f5f5f5" xmlns:mx="
http://www.adobe.com/2006/mxml" layout="absolute" xmlns:local="*">
<mx:Script>
<![CDATA[
public function toscoDataTip(item:Object):String
{
return "What tosco is?" +"\n"+"\r"
+ item.toString();
}
]]>
</mx:Script>
<mx:Array id="toscos">
<mx:String>Tosco 1</mx:String>
<mx:String>Tosco 2</mx:String>
<mx:String>Tosco 3</mx:String>
</mx:Array>
<mx:Component id="toscoItem">
<mx:Label fontSize="20"/>
</mx:Component>
<mx:TileList showDataTips="true" id="listagemTosca"
itemRenderer="{toscoItem}" dataTipFunction="toscoDataTip" width="200"
height="200" dataProvider="{toscos}"/>
</mx:Application>
Remove the itemrender and then you will see the DataTipFunction working.
--
----------------------------
Igor Costa
www.igorcosta.org
www.igorcosta.com