Listener question

I have an object contstructed as so:

contentSize = new Object();
ASBroadcaster.initialize(contentSize);
contentSize.addListener(box)
contentSize = 400;

So the question is can I use onChange for the box listener to activate a function? I want to listeners to detect when contentSize has changed and run x function() without using if statements everyframe. Any tips?