开发者

In flex, mouseOver in TextInput Programatically using AS3?

开发者 https://www.devze.com 2023-01-09 03:51 出处:网络
In flex, I 开发者_运维技巧am able to add mouseOver ( in mx:TextInput ) event as follow: mouseOver=\"canvas1_mouseDownHandler(event)\"

In flex, I 开发者_运维技巧am able to add mouseOver ( in mx:TextInput ) event as follow: mouseOver="canvas1_mouseDownHandler(event)"

It is not the property of TextInput so how can I do it programatically in ActionScript?


You add a listener to your text input:

myTextInput.addEventListener(MouseEvent.MOUSE_OVER, mouseOverHandler);

Hope that helps.

0

精彩评论

暂无评论...
验证码 换一张
取 消