# Hide/Show clip and remove last clip

**URL:** <https://forum.kirupa.com/t/hide-show-clip-and-remove-last-clip/244315>\
**Category:** flash\
**Created:** [November 16, 2007, 9:20am UTC](https://forum.kirupa.com/t/hide-show-clip-and-remove-last-clip/244315 "2007-11-16T09:20:40Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![fidecourt](https://avatars.discourse-cdn.com/v4/letter/f/59ef9b/32.png) [@fidecourt](https://forum.kirupa.com/u/fidecourt)\
**Post date:** [November 16, 2007, 9:20am UTC](https://forum.kirupa.com/t/hide-show-clip-and-remove-last-clip/244315/1 "2007-11-16T09:20:40Z")

</div>

Hello everybody !

# just a subsidiary question regarding my animation. it works very well : when I click on the button of each color, my clip colored a rectangle with the button color and write on it the color reference; when I click on another button (with a different color) it works perfectly, but the old result stays on the animation my question is how to clear the results when I press the button

my code :

```auto

on (press) {
 resultat._visible = true;
 resultat1._visible = false;
 var colorful = new Color("_root.resultat");
 colorful.setRGB(0xCC66CC);
 var colorful = new Color("_root.stickshapes");
 colorful.setRGB(0xCC66CC);
 var couleur1="dragée 07 fini brillant";
 var couleur2="dragée 08 fini mat";
 colorligne1.text=couleur1;
 colorligne2.text=couleur2;
}

```

=============  
Thanks a lot for your answer and help  
Françoises from Paris
