# Very simple question!

**URL:** <https://forum.kirupa.com/t/very-simple-question/288601>\
**Category:** flash\
**Created:** [May 18, 2009, 8:08pm UTC](https://forum.kirupa.com/t/very-simple-question/288601 "2009-05-18T20:08:55Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![bherdrick](https://avatars.discourse-cdn.com/v4/letter/b/85f322/32.png) [@bherdrick](https://forum.kirupa.com/u/bherdrick)\
**Post date:** [May 18, 2009, 8:08pm UTC](https://forum.kirupa.com/t/very-simple-question/288601/1 "2009-05-18T20:08:55Z")

</div>

I am very new to AS3, so I cannot for the life of me figure out how to return a value out of a ROLL\_OVER function. It seems extremely easy, yet I cannot get it to work. Here is a simplified version of what I am trying to do:

test\_mc.addEventListener(MouseEvent.ROLL\_OVER, testOver);

function testOver(event:MouseEvent):String  
{  
return “hello”;  
}

trace(testOver());
