# Runtime Sharing: how to create instance of imported object

**URL:** <https://forum.kirupa.com/t/runtime-sharing-how-to-create-instance-of-imported-object/323933>\
**Category:** flash\
**Created:** [July 25, 2011, 3:19am UTC](https://forum.kirupa.com/t/runtime-sharing-how-to-create-instance-of-imported-object/323933 "2011-07-25T03:19:08Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![travisschau](https://avatars.discourse-cdn.com/v4/letter/t/b38774/32.png) [@travisschau](https://forum.kirupa.com/u/travisschau)\
**Post date:** [July 25, 2011, 3:19am UTC](https://forum.kirupa.com/t/runtime-sharing-how-to-create-instance-of-imported-object/323933/1 "2011-07-25T03:19:08Z")

</div>

Hi there!  
I’m working with Runtime Sharing, and can’t get past this issue…

In my Import.fla document, I import for Runtime Sharing the movieclip “StarIcon” from Export.swf. It has the class “StarIcon”.

I can’t figure out how to access “StarIcon” via Import.fla’s document class. When I try to say

```auto

var newIcon:StarIcon = new StarIcon();
addChild(newIcon);

```

I get a **1046:Type not found: StarIcon** error.

If I add that same code to Export.fla, it works fine… but obviously I don’t want to use it there.

Do I have to do something special in my document class to access the runtime sharing import?

thanks for any help… sorry this is confusing to explain!

-Travis
