if you are trying to manipulate the bar using listContainer.verticalScrollBar.scrollPosition try using the listContainer.verticalScrollPosition instead.
if that doesn't work it may be a timing issue in event stream and you might want to post your code that does the bar modifications
Small example that may not be useful. Also if it is a timing issue you may be able to use the callLater method to delay the movement of the bar until your event processing has completed
<?xml version="1.0" encoding="utf-8"?>
100%" height="100%" backgroundColor="#eaf1f6
listContainer.verticalScrollPosition = 0;
on" horizontalScrollPolicy="off" verticalGap="2"
Thanks very much it fixed it
So what verticalScrollBar.scrollPosition is for?
the verticalScrollBar is a reference to the scrollBar object of the vBox.
In fact you can use verticalScrollBar.scrollPosition to manipulate your scroll bar position in a container object though the documentation recommends that you should use the verticalScrollPosition to do this.
You could replace the verticalScrollPosition with the verticalScrollBar.scrollPosition in the example I gave you and you would see it works.
In your case I am guessing that there is an event issue you would be dealing with.
If you were to need a ScrollBar object alone, then you would use the scrollPosition of the object to manipulate the position of the bar.
In any case, Adobe recommends that you use the scroll references of the container object to manipulate the scroll properties of either the horizontal or vertical scroll bars.
Take a look at the api for a Container and read about the properties of the scrollBar and the attributes.