The following event handler takes a few seconds to run. I want to give the user a courtesy message while processing happens. The problem is that the “Updating . . .” message never appears. After the processing delay only “Done” shows up. I’ve worked around the problem by putting the “Updating . . .” message in an event handler for SliderEvent:THUMBDRAGGED. But processing doesn’t really begin until the thumb is released. I’d rather have my program tell the truth.
public function sliderChanged(e:SliderEvent):void {
myStatus.text = "Updating . . .";
removeDots();
placeAllDots();
thresholdText.text = thresholdSlider.value.toString();
myStatus.text = "Done";
}