# The following function is not working...why?

**URL:** https://forum.kirupa.com/t/the-following-function-is-not-working-why/204061
**Category:** flash
**Created:** [October 16, 2006, 8:31pm UTC](https://forum.kirupa.com/t/the-following-function-is-not-working-why/204061 "2006-10-16T20:31:51Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![lariat1997](https://avatars.discourse-cdn.com/v4/letter/l/df705f/32.png) [@lariat1997](https://forum.kirupa.com/u/lariat1997)
#### Post date: [October 16, 2006, 8:31pm UTC](https://forum.kirupa.com/t/the-following-function-is-not-working-why/204061/1 "2006-10-16T20:31:51Z")

</div>

function glowMe(p\_mc, p\_play, p\_stop){  
if(p\_mc.onRollOver){  
p\_mc.gotoAndPlay(p\_play);  
}  
else{  
if(p\_mc.onRollOut){  
p\_mc.gotoAndStop(p\_stop)  
}  
}  
}  
glowMe(blue\_mc, 2, 1);
