# 1120:Access of undefined property button

**URL:** https://forum.kirupa.com/t/1120-access-of-undefined-property-button/305553
**Category:** Uncategorized
**Created:** [February 27, 2010, 4:11am UTC](https://forum.kirupa.com/t/1120-access-of-undefined-property-button/305553 "2010-02-27T04:11:42Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![aliennoise](https://avatars.discourse-cdn.com/v4/letter/a/f6c823/32.png) [@aliennoise](https://forum.kirupa.com/u/aliennoise)
#### Post date: [February 27, 2010, 4:11am UTC](https://forum.kirupa.com/t/1120-access-of-undefined-property-button/305553/1 "2010-02-27T04:11:42Z")

</div>

Please … i dont get what im doing wrong. AS3 Doc with 2 mc’s with instances on stage"box1" , “box2” getting this error cant past trough it… cant figure out what im doing wrong.

Any help would be appreciated

1120: Access of undefined property button. button.addEventListener(MouseEvent.ROLL\_OVER, overHandler);

```php
import com.greensock.*;
import com.greensock.easing.*;
import flash.events.MouseEvent;

var timeline:TimelineLite = new TimelineLite();
timeline.append(new TweenLite(box1, 1, {y:"-100"}));
timeline.append(new TweenLite(box2, 1, {y:"-100"}));

button.addEventListener(MouseEvent.ROLL_OVER, overHandler);
button.addEventListener(MouseEvent.ROLL_OUT, outHandler);

function overHandler(event:MouseEvent):void {
    timeline.reverse();
}
function outHandler(event:MouseEvent):void {
    timeline.play();
}

```
