# Help needed in debugging ActionScript

**URL:** <https://forum.kirupa.com/t/help-needed-in-debugging-actionscript/180820>\
**Category:** flash\
**Created:** [March 3, 2006, 5:05pm UTC](https://forum.kirupa.com/t/help-needed-in-debugging-actionscript/180820 "2006-03-03T17:05:19Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![cw\_lady](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/cw_lady/32/2203_2.png) [@cw\_lady](https://forum.kirupa.com/u/cw_lady)\
**Post date:** [March 3, 2006, 5:05pm UTC](https://forum.kirupa.com/t/help-needed-in-debugging-actionscript/180820/1 "2006-03-03T17:05:19Z")

</div>

I’m using Flash 2004. I currently applied the Snow tutorial to a project I’m working on (using the tutorial for 2004). I have the following 4 errors which I have no clue on how to fix (I’m new to this and only started playing with ActionScripts). Can anyone give me some advice on how to fix this? Maybe I can send you the whole file so you can find what I’ve done wrong?

~Kym~

**Error Symbol=stars, layer=Layer 1, frame=1:Line 1: Clip events are permitted only for movie clip instances**  
**onClipEvent (load) {**

**Error Symbol=stars, layer=Layer 1, frame=1:Line 16: Clip events are permitted only for movie clip instances**  
**onClipEvent (enterFrame) {**

**Error Symbol=stars\_mc, layer=Layer 1, frame=1:Line 1: Statement must appear within on/onClipEvent handler**  
**stars = 75;**

**Error Symbol=stars\_mc, layer=Layer 1, frame=1:Line 2: Statement must appear within on/onClipEvent handler**  
**do {**

**Total ActionScript Errors: 4 Reported Errors: 4**
