# SWC and Library Path

**URL:** <https://forum.kirupa.com/t/swc-and-library-path/322499>\
**Category:** flash\
**Created:** [May 23, 2011, 4:46pm UTC](https://forum.kirupa.com/t/swc-and-library-path/322499 "2011-05-23T16:46:27Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![lotus\_](https://avatars.discourse-cdn.com/v4/letter/l/9fc29f/32.png) [@lotus\_](https://forum.kirupa.com/u/lotus_)\
**Post date:** [May 23, 2011, 4:46pm UTC](https://forum.kirupa.com/t/swc-and-library-path/322499/1 "2011-05-23T16:46:27Z")

</div>

Hello, in Flash CS4 I created two FLA file.

In the First File:

- I draw a shape;
- I convert it to a MovieClip;
- I link a MyClip class with a simple trace in the constructor;
- I export the whole file as MyClip.SWC;

In the Second File:

- I go to Edit \> Preferences \> ActionScript \> ActionScript 3 settings and I add -in the Library Path- the file MyClip.SWC;
- on the first frame of this swf I write var myClip:MyClip = new MyClip(); addChild(myClip);

I don’t know what I’m doing wrong but when I compile (export swf) the class gets loaded (I see the trace in the output window) BUT I can’t see the graphics associated to MyClip. It seems MyClip.SWC only contains the code of that clip.

What am I doing wrong?  
Is it even possible what I’m trying to do?

Can you help me?  
Thanks!
