actionscript 3 - Giving/obtaining a reference to (or the name of) a UIScrollBar in a TextArea -
this such mindnumbingly simple question, apparently forums actionscript discussed (or @ least ones on google) aren't managed.
i have textarea. has uiscrollbar. want able reference scrollbar. heard there's update() function, , may able save me inexplicable things damnable uiscrollbar doing on own.
(btw, actionscript = joke language)
when scrollbar added textarea, dispatches event added. can catch scrollbar this:
textarea.addeventlistener(event.added, ontextareachildadded); private function ontextareachildadded(event:event):void { if (event.target uiscrollbar) { //you got var scrollbar:uiscrollbar = event.target uiscrollbar; } }
event scrollbar fired once. there many other stuff adds textarea, type check needed.
know ya jokes , cool ^_^
edit: wrong... real solution seems textarea.verticalscrollbar.
Comments
Post a Comment