# On release = how to show or hide a clip

**URL:** <https://forum.kirupa.com/t/on-release-how-to-show-or-hide-a-clip/244249>\
**Category:** flash\
**Created:** [November 15, 2007, 4:01pm UTC](https://forum.kirupa.com/t/on-release-how-to-show-or-hide-a-clip/244249 "2007-11-15T16:01:55Z")\
**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 15, 2007, 4:01pm UTC](https://forum.kirupa.com/t/on-release-how-to-show-or-hide-a-clip/244249/1 "2007-11-15T16:01:55Z")

</div>

hello everybody !

## I have a little question, very easy to solve for confirmed developers but not for a beginner as me ! I have 30 buttons, when I click on a button, the color of my image change and in a rectangle (clip named “resultat”) I get the same colour and its reference. I write on the colour : the colour reference with a font and a colour for this font In fact my colour font is white, but when I select the button for white colour, you see my problem, my rectangle is white and the text of my colour reference is in white, so I don’t see the reference. So I did another clip named “resultat1” placed in the bottom of my animation In this clip, the text reference is written in black. I use this clip for all the bottom with very light colour So I see very well the reference My problem is to say : On\_release this button hide clip “resultat1” show clip “resultat”

## here below my button action script (I work with FLASH 8)

```auto
on (press) 
{
 resultat=visible
 resultat1=not visible
 var colorful = new Color("_root.resultat");
 colorful.setRGB(0xCC0066);
 var colorful = new Color("_root.stickshapes");
 colorful.setRGB(0xCC0066);
 var couleur1="rose 01 fini brillant";
 var couleur2="rose 02 fini mat";
 colorligne1.text=couleur1;
 colorligne2.text=couleur2;
}

```

* * *

Hope my explanation clear enough !  
Thanks in advance for your help  
Françoise from Paris
