# Sum questions and an error

**URL:** https://forum.kirupa.com/t/sum-questions-and-an-error/311423
**Category:** flash
**Created:** [July 6, 2010, 2:19pm UTC](https://forum.kirupa.com/t/sum-questions-and-an-error/311423 "2010-07-06T14:19:46Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![wildlion](https://avatars.discourse-cdn.com/v4/letter/w/67e7ee/32.png) [@wildlion](https://forum.kirupa.com/u/wildlion)
#### Post date: [July 6, 2010, 2:19pm UTC](https://forum.kirupa.com/t/sum-questions-and-an-error/311423/1 "2010-07-06T14:19:46Z")

</div>

Actually i was doing a project for a 3D virtual world and after i finished it i discoved i should include a package so as the flash can load in it’s client

code:

```php

package { 
   import com.imvu.widget.*; 
   import com.imvu.events.*; 
    
   public class avibutton extends ClientWidget { 

      public function initWidget():void { 
         this.widgetName = "avibuttons"; 
         this.space.addEventListener(com.imvu.widget.WidgetSpace.WIDGET_LOADED, addWidgetToStage); 
      } 
       
      public function addWidgetToStage(e:event):void { 
         this.space.removeEventListener(com.imvu.widget.WidgetSpace.WIDGET_LOADED, addWidgetToStage); 
      } 
   } 
} 

```

1-my question is \> can i add a class document (outer actionscript) beside the ones on buttons and timelines of the project or what will mes up the whole project?

2- why that errors appear when i load the code above from a document class (outer actionscript file) “1046: Type was not found or was not a compile-time constant: event.”?

3-anyone know what the code means or what it does?

Dats all ma questions and wish sumone can help me.

Thanks in advance
