as3 movieclip compiler error 1120 referencing class document

hi,

I had the code originally working in the timeline, but after moving from timeline “player_v2” to “infoElement” to place a new button instance it started throwing errors. I have not been able to correct the problem.

import fl.controls.Button;
import flash.display.Sprite;
import flash.display.Stage;
import com.player;
import com.gigyaSocial;

var infoElement:String =new String();
var aButton:Button = new Button();
addChild(aButton);
aButton.label = "Share With Friends";
aButton.toggle =  true; 
aButton.move(419.3,43.4);
aButton.addEventListener(MouseEvent.CLICK, clickHandler);
var gs:gigyaSocial;
function clickHandler(event:MouseEvent):void {
    trace('this Button Clicks');
 //trace ("quote from player_v2 infoElement: "+quote);
 gs= new gigyaSocial (this,player_v2.quote);
}

Thanks for any suggestions.:insomniac: