# Custom Component Issues - CS3 vs. CS4

**URL:** <https://forum.kirupa.com/t/custom-component-issues-cs3-vs-cs4/302679>\
**Category:** Uncategorized\
**Created:** [January 5, 2010, 6:10pm UTC](https://forum.kirupa.com/t/custom-component-issues-cs3-vs-cs4/302679 "2010-01-05T18:10:41Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![bubbadawg](https://avatars.discourse-cdn.com/v4/letter/b/ea5d25/32.png) [@bubbadawg](https://forum.kirupa.com/u/bubbadawg)\
**Post date:** [January 5, 2010, 6:10pm UTC](https://forum.kirupa.com/t/custom-component-issues-cs3-vs-cs4/302679/1 "2010-01-05T18:10:41Z")

</div>

Hello All,

I have created a custom checkbox component that extends UIComponent. I  
am having some strange issues when I create the component in CS3 vs.  
CS4. If I use CS3 to create and compile (create swc) the component, I am  
able to place trace statements in draw() and setSize(). I am able to see  
these trace statements when the component is placed on the stage from  
the library, resized, and then when the entire FLA is compiled. The  
component also does not become distorted if increase or decrease the  
width.

Now when in CS4, using the exact same code, none of the trace statements get executed at all. When the component is resized, it becomes  
distorted. Additionally, once the checkbox component is on the stage, if  
I copy it and then paste it back on the stage, the assets of the  
checkbox disappear, i.e. check, box, label, etc. This is also true of  
any subsequent custom checkbox components that I drag from the library  
and place on the stage. The only thing visible is the bounding box. Now  
when the FLA gets compiled, the checkbox works as expected. However, in  
its current condition, with it not being visible, the component is usesless as the label and placement need to be seen and set at design  
time.

Any suggestions or insight on how to resolve this issue. I would be  
happy to share the source code and FLA.

Thanks for any and all replies.
