# Problem with visibility of handCursor below the TextFields

**URL:** <https://forum.kirupa.com/t/problem-with-visibility-of-handcursor-below-the-textfields/290556>\
**Category:** Uncategorized\
**Created:** [June 16, 2009, 12:41pm UTC](https://forum.kirupa.com/t/problem-with-visibility-of-handcursor-below-the-textfields/290556 "2009-06-16T12:41:31Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![SrihariCh](https://avatars.discourse-cdn.com/v4/letter/s/f1d935/32.png) [@SrihariCh](https://forum.kirupa.com/u/SrihariCh)\
**Post date:** [June 16, 2009, 12:41pm UTC](https://forum.kirupa.com/t/problem-with-visibility-of-handcursor-below-the-textfields/290556/1 "2009-06-16T12:41:31Z")

</div>

Hi All,  
I am working with handCursor on text-field instances using Flash and ActionScript 3.0.

But, here, I am getting a problem to the following code:  
import fl.containers.ScrollPane;

```auto

var myClip:MovieClip=new MovieClip();
var sp:ScrollPane = new ScrollPane();
var noteTitle:Array = new Array();

//creating 3 text-fields with respective properties.
var a:TextField=new TextField();
a.text="dffd";
a.width=40;
var b:TextField=new TextField();
b.text="rdsf";
b.width=40;
var c:TextField=new TextField();
c.text="fsdf";
c.width=40;

//Pushing the textfields' values to noteTitle array
noteTitle.push(a);
noteTitle.push(b);
noteTitle.push(c);

var newClip:MovieClip;

//Creating an hyperlink.
var myHyperlinkFormat:TextFormat = new TextFormat();

myHyperlinkFormat.color = 0x0000FF;
myHyperlinkFormat.underline = true;

var num:int=noteTitle.length;
trace(num);

for (var i=0; i<num; i++) {
	newClip=new MovieClip();

	// format the hyperlink within the TextField 
	noteTitle*.y = 20+25*i;
	noteTitle*.x = 20;
	trace("swathi");

	noteTitle*.addEventListener(MouseEvent.MOUSE_MOVE,onHyperLinkRollover);
	noteTitle*.setTextFormat(myHyperlinkFormat, 0,4);
	function onHyperLinkRollover(e:MouseEvent):void {

		trace('mouse is over hyperlink');
		e.currentTarget.parent.buttonMode = true;
		e.currentTarget.parent.useHandCursor = true;
		e.currentTarget.parent.mouseChildren = false;

	}
	
	newClip.addChild(noteTitle*);
	addChild(newClip);
	
	newClip.addEventListener(MouseEvent.CLICK,onCirculatoryClick);
	function onCirculatoryClick(evnt:MouseEvent):void {
		newClip.removeChild(DisplayObject(evnt.target)); 

		trace("inside the function");
	}

```

Create a new Flash file and add the above AS3 code into the ActionsPanel of Layer-1 and execute it.

```
The output consists of 3 hyperlinks one upon other(in line). When, we place the mouse-cursor on the hyperlinks, then the cursor disappears and the "handCursor" appears.

It works fine when we place our mouse cursor on the 3 hyperlinks. 

```

\*\* But the issue is: still it displays the HandCursor even if we place the mouse-cursor down these three hyper-links(i.e., in white space below these 3 hyperlinks.Also, it displays handCursor only to some extent,not whole).\*\*

WHY IT IS SHOWING LIKE THAT?  
(OR)  
WHAT SHOULD I DO IN ORDER TO MAKE HANDCURSOR INVISIBLE BENEATH THE 3 TEXT-FIELDS?

Reply me…  
Waiting for your replies…

Thanks in advance…

Srihari.Ch
