# as3 movieclip compiler error 1120 referencing class document

**URL:** <https://forum.kirupa.com/t/as3-movieclip-compiler-error-1120-referencing-class-document/308500>\
**Category:** flash\
**Created:** [April 24, 2010, 4:48am UTC](https://forum.kirupa.com/t/as3-movieclip-compiler-error-1120-referencing-class-document/308500 "2010-04-24T04:48:40Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![bob\_stone](https://avatars.discourse-cdn.com/v4/letter/b/f4b2a3/32.png) [@bob\_stone](https://forum.kirupa.com/u/bob_stone)\
**Post date:** [April 24, 2010, 4:48am UTC](https://forum.kirupa.com/t/as3-movieclip-compiler-error-1120-referencing-class-document/308500/1 "2010-04-24T04:48:40Z")

</div>

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.

```auto
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:
