# Problem while exporting swf

**URL:** <https://forum.kirupa.com/t/problem-while-exporting-swf/328017>\
**Category:** flash\
**Created:** [April 13, 2012, 2:27am UTC](https://forum.kirupa.com/t/problem-while-exporting-swf/328017 "2012-04-13T02:27:32Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![trnghosh](https://avatars.discourse-cdn.com/v4/letter/t/ad7895/32.png) [@trnghosh](https://forum.kirupa.com/u/trnghosh)\
**Post date:** [April 13, 2012, 2:27am UTC](https://forum.kirupa.com/t/problem-while-exporting-swf/328017/1 "2012-04-13T02:27:32Z")

</div>

While trying to exporting swf in a flash AS 3 template I got this error.

C:\Documents and Settings\INDIA\Desktop\finalSiteV1\flash\Main.as, Line 136 1046: Type was not found or was not a compile-time constant: TemplateEvent.  
C:\Documents and Settings\INDIA\Desktop\finalSiteV1\flash\Main.as, Line 144 1046: Type was not found or was not a compile-time constant: TemplateEvent.

I attached herewith the Class files to look into. Can anyone tell me how to avert this problem.
