# Problem on using custom SWC component

**URL:** <https://forum.kirupa.com/t/problem-on-using-custom-swc-component/304012>\
**Category:** flash\
**Created:** [January 30, 2010, 5:22pm UTC](https://forum.kirupa.com/t/problem-on-using-custom-swc-component/304012 "2010-01-30T17:22:17Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![yankleber](https://avatars.discourse-cdn.com/v4/letter/y/46a35a/32.png) [@yankleber](https://forum.kirupa.com/u/yankleber)\
**Post date:** [January 30, 2010, 5:22pm UTC](https://forum.kirupa.com/t/problem-on-using-custom-swc-component/304012/1 "2010-01-30T17:22:17Z")

</div>

Hi,

I have writen this SWC component. If I run a test FLA from the same folder where the AS class is, it works. But if I install the component in the components folder and try to instantiate it from somewhere else (any folder but the one where the AS class is) I get the following error:

\*ArgumentError: Error #1063: Argument count mismatch on MyComponent. Expected 0, got 4.  
\*  
Obviously, the declaration of the class component needs 4 arguments, but Flash is complaining with me.

What am I missing here?
