Question : AS3 selectable text in a movieClip

When I compile the code below, everything works well except that the cursor doesn't change to a hand when I am on the text area of the file (see attachment for the "JULY" text). What do I need to do to make sure all of the movieClip shows the hand cursor?

The movieClip has two layers - one for the text and one for the tab.
Code Snippet:
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
monthTab1.tabText.text = "JULY";
monthTab1.tabText.selectable = false;
 
monthTab1.addEventListener(MouseEvent.MOUSE_OVER,changeTabColor);
monthTab1.addEventListener(MouseEvent.MOUSE_OVER,changeCursor);
 
function changeTabColor(e:MouseEvent):void {
	monthTab1.tab..useHandCursor = true;
	monthTab1.tab..buttonMode = true;
	var c:ColorTransform = new ColorTransform();
	c.color = 0x5E7E36;
	monthTab1.tab.transform.colorTransform = c;
}
Open in New Window Select All

Answer : AS3 selectable text in a movieClip

1:
2:
3:
4:
5:
6:
7:
function changeTabColor(e:MouseEvent):void {
	monthTab1.buttonMode = true;
	monthTab1.mouseChildren = false;
	var c:ColorTransform = new ColorTransform();
	c.color = 0x5E7E36;
	monthTab1.tab.transform.colorTransform = c;
}
Open in New Window Select All
Random Solutions  
 
programming4us programming4us