# Cursor Visiblity problem in AS3

**URL:** <https://forum.kirupa.com/t/cursor-visiblity-problem-in-as3/322489>\
**Category:** flash\
**Created:** [May 23, 2011, 10:47am UTC](https://forum.kirupa.com/t/cursor-visiblity-problem-in-as3/322489 "2011-05-23T10:47:39Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Milan\_vaja](https://avatars.discourse-cdn.com/v4/letter/m/8797f3/32.png) [@Milan\_vaja](https://forum.kirupa.com/u/Milan_vaja)\
**Post date:** [May 23, 2011, 10:47am UTC](https://forum.kirupa.com/t/cursor-visiblity-problem-in-as3/322489/1 "2011-05-23T10:47:39Z")

</div>

Hi Eveery One i am havin problem with my code.

with the help of my this code i can get focus to textField but cant see cursor on textBox it only visible after click on textBOx;

i can also trace mouseEvent  
by receiving “HI”;

```auto

var tex:TextField = new TextField;
tex.type = TextFieldType.INPUT;
tex.text = "mtText";
addChild(tex);
tex.autoSize = TextFieldAutoSize.CENTER;

stage.addEventListener(MouseEvent.CLICK,clk);
stage.addEventListener(Event.ACTIVATE,loop);

function clk(e:MouseEvent){
	trace("HI");
	stage.focus = tex;
}

function loop(e:Event){
	dispatchEvent(new MouseEvent(MouseEvent.CLICK))	
}

```

i want initially cursor visiblity on it.  
thanks in advance
