UIScrollBar.scrollTarget=TLFTextField gets compiler error in Flash CS5
Hello,
I would add a scrollbar to a TLFTextField, I know that should be possible because in the official documentation scrollTarget is DisplayObject.
When I try to do that, Flash CS5 gets compiler error telling me that scrollTarget only accepts standard TextField.
Code:
var txt:TLFTextField=new TLFTextField();
var scrollBar:UIScrollBar=new UIScrollBar();
scrollBar.scrollTarget=txt; //error
Many thanks,
F.