# Problem with adding name to bitmap

**URL:** <https://forum.kirupa.com/t/problem-with-adding-name-to-bitmap/294387>\
**Category:** Uncategorized\
**Created:** [August 13, 2009, 11:00am UTC](https://forum.kirupa.com/t/problem-with-adding-name-to-bitmap/294387 "2009-08-13T11:00:46Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![tklecor](https://avatars.discourse-cdn.com/v4/letter/t/e79b87/32.png) [@tklecor](https://forum.kirupa.com/u/tklecor)\
**Post date:** [August 13, 2009, 11:00am UTC](https://forum.kirupa.com/t/problem-with-adding-name-to-bitmap/294387/1 "2009-08-13T11:00:46Z")

</div>

Hi!  
I want to add some instance name to bitmap (imported via AS3), and I’ve got this code:

```auto
private function loadSlide():void {
            //load image
            var imgLoader:Loader = new Loader;
            imgLoader.load(new URLRequest(src));
            imgLoader.contentLoaderInfo.addEventListener(Event.COMPLETE, createSlide);
        }
        private function createSlide(e:Event):void {
            //add image to stage
            var imgLoader:Loader = LoaderInfo(e.target).loader;
            var img:Bitmap = Bitmap(imgLoader.content);
            img.name = "test";
            addChild(img);

```

but I get an error:

```auto
 Error #2078: The name property of a Timeline-placed object cannot be modified.

```

Is there any method to add a name to bitmap object?

Thx!
