# Super noob AS3 question

**URL:** <https://forum.kirupa.com/t/super-noob-as3-question/253501>\
**Category:** flash\
**Created:** [March 2, 2008, 4:33am UTC](https://forum.kirupa.com/t/super-noob-as3-question/253501 "2008-03-02T04:33:37Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![beneath\_the\_sky](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/beneath_the_sky/32/506_2.png) [@beneath\_the\_sky](https://forum.kirupa.com/u/beneath_the_sky)\
**Post date:** [March 2, 2008, 4:33am UTC](https://forum.kirupa.com/t/super-noob-as3-question/253501/1 "2008-03-02T04:33:37Z")

</div>

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:

```auto

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!
