# Flash ignores my code when I load a swc

**URL:** <https://forum.kirupa.com/t/flash-ignores-my-code-when-i-load-a-swc/272511>\
**Category:** Uncategorized\
**Created:** [October 6, 2008, 1:37am UTC](https://forum.kirupa.com/t/flash-ignores-my-code-when-i-load-a-swc/272511 "2008-10-06T01:37:20Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Vania](https://avatars.discourse-cdn.com/v4/letter/v/22d042/32.png) [@Vania](https://forum.kirupa.com/u/Vania)\
**Post date:** [October 6, 2008, 1:37am UTC](https://forum.kirupa.com/t/flash-ignores-my-code-when-i-load-a-swc/272511/1 "2008-10-06T01:37:20Z")

</div>

I have used SWC based components succesfully in the past.

This time I created a SWC containing a lot of graphics that were taking too much time to build(It’s just a bunch of movieclips)  
The problem is when I try to use this SWC in my main PROJECT the AS3 is ignored.  
The graphics show, animations work, but no code is executed.  
I cant debug because Flash tells me “the project does not contain AS3”.

I can load this component without problems into another project: it works and the AS3 runs.  
I can load other SWC components into my main PROJECT without problems.  
The problem is when I try to use this particular component in that particular project.

Things I have tried:  
-made a script to replace all the movieclips in my project with their duplicates, to remove sharedObjects.

I have been searching for a solution for a week now, I would really appreciate if someone knows what might be causing this conflict.
