# Is event listener required?

**URL:** <https://forum.kirupa.com/t/is-event-listener-required/252795>\
**Category:** flash\
**Created:** [February 23, 2008, 6:12pm UTC](https://forum.kirupa.com/t/is-event-listener-required/252795 "2008-02-23T18:12:19Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![mpl](https://avatars.discourse-cdn.com/v4/letter/m/e480ec/32.png) [@mpl](https://forum.kirupa.com/u/mpl)\
**Post date:** [February 23, 2008, 6:12pm UTC](https://forum.kirupa.com/t/is-event-listener-required/252795/1 "2008-02-23T18:12:19Z")

</div>

I am relatively new to Flash8, have no prior programming experience and this is my first plunge. Performance is inconsistant when using the following conditional statement to direct a movie clip instance to the appropriate frame label:

lowerback\_mc.onRollOver = function (){  
if (speedo\_mc.needle\_mc.\_rotation == -45) {  
speedo\_mc.gotoAndPlay(“135d180”);  
} else if (speedo\_mc.needle\_mc.\_rotation == -90) {  
speedo\_mc.gotoAndPlay(“90d180”);  
}  
}

My guess is that an event listener needs to be implemented in order to track the current needle\_mc rotation. If so, how? If not, any suggestions?
