# When I adda a class to my work why I am getting 1046: Type was not found Error?

**URL:** <https://forum.kirupa.com/t/when-i-adda-a-class-to-my-work-why-i-am-getting-1046-type-was-not-found-error/635471>\
**Category:** flash\
**Created:** [October 24, 2016, 2:22pm UTC](https://forum.kirupa.com/t/when-i-adda-a-class-to-my-work-why-i-am-getting-1046-type-was-not-found-error/635471 "2016-10-24T14:22:12Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ekoneo](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/ekoneo/32/8893_2.png) [@ekoneo](https://forum.kirupa.com/u/ekoneo)\
**Post date:** [October 24, 2016, 2:22pm UTC](https://forum.kirupa.com/t/when-i-adda-a-class-to-my-work-why-i-am-getting-1046-type-was-not-found-error/635471/1 "2016-10-24T14:22:12Z")

</div>

Hi everyboy,

My work normally Works fine. But I decided to add a class (controlParts.as). Although this class empty (includes the default creation includings), my work gives an error:  
1046: Type was not found or was not a compile-time constant: IOErrorEvent.  
I didnt add anything to the class. It is emty. Why I am getting error like missing import elements?  
Thanks.
