Error #1056 and Error #2007

[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]


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

According to

<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 =/