# Problems loading image in datagrid using flex Actionscript

**URL:** <https://forum.kirupa.com/t/problems-loading-image-in-datagrid-using-flex-actionscript/317980>\
**Category:** Uncategorized\
**Created:** [January 7, 2011, 9:33am UTC](https://forum.kirupa.com/t/problems-loading-image-in-datagrid-using-flex-actionscript/317980 "2011-01-07T09:33:07Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![rajesh\_flash](https://avatars.discourse-cdn.com/v4/letter/r/d2c977/32.png) [@rajesh\_flash](https://forum.kirupa.com/u/rajesh_flash)\
**Post date:** [January 7, 2011, 9:33am UTC](https://forum.kirupa.com/t/problems-loading-image-in-datagrid-using-flex-actionscript/317980/1 "2011-01-07T09:33:07Z")

</div>

Hello Friends,

I need a small help in Flex 3 & I am using flexbuilder 4.

Using flex 3 actionscript, i am getting the data and loading in DataGrid. Now I have a headerText called “Status” and the values will be either “Up” or “Down”. Now based on the status value, i want to load respective image. suppose if it is “Up”, i want to load Up.png and etc.

I want to achieve this using Flex ActionScript, I know i have to do using Itemrenderers and i dont know how to use it in actionscript. I need solution little urgent.

your help will be appreciated.  
Rajesh
