# RemoveChild in maintimeline

**URL:** <https://forum.kirupa.com/t/removechild-in-maintimeline/332568>\
**Category:** flash\
**Created:** [July 29, 2014, 5:55pm UTC](https://forum.kirupa.com/t/removechild-in-maintimeline/332568 "2014-07-29T17:55:32Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Thomas120](https://avatars.discourse-cdn.com/v4/letter/t/5f8ce5/32.png) [@Thomas120](https://forum.kirupa.com/u/Thomas120)\
**Post date:** [July 29, 2014, 5:55pm UTC](https://forum.kirupa.com/t/removechild-in-maintimeline/332568/1 "2014-07-29T17:55:32Z")

</div>

Hi there,

I want to remove an instance called ´dinges´ from te stage. I have this code inside a function of a movieclip:

if (MovieClip(parent).ene == MovieClip(parent).andere)  
{  
trace (“MATCH”);  
MovieClip(root).removeChild (dinges);  
}  
The trace command works fine, but i don’t know how to approach the ‘dinges’ instance on te main timeline. When I make the alpha of ‘dinges’ 0.5 from whithin the function it works okay. But removeChild won’t work.

please help and save my day.
