Error 5007

I use flash cs4, and i’m doing a mouse trail effect,
but i keep getting error 5007 saying : An ActionScript file must have at least one externally visible definition.

i dunno what on earth it means and how to fix it.it says the error’s at line 1.

here’s the code thingy (.as file):

package 
{ 
    import flash.display.*; 
    import flash.events.*; 
    import flash.geom.ColorTransform; 
      
    public class ColorfulCircle extends MovieClip 
    { 
          
        var speed:Number; 
          
        public function ColorfulCircle() 
        { 
            speed=.01+.02*Math.random(); 
            this.alpha = .5; 
            SetRandomColor(); 
            this.addEventListener(Event.ENTER_FRAME, FadeCircleOut); 
        } 
          
        private function FadeCircleOut(e:Event) 
        { 
            this.alpha-=.5*speed; 
            this.scaleX+=5*speed; 
            this.scaleY+=5*speed; 
              
            if (this.alpha<0) 
            { 
                this.removeEventListener(Event.ENTER_FRAME, FadeCircleOut); 
                parent.removeChild(this); 
            } 
        } 
          
        private function SetRandomColor() 
        { 
            var colorArray:Array = new Array(0xFFFF33, 0xFFFFFF, 0x79DCF4, 0xFF3333, 0xFFCC33, 0x99CC33); 
            var randomColorID:Number = Math.floor(Math.random()*colorArray.length); 
              
            var myColor:ColorTransform = this.transform.colorTransform; 
            myColor.color=colorArray[randomColorID]; 
              
            this.transform.colorTransform = myColor; 
        } 
    } 
}

Any Help Would Be Appreciated,Thanks!