Super noob AS3 question

I am just starting to dive into AS3 after finally getting a grasp on AS2 and am having some difficulty even doing the simplest things. If anyone can help I would VERY much appreciate it.

This is the code I am using for rollovers and rollouts:


import flash.events.Event;
import flash.events.MouseEvent;

myClip.myClip2.addEventListener(MouseEvent.MOUSE_OVER, onMouseOverEvent);
myClip.myClip2.addEventListener(MouseEvent.MOUSE_OUT, onMouseOutEvent);

	
function onMouseOverEvent(event:MouseEvent):void
{
	myClip.myClip2.gotoAndPlay("over");
}


function onMouseOutEvent(event:MouseEvent):void
{
	myClip.myClip2.gotoAndPlay("out");
}

Thanks!