# Access class defined in "linkage..." from external class

**URL:** <https://forum.kirupa.com/t/access-class-defined-in-linkage-from-external-class/230054>\
**Category:** flash\
**Created:** [June 22, 2007, 8:15am UTC](https://forum.kirupa.com/t/access-class-defined-in-linkage-from-external-class/230054 "2007-06-22T08:15:42Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![arckodrazen](https://avatars.discourse-cdn.com/v4/letter/a/e95f7d/32.png) [@arckodrazen](https://forum.kirupa.com/u/arckodrazen)\
**Post date:** [June 22, 2007, 8:15am UTC](https://forum.kirupa.com/t/access-class-defined-in-linkage-from-external-class/230054/1 "2007-06-22T08:15:42Z")

</div>

Hi

Rather strange title hu? 🙂 Well, I’m trying to access a class which was defined on a library symbol in my main.fla by using the Linkage… dialog. Classname: GrungeTitle, BaseClass: BitmapData.

I’m trying to access this class to build my repeating background on my main.fla (which uses a document class: base.as).

My code of the document class:

```auto

        public function init():void {
            grungeBackgroundTile = new GrungeTile(300, 300);

            var spr:Sprite = new Sprite();
            spr.graphics.beginBitmapFill(grungeBackgroundTile);
            spr.graphics.drawRect(100, 100, 100, 100);
            spr.graphics.endFill();
            
            addChild(spr);
        }

```

This code gets called on the third frame of my main.fla by calling: init();  
When I try to draw a simple square in the sprite, the rectangle gets drawn on the stage, when I try to make a fill with a library item then it doesn’t display a thing.

Any help?  
Thanks
