Mi TileList está así:
Código :
<mx:TileList right="10" left="10" top="10" bottom="10"
id="thumbnails" itemRenderer="Miniatura"
dataProvider="{xmlImagenes.lastResult.imagenes.imagen}" rollOverColor="#FFFFFF"
textRollOverColor="#FFFFFF" selectionColor="#FFFFFF"
maxColumns="4" paddingLeft="5"></mx:TileList>
No pongo todo porque es muy largo y solo nos interesa el TileList
y el itemRenderer está así:
Código :
<?xml version="1.0" encoding="utf-8"?>
<mx:Canvas xmlns:mx="http://www.adobe.com/2006/mxml" width="110" height="80" borderStyle="inset" backgroundColor="#FFFFFF">
<mx:Script>
<![CDATA[
import mx.controls.Alert;
import mx.events.CloseEvent;
private var alert:Alert;
private var idImg:int = 0;
[Embed(source="../images/iconos/image_warning.png")]
private var icono:Class;
private function editarImg():void
{
this.parentDocument.editarImgs();
}
private function borrarImg(id:int):void
{
idImg = id;
Alert.okLabel = "Eliminar";
Alert.cancelLabel = "Cancelar";
Alert.buttonWidth = 100;
alert = Alert.show("Está seguro que desea borrar esta imagen?", 'Advertencia!!', mx.controls.Alert.OK | mx.controls.Alert.CANCEL, this, alertListener);
alert.titleIcon = icono;
}
private function alertListener(eventObj:CloseEvent):void
{
if (eventObj.detail == Alert.OK)
this.parentDocument.eliminarImagenes(idImg);
else
idImg = 0;
}
]]>
</mx:Script>
<mx:Image x="9" y="7" height="60" width="60" source="{data.URL}" completeEffect="Blur"/>
<mx:Button x="77" y="7" width="18" icon="@Embed(source='../assets/edit.png')" height="18" click="editarImg();" toolTip="Editar"/>
<mx:Button x="77" y="33" width="18" icon="@Embed(source='../assets/delete.png')" height="18" click="borrarImg(data.ID);" toolTip="Eliminar"/>
</mx:Canvas>
Si le pongo paddingTop de x... si lo coge entre items... pero el left no

se ve feeeeeoooooo

gracias por la ayuda que me puedas brindar compadre