# How can I Remove Movie clip dynamicly

**URL:** <https://forum.kirupa.com/t/how-can-i-remove-movie-clip-dynamicly/299904>\
**Category:** Uncategorized\
**Created:** [November 12, 2009, 12:15pm UTC](https://forum.kirupa.com/t/how-can-i-remove-movie-clip-dynamicly/299904 "2009-11-12T12:15:11Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![malik23](https://avatars.discourse-cdn.com/v4/letter/m/74df32/32.png) [@malik23](https://forum.kirupa.com/u/malik23)\
**Post date:** [November 12, 2009, 12:15pm UTC](https://forum.kirupa.com/t/how-can-i-remove-movie-clip-dynamicly/299904/1 "2009-11-12T12:15:11Z")

</div>

i have 3 movie clip and one button in my project. i want to hide movie clip by this way… but my code is not working. please guide me

m1\_mc.onRelease = function (){ // first movie clip  
mySselectedItem\_txt.text = this.\_name;  
}

m2\_mc.onRelease = function (){ // 2nd movie clip  
mySselectedItem\_txt.text = this.\_name;  
}

m3\_mc.onRelease = function (){ // 3rd movie clip  
mySselectedItem\_txt.text = this.\_name;  
}

myBtn\_btn.onRelease = function = (){ // button

```
mySselectedItem_txt.text._visible = false // textBox

```

}
