Paste: as3

Author: bLUE
Mode: actionscript
Date: Fri, 12 Feb 2010 20:21:12
Plain Text |
artist_top.MenuItemText.text = "artists";
collective_top.MenuItemText.text = "collective";
contact_top.MenuItemText.text = "contact";
fixTopMenuItems(contact_top);

function fixTopMenuItems(m:MovieClip) {
	m.addEventListener(MouseEvent.MOUSE_OVER,TopMenuItemOver);
	m.addEventListener(MouseEvent.MOUSE_OUT,TopMenuItemOut);
	m.buttonMode = true;
	m.useHandCursor = true;

}


function TopMenuItemOut (e:MouseEvent):void{
	trace(e.target);
	e.target.textColor = 0xCCC000;
}

function TopMenuItemOver (e:MouseEvent):void{
	trace(e.target);
	e.target.textColor = 0x000000;
}

New Annotation

Summary:
Author:
Mode:
Body: