# On(rollOver) problem - nested?

**URL:** <https://forum.kirupa.com/t/on-rollover-problem-nested/121525>\
**Category:** Uncategorized\
**Created:** [September 3, 2004, 2:17pm UTC](https://forum.kirupa.com/t/on-rollover-problem-nested/121525 "2004-09-03T14:17:33Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![mordaut](https://avatars.discourse-cdn.com/v4/letter/m/71c47a/32.png) [@mordaut](https://forum.kirupa.com/u/mordaut)\
**Post date:** [September 3, 2004, 2:17pm UTC](https://forum.kirupa.com/t/on-rollover-problem-nested/121525/1 "2004-09-03T14:17:33Z")

</div>

Okay, I’ve got a little problem…

flash says there is something wrong with the following actionscript script

```auto

on (rollOver) { 
//Play the start of the zoom animation 
this.square_mc.gotoAndPlay("zoomIn");
//Add 10 to the root variable archiveOrder 
_root.archiveOrder+=10; 
//Set the depth of the child movie to the new archiveOrder variable to appear on top 
this.swapDepths(_root.archiveOrder); 
} 
on (rollOut) { 
//Play the end of the zoom animation 
this.square_mc.gotoAndPlay("zoomOut"); }

```

mr. output says

> Scene=Scene 1, Layer=effects, Frame=1: Line 2: on handlers may not nest within other on handlers  
> on (rollOver) {

i dont see anything wrong with it…i checked the script a few times…  
but there is probably something i didnt catch, me being a idot and all, so any help would really be appreciated!

thanks

EDIT:  
I now see what the problem is, but i dont know how to fix it … 😃
