# Hi there I'm new to the forum and have a code issue

**URL:** <https://forum.kirupa.com/t/hi-there-im-new-to-the-forum-and-have-a-code-issue/179796>\
**Category:** Uncategorized\
**Created:** [February 23, 2006, 1:41am UTC](https://forum.kirupa.com/t/hi-there-im-new-to-the-forum-and-have-a-code-issue/179796 "2006-02-23T01:41:35Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![pxstorm](https://avatars.discourse-cdn.com/v4/letter/p/71c47a/32.png) [@pxstorm](https://forum.kirupa.com/u/pxstorm)\
**Post date:** [February 23, 2006, 1:41am UTC](https://forum.kirupa.com/t/hi-there-im-new-to-the-forum-and-have-a-code-issue/179796/1 "2006-02-23T01:41:35Z")

</div>

I wonder if some of you could take a look at some code and the error message I’m getting and make some comments. This code is a button for a file attachment on my website. everything else seems to be all right but I keep getting this error on the button…and its driving me nuts! Any help would be great…thanks.

PX

The error is: **Error** Scene=Scene 1, layer=Fill attach Buttons, frame=15:Line 2: Statement must appear within on/onClipEvent handler  
{  
Total ActionScript Errors: 1 Reported Errors: 1

And the code is:

//Component construct()  
{  
icon = “”;  
label = “Remove”;  
labelPlacement = “right”;  
selected = false;  
toggle = false;  
enabled = true;  
visible = true;  
minHeight = 0;  
minWidth = 0;  
}
