# Document Class and Instantiating Linkage / Exported Library Items

**URL:** <https://forum.kirupa.com/t/document-class-and-instantiating-linkage-exported-library-items/313104>\
**Category:** flash\
**Created:** [August 20, 2010, 3:34am UTC](https://forum.kirupa.com/t/document-class-and-instantiating-linkage-exported-library-items/313104 "2010-08-20T03:34:45Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![oreth](https://avatars.discourse-cdn.com/v4/letter/o/977dab/32.png) [@oreth](https://forum.kirupa.com/u/oreth)\
**Post date:** [August 20, 2010, 3:34am UTC](https://forum.kirupa.com/t/document-class-and-instantiating-linkage-exported-library-items/313104/1 "2010-08-20T03:34:45Z")

</div>

I have a symbol named picHolder. In symbol properties under linkage, I chose “Export for ActionScript” and “Export in frame 1” and gave it a class name of picHolder.

Normally, to instantiate a new instance, I’d say:

```auto

var tempPic:picHolder = new picHolder();

```

and I’d go about my way.

However, I’ve recently discovered the wonder of Document Classes and my Document has a class of “Foo” and in Foo.as, I write all of my ActionScript.

The problem is, I can’t, for the life of me, figure out how to create an instance of picHolder in my document class file, Foo.as

Any suggestions?
