# Runtime Shared Library woes

**URL:** <https://forum.kirupa.com/t/runtime-shared-library-woes/279239>\
**Category:** flash\
**Created:** [January 12, 2009, 7:29am UTC](https://forum.kirupa.com/t/runtime-shared-library-woes/279239 "2009-01-12T07:29:18Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![darnpunk](https://avatars.discourse-cdn.com/v4/letter/d/ad7895/32.png) [@darnpunk](https://forum.kirupa.com/u/darnpunk)\
**Post date:** [January 12, 2009, 7:29am UTC](https://forum.kirupa.com/t/runtime-shared-library-woes/279239/1 "2009-01-12T07:29:18Z")

</div>

Hi,

I am facing an error using shared libraries. The error pops up during compile and only happen when I give an instance name to my imported asset. Let me describe further:

I have an asset library where all movie clips in this file are exported for runtime sharing - LibraryA.swf

Next is the file that uses the assets - ShirtA.swf

What I did is to import an asset from LibraryA.swf (e.g. collar) into ShirtA.swf. Now I have collar movieclip in my ShirtA library. I drag an instance of it to the stage and compile. No problems.

I then gave this instance a name, “myCollar”. I tried to compile again, and I get an error from Flash IDE - 1046: Type was not found or was not a compile-time constant: collar :stare:

I am clueless right now where I have gone wrong. I need the instance name as later on, I will need to use some scripts to control it. Has anyone experience this before?
