function onClick(event:MouseEvent):void {
stage.focus = elnputText
}
你说的是文本框的焦点 还是鼠标的焦点??this.addEventListener(MouseEvent.CLICK,clickfn)
function clickfn(event:MouseEvent):void {
stage.focus = wenbenText
}
如果想获得鼠标的xy轴
stage.mouseX
stage.mouseY
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)