# Library bitmaps in TileList component

**URL:** https://forum.kirupa.com/t/library-bitmaps-in-tilelist-component/297467
**Category:** Uncategorized
**Created:** [October 2, 2009, 4:22pm UTC](https://forum.kirupa.com/t/library-bitmaps-in-tilelist-component/297467 "2009-10-02T16:22:18Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Geokureli](https://avatars.discourse-cdn.com/v4/letter/g/ea666f/32.png) [@Geokureli](https://forum.kirupa.com/u/Geokureli)
#### Post date: [October 2, 2009, 4:22pm UTC](https://forum.kirupa.com/t/library-bitmaps-in-tilelist-component/297467/1 "2009-10-02T16:22:18Z")

</div>

code from adobe livedocs:

```auto
import fl.controls.TileList;
import fl.controls.listClasses.CellRenderer;
var myTileList:TileList = new TileList();
myTileList.addItem({iconSrc:MyIcon});
myTileList.addItem({iconSrc:MyIcon});
myTileList.setStyle('cellRenderer', CellRenderer);    
myTileList.iconField = "iconSrc";
myTileList.columnWidth = myTileList.rowHeight = 50;
myTileList.columnCount = myTileList.length;
myTileList.rowCount = 1;
myTileList.move(10, 10);
addChild(myTileList);

```

this works, it grabs the MyIcon MovieClip from the library. and puts it in 2 cells, but when i try to say :  
myTileList.addItem({iconSrc:Eraser});//Eraser being a jpg in the library.

it doesn’t work, because when it tries to instantiate it, it has the wrong number of arguments. anybody know how i can put library bitmaps in the TileList component
