# Hide errors

**URL:** <https://forum.kirupa.com/t/hide-errors/302119>\
**Category:** flash\
**Created:** [December 22, 2009, 4:29am UTC](https://forum.kirupa.com/t/hide-errors/302119 "2009-12-22T04:29:52Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![noobie123](https://avatars.discourse-cdn.com/v4/letter/n/ad7895/32.png) [@noobie123](https://forum.kirupa.com/u/noobie123)\
**Post date:** [December 22, 2009, 4:29am UTC](https://forum.kirupa.com/t/hide-errors/302119/1 "2009-12-22T04:29:52Z")

</div>

Is there a way to suppress errors from appearing in a pop up box when the swf is viewed in a browser?

I get the following run-time-error:

ArgumentError: Error #2025: The supplied DisplayObject must be a child of the caller.  
at flash.display::DisplayObjectContainer/removeChild()  
at CopyofDivRemedialCopy4\_fla::MainTimeline/hintAns()  
at CopyofDivRemedialCopy4\_fla::MainTimeline/checkMult()

I have a requirement to call different functions on a button click at different times. But I have taken care to remove the first event listener before I add a second one. What could be going wrong?

The rest of the program runs fine even with this error. Is there some way to hide it?
