Unfortunately Flash's UIScrollBar component does not have a method to handle this. You could listen to the Editblock that is attached to the text field and set the scrollbar from there.
| Code: : |
var ebListen:Object = {};
ebListen.complete = function(obj:Object){
if (obj.target.targetMC.scroll == obj.target.targetMC.maxscroll) scrl._visible = false
else scrl._visible = true
}
eb.addEventListener("complete", ebListen);
|
Another option, if you are using embedded fonts, is to use the smooth scroller 2 module that comes with Flashblocks. See the demo site.