# Error #1056 and Error #2007

**URL:** https://forum.kirupa.com/t/error-1056-and-error-2007/332608
**Category:** flash
**Created:** [August 14, 2014, 12:57am UTC](https://forum.kirupa.com/t/error-1056-and-error-2007/332608 "2014-08-14T00:57:11Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![DeathTails](https://avatars.discourse-cdn.com/v4/letter/d/67e7ee/32.png) [@DeathTails](https://forum.kirupa.com/u/DeathTails)
#### Post date: [August 14, 2014, 12:57am UTC](https://forum.kirupa.com/t/error-1056-and-error-2007/332608/1 "2014-08-14T00:57:11Z")

</div>

[LIST]  
[\*]Error #1056: Cannot create property size on ResourceBox.  
[/LIST]  
[as]  
Line 16: var size:uint; // The size of the resource box currently  
Line 86: var boxOpen:Tween = new Tween(this, “size”, Regular.easeInOut, 40, maxSize, 60);  
[/as]  
I’m not sure why I’m getting this error as I did declare size.  
If I make ResourceBox dynamic the error goes away, but I get:

[LIST]  
[\*]Error #2007: Parameter listener must be non-null.  
[/LIST]

```auto

var BoxOpenEvent:Function = BoxOpenEventHandler();
stage.addEventListener(MouseEvent.CLICK, BoxOpenEvent);
function BoxOpenEventHandler():Function {
  return function(e:TweenEvent):void {
    ScaleBox();
  };
}

```

According to

```auto
<a href=http://stackoverflow.com/questions/13486230/to-pass-a-parameter-to-event-listener-in-as3-the-simple-way-does-it-exist>this source</a> 

```

this should be fine.

Any help is appreciated. I’ve been stuck for hours =/
