# OnRollOver help

**URL:** https://forum.kirupa.com/t/onrollover-help/190222
**Category:** flash
**Created:** [June 9, 2006, 3:59pm UTC](https://forum.kirupa.com/t/onrollover-help/190222 "2006-06-09T15:59:08Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Framed](https://avatars.discourse-cdn.com/v4/letter/f/a87d85/32.png) [@Framed](https://forum.kirupa.com/u/Framed)
#### Post date: [June 9, 2006, 3:59pm UTC](https://forum.kirupa.com/t/onrollover-help/190222/1 "2006-06-09T15:59:08Z")

</div>

I’m sure this has probably been asked and resolved a million times but I wasn’t able to find it when searching the ActionScript forums. I am using flash 8.

I have a movieclip several mcs in that I want to control from the root timeline.  
I am using:  
pathinstances.instance.onRollOver = function() {  
My actual code that I am trying to get to work is:  
floorplan.0101.boothfill.onRollOver = function() {

The problem is that flash keeps popping up saying:  
**Error** Scene=Scene 1, layer=Layer 4, frame=1:Line 1: Syntax error.  
floorplan.0101.boothfill.onRollOver = function () {

I don’t know if I’m doing something wrong or what, I was almost certain you are able to control movieclips from several mcs up by referencing the instance names all the way down.

Any help is greatly appreciated.

Btw. This code works if I place it in the timeline of the 0101 movieclip and simply use boothfill.onRollOver = function() {

Thanks again.
