Hi, thanks for the replay. I just adjusted the code to use an onUpdate function and works. Thanks!
What I wanted to do is to scroll up the whole "stage" but on resizing I couldn't update the width+height of the scrolling container to the new width and height (the new stagewidth)
So my code tweens the maxPosY number and the onUpdate sets the scrollRect
TweenMax.to(this, t, {maxPosY:-_backgroundManager.height, ease:Linear.easeNone,onUpdate:setScrollRect});
private function setScrollRect():void
{
_scrollRect.bottom=stage.stageHeight;
_scrollRect.top=maxPosY;
_scrollRect.right=stage.stageWidth;
_scrollRect.left=0;
_container.scrollRect = _scrollRect;
}
Again, Thanks!