# Very simple question

**URL:** <https://forum.kirupa.com/t/very-simple-question/286878>\
**Category:** Uncategorized\
**Created:** [April 22, 2009, 11:45am UTC](https://forum.kirupa.com/t/very-simple-question/286878 "2009-04-22T11:45:00Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![starbury](https://avatars.discourse-cdn.com/v4/letter/s/f04885/32.png) [@starbury](https://forum.kirupa.com/u/starbury)\
**Post date:** [April 22, 2009, 11:45am UTC](https://forum.kirupa.com/t/very-simple-question/286878/1 "2009-04-22T11:45:00Z")

</div>

can somebody help me and replace the “???” in the if statement below ? I’m looking to add a description for each picture in a text field… something like: if picture1 selected, text="", else if picture2 selected, text="", else text="";

thanks!

import fl.data.DataProvider;  
import fl.controls.TileList;

var imageDesc:TextField = new TextField();  
imageDesc.x = 200;  
imageDesc.y = 200;  
addChild(imageDesc);

var picsXML:XML = \<images\>  
\<item source=“photos/thumbs/tyrusThomas.jpg”/\>  
\<item source=“photos/thumbs/derrickRose.jpg”/\>  
\<item source=“photos/thumbs/vinnyDelNegro.jpg”/\>  
\</images\>;

var homePhotos:TileList = new TileList();  
homePhotos.dataProvider = new DataProvider(picsXML);  
homePhotos.columnWidth = 90;  
homePhotos.rowHeight = 130;  
homePhotos.columnCount = 1;  
homePhotos.rowCount = homePhotos.length;  
homePhotos.height = 390;  
addChild(homePhotos);  
homePhotos.addEventListener(MouseEvent.CLICK, showDesc);  
function showDesc(e:MouseEvent):void  
{  
if([SIZE=7]???[/SIZE])  
{  
imageDesc.text = “some text”;  
}  
}
