# Referencing Dynamically Loaded MovieClips

**URL:** <https://forum.kirupa.com/t/referencing-dynamically-loaded-movieclips/276420>\
**Category:** flash\
**Created:** [November 27, 2008, 12:57am UTC](https://forum.kirupa.com/t/referencing-dynamically-loaded-movieclips/276420 "2008-11-27T00:57:32Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![BenBart](https://avatars.discourse-cdn.com/v4/letter/b/6de8d8/32.png) [@BenBart](https://forum.kirupa.com/u/BenBart)\
**Post date:** [November 27, 2008, 12:57am UTC](https://forum.kirupa.com/t/referencing-dynamically-loaded-movieclips/276420/1 "2008-11-27T00:57:32Z")

</div>

You can reference a MovieClip by clicking “Export For Actionscript” in the Linkage field of the library and giving it a class name.

For example, I click the box and give it the class name “page1”;  
I can later access it with this code:

```auto
var mat1:BitmapAssetMaterial = new BitmapAssetMaterial("page1");
mat1.smooth = true;
mat1.oneSide = false;

```

I want to load JPGs dynamically (from XML) for Papervision. What’s the trick to being able to reference them properly?
