# What the juice, onRollOver = undefined

**URL:** <https://forum.kirupa.com/t/what-the-juice-onrollover-undefined/226992>\
**Category:** Uncategorized\
**Created:** [May 25, 2007, 5:41pm UTC](https://forum.kirupa.com/t/what-the-juice-onrollover-undefined/226992 "2007-05-25T17:41:22Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![master\_phat](https://avatars.discourse-cdn.com/v4/letter/m/90ced4/32.png) [@master\_phat](https://forum.kirupa.com/u/master_phat)\
**Post date:** [May 25, 2007, 5:41pm UTC](https://forum.kirupa.com/t/what-the-juice-onrollover-undefined/226992/1 "2007-05-25T17:41:22Z")

</div>

kay, I’ve done this thousands upon thousands of times. In fact, 20 lines above it… it works. Still, the onRollOver is not working in this instance:  
[COLOR=#0000ff]  
if[/COLOR][COLOR=#000000]([/COLOR][COLOR=#0000ff]xml[/COLOR].[COLOR=#0000ff]firstChild[/COLOR].[COLOR=#0000ff]childNodes[/COLOR][COLOR=#000000][[/COLOR]currId[COLOR=#000000]][/COLOR].[COLOR=#0000ff]childNodes[/COLOR][COLOR=#000000][[/COLOR][COLOR=#000080]1[/COLOR][COLOR=#000000]][/COLOR].[COLOR=#0000ff]childNodes[/COLOR].[COLOR=#0000ff]length[/COLOR] \> [COLOR=#000080]0[/COLOR][COLOR=#000000])[/COLOR]  
[FONT=Courier New][LEFT] [COLOR=#000000]{[/COLOR]  
[COLOR=#0000ff]for[/COLOR][COLOR=#000000]([/COLOR][COLOR=#000000] **var** [/COLOR] k = [COLOR=#000080]0[/COLOR]; k \< [COLOR=#0000ff]xml[/COLOR].[COLOR=#0000ff]firstChild[/COLOR].[COLOR=#0000ff]childNodes[/COLOR][COLOR=#000000][[/COLOR]currId[COLOR=#000000]][/COLOR].[COLOR=#0000ff]childNodes[/COLOR][COLOR=#000000][[/COLOR][COLOR=#000080]1[/COLOR][COLOR=#000000]][/COLOR].[COLOR=#0000ff]childNodes[/COLOR].[COLOR=#0000ff]length[/COLOR]; k++[COLOR=#000000])[/COLOR]  
[COLOR=#000000]{[/COLOR]  
[COLOR=#000000] **var** [/COLOR] thumbs:[COLOR=#0000ff]MovieClip[/COLOR] =[COLOR=#0000ff]\_root[/COLOR].[COLOR=#0000ff]createEmptyMovieClip[/COLOR][COLOR=#000000]([/COLOR][COLOR=#ff0000]“thumbs\_mc”[/COLOR] + k, [COLOR=#000080]1245[/COLOR]+k[COLOR=#000000])[/COLOR];  
thumbs.[COLOR=#0000ff]\_y[/COLOR] = COLOR=#000000[/COLOR]_k;  
thumbs.[COLOR=#0000ff]\_x[/COLOR] = [COLOR=#000080]400[/COLOR];  
thumbs.[COLOR=#0000ff]loadMovie[/COLOR][COLOR=#000000]([/COLOR][COLOR=#ff0000]“lib/news\_images/”[/COLOR] + [COLOR=#0000ff]xml[/COLOR].[COLOR=#0000ff]firstChild[/COLOR].[COLOR=#0000ff]childNodes[/COLOR][COLOR=#000000][[/COLOR]currId[COLOR=#000000]][/COLOR].[COLOR=#0000ff]childNodes[/COLOR][COLOR=#000000][[/COLOR][COLOR=#000080]1[/COLOR][COLOR=#000000]][/COLOR].[COLOR=#0000ff]childNodes[/COLOR][COLOR=#000000][[/COLOR]k[COLOR=#000000]][/COLOR].[COLOR=#0000ff]firstChild[/COLOR].[COLOR=#0000ff]nodeValue[/COLOR][COLOR=#000000])[/COLOR];  
thumbs\_arr.[COLOR=#0000ff]push[/COLOR][COLOR=#000000]([/COLOR][COLOR=#0000ff]\_root[/COLOR][COLOR=#000000][[/COLOR][COLOR=#ff0000]“thumbs\_mc”[/COLOR] + k[COLOR=#000000]][/COLOR][COLOR=#000000])[/COLOR];  
[COLOR=#808080]_//\*[/COLOR]  
thumbs.[COLOR=#0000ff]onRollOver[/COLOR] = [COLOR=#000000] **function** [/COLOR]COLOR=#000000[/COLOR]:[COLOR=#0000ff]Void[/COLOR]  
[COLOR=#000000]{[/COLOR]  
[COLOR=#0000ff]trace[/COLOR]COLOR=#000000[/COLOR];  
[COLOR=#000000]}[/COLOR]  
[COLOR=#0000ff]trace[/COLOR][COLOR=#000000]([/COLOR][COLOR=#ff0000]“tracing rollover”[/COLOR][COLOR=#000000])[/COLOR];  
[COLOR=#0000ff]trace[/COLOR]COLOR=#000000[/COLOR]  
[COLOR=#0000ff]trace[/COLOR]COLOR=#000000[/COLOR];  
[COLOR=#0000ff]trace[/COLOR]COLOR=#000000[/COLOR];  
[COLOR=#0000ff]trace[/COLOR]COLOR=#000000[/COLOR];  
[COLOR=#0000ff]if[/COLOR][COLOR=#000000]([/COLOR]k \>=[COLOR=#0000ff]xml[/COLOR].[COLOR=#0000ff]firstChild[/COLOR].[COLOR=#0000ff]childNodes[/COLOR][COLOR=#000000][[/COLOR]currId[COLOR=#000000]][/COLOR].[COLOR=#0000ff]childNodes[/COLOR][COLOR=#000000][[/COLOR][COLOR=#000080]1[/COLOR][COLOR=#000000]][/COLOR].[COLOR=#0000ff]childNodes[/COLOR].[COLOR=#0000ff]length[/COLOR][COLOR=#000000])[/COLOR][COLOR=#0000ff]break[/COLOR];

[COLOR=#000000]}[/COLOR]  
[COLOR=#000000]}[/COLOR]  
[/LEFT]  
[/FONT]  
traces out:

> tracing rollover  
> \_level0.thumbs\_mc0  
> hit  
> undefined  
> done  
> hit  
> undefined  
> tracing rollover  
> \_level0.thumbs\_mc1  
> hit  
> undefined  
> done  
> hit  
> undefined

since it traces out hit, it recognizes the onRollOver… but at the same time it traces undefined.
