Make a tooltip scroll with the component?
i have series form items sitting within scrollable container. when click on textinput component brings tooltip. problem is, when scroll form items tooltip remains stationary. possible have tooltip scroll textinput field related to?
here simple demo:
<?xml version="1.0" encoding="utf-8"?> <mx:application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute"> <mx:script> <![cdata[ import mx.managers.tooltipmanager; import mx.controls.tooltip; private var tip:tooltip; private var message:string; private function showtip(e:object):void { message = "i have tooltip!"; tip = tooltipmanager.createtooltip(message, e.currenttarget.x + 500, e.currenttarget.y) tooltip; } private function removetip(e:object):void { tooltipmanager.destroytooltip(tip); } ]]> </mx:script> <mx:vbox width="200" height="200"> <mx:textinput focusin="showtip(event)" focusout="removetip(event)" /> <mx:textinput focusin="showtip(event)" focusout="removetip(event)" /> <mx:textinput focusin="showtip(event)" focusout="removetip(event)" /> <mx:textinput focusin="showtip(event)" focusout="removetip(event)" /> <mx:textinput focusin="showtip(event)" focusout="removetip(event)" /> <mx:textinput focusin="showtip(event)" focusout="removetip(event)" /> <mx:textinput focusin="showtip(event)" focusout="removetip(event)" /> <mx:textinput focusin="showtip(event)" focusout="removetip(event)" /> </mx:vbox> </mx:application>
thanks!
from current code, tooltip message same textinput. , show same tooltip which
indicates statitionary tooltip...
solution created dynamic tooltip each textbox example
message = "i have tooltip!" +
textinput(e.currenttarget).id
;
i mean dynamic text keep on changing different textbox.
hope got point!!!
More discussions in Flex (Read Only)
adobe
Comments
Post a Comment