# Flash CS5: TypeError: Error #2007: Parameter child must be non-null

**URL:** <https://forum.kirupa.com/t/flash-cs5-typeerror-error-2007-parameter-child-must-be-non-null/314979>\
**Category:** Uncategorized\
**Created:** [October 14, 2010, 1:53am UTC](https://forum.kirupa.com/t/flash-cs5-typeerror-error-2007-parameter-child-must-be-non-null/314979 "2010-10-14T01:53:56Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Alid23](https://avatars.discourse-cdn.com/v4/letter/a/35a633/32.png) [@Alid23](https://forum.kirupa.com/u/Alid23)\
**Post date:** [October 14, 2010, 1:53am UTC](https://forum.kirupa.com/t/flash-cs5-typeerror-error-2007-parameter-child-must-be-non-null/314979/1 "2010-10-14T01:53:56Z")

</div>

I just started working with Flash and I am quite lost with this error.

When I bring up the swf file, it seems to be working semi-proper, but I am unsure why this error is coming up.

I am basically trying to make a simple drop down menu.

Here is the script if anyone can look it over and find a problem. Please and Thank you! (this script is on the main page)

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);  
dropDown\_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 = [];  
}

----Here is the script for the actual drop down part of the menu----

stop();  
theatreframe\_btn.addEventListener(MouseEvent.MOUSE\_OVER, goBackF);

function goBackF(event:MouseEvent):void{  
gotoAndStop(1);  
}
