# Library bitmaps / string / class

**URL:** <https://forum.kirupa.com/t/library-bitmaps-string-class/300052>\
**Category:** Uncategorized\
**Created:** [November 15, 2009, 1:53pm UTC](https://forum.kirupa.com/t/library-bitmaps-string-class/300052 "2009-11-15T13:53:32Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![lope](https://avatars.discourse-cdn.com/v4/letter/l/43a26b/32.png) [@lope](https://forum.kirupa.com/u/lope)\
**Post date:** [November 15, 2009, 1:53pm UTC](https://forum.kirupa.com/t/library-bitmaps-string-class/300052/1 "2009-11-15T13:53:32Z")

</div>

i have a bitmap in the library with export name **Dots**

1. 

how do i take this and pass it to the class which expects a Bitmap as a parameter?

if i load it externally i could say:

```auto
var bmp:Bitmap = Bitmap(loader.content);

```

and pass it to the class.

i tried this but no success:

```auto
var c:Class = getDefinitionByName("Dots") as Class;
var bmp:Bitmap = new c(0, 0) as Bitmap;

```

1. 

i have a string var which will hold these library bitmap names, for example:

```auto
var myString:String = "Dots";

```

how do i do this from this string:

```auto
sprite.graphics.beginBitmapFill(new **Dots** (0, 0));

```
