# Statement must appear within on handler: score

**URL:** <https://forum.kirupa.com/t/statement-must-appear-within-on-handler-score/320004>\
**Category:** flash\
**Created:** [March 10, 2011, 11:07pm UTC](https://forum.kirupa.com/t/statement-must-appear-within-on-handler-score/320004 "2011-03-10T23:07:05Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![turbopower](https://avatars.discourse-cdn.com/v4/letter/t/c6cbf5/32.png) [@turbopower](https://forum.kirupa.com/u/turbopower)\
**Post date:** [March 10, 2011, 11:07pm UTC](https://forum.kirupa.com/t/statement-must-appear-within-on-handler-score/320004/1 "2011-03-10T23:07:05Z")

</div>

This script somehow isn’t working: if(view==1){  
on (rollOver) {  
key.stopDrag();  
key.\_x = orig\_x;  
key.\_y = orig\_y;  
\_global.View = 0;  
}  
}  
can anyone fix this?
