scroll_var.addEventListener(Event.COMPLETE, onComplete); function onComplete(event:Event):void { scroll_var.update(); }