# Help with AS3 Undefined Property creating rollover buttons

**URL:** https://forum.kirupa.com/t/help-with-as3-undefined-property-creating-rollover-buttons/324281
**Category:** flash
**Created:** [August 12, 2011, 6:07am UTC](https://forum.kirupa.com/t/help-with-as3-undefined-property-creating-rollover-buttons/324281 "2011-08-12T06:07:13Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![ignorantdevil](https://avatars.discourse-cdn.com/v4/letter/i/779978/32.png) [@ignorantdevil](https://forum.kirupa.com/u/ignorantdevil)
#### Post date: [August 12, 2011, 6:07am UTC](https://forum.kirupa.com/t/help-with-as3-undefined-property-creating-rollover-buttons/324281/1 "2011-08-12T06:07:13Z")

</div>

I am kind of trying to use a tutorial here @ [http://flashfunhouse.com/flash-actionscript-tutorials/hd-flash-drop-down-menu-tutorial-with-actionscript-3-0-97](http://flashfunhouse.com/flash-actionscript-tutorials/hd-flash-drop-down-menu-tutorial-with-actionscript-3-0-97) to create the roll over effect action script i want for Air for Android.

Is this kind of thing doable in air for android?

I am running into a problem in CS5.5

When I code this below it gives me the error  
“Scene 1, Layer ‘AS’, Frame 1, Line 13 1120: Access of undefined property benson\_mc.”  
Little Background, before hand. I checked and benson\_mc is created within the navBar\_mc just fine.

Also, I have a frame label of benson\_mc which it was having a hard time finding which is why i recreated this benson\_mc to begin with. Does air for android have issues finding frame labels embedded in MC’s?

Any help is appreciated.

Thanks

* * *

import flash.filters.GlowFilter;  
import flash.events.MouseEvent;  
import flash.display.MovieClip;

var navBtnGlow:GlowFilter = new GlowFilter(0x999999, 0.5, 0, 15, 1, 2, true, false);  
navBar\_mc.addEventListener(MouseEvent.MOUSE\_OVER, navOverF);  
navBar\_mc.addEventListener(MouseEvent.MOUSE\_OUT, navOutF);

function navOverF(event:MouseEvent):void{  
event.target.filters = [navBtnGlow];  
navBar\_mc.setChildIndex(event.target as MovieClip, 1);  
benson\_mc.gotoAndStop(navBar\_mc.getChildAt(1).name);  
trace(“We are Rolled Over…” + navBar\_mc.getChildAt(1).name);  
}  
function navOutF(event:MouseEvent):void{  
event.target.filters = [];
