# On(rollOver) problem - nested?

**URL:** <https://forum.kirupa.com/t/on-rollover-problem-nested/63175>\
**Category:** Uncategorized\
**Created:** [September 3, 2004, 2:17pm UTC](https://forum.kirupa.com/t/on-rollover-problem-nested/63175 "2004-09-03T14:17:33Z")\
**Posts on this page:** 3\
**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/63175/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 … 😃

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [September 3, 2004, 3:15pm UTC](https://forum.kirupa.com/t/on-rollover-problem-nested/63175/2 "2004-09-03T15:15:08Z")

</div>

Hi… this script works fine for me…

do you have a fla or something.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [September 3, 2004, 3:21pm UTC](https://forum.kirupa.com/t/on-rollover-problem-nested/63175/3 "2004-09-03T15:21:36Z")

</div>

Please use better titles for your threads. “someone please help me” doesn’t say anything at all.
