Sum questions and an error

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:



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