# Button: image "stays" after release("press and hold"-how?)

**URL:** https://forum.kirupa.com/t/button-image-stays-after-release-press-and-hold-how/56937
**Category:** Uncategorized
**Created:** [July 8, 2004, 11:42pm UTC](https://forum.kirupa.com/t/button-image-stays-after-release-press-and-hold-how/56937 "2004-07-08T23:42:35Z")
**Posts on this page:** 9
**Page:** 1

<div class="post-metadata">

### Author: ![uncius](https://avatars.discourse-cdn.com/v4/letter/u/df705f/32.png) [@uncius](https://forum.kirupa.com/u/uncius)
#### Post date: [July 8, 2004, 11:42pm UTC](https://forum.kirupa.com/t/button-image-stays-after-release-press-and-hold-how/56937/1 "2004-07-08T23:42:35Z")

</div>

[font=Arial]I’m trying to figure out how to create the “press and hold/stay” effect on the button - after I press it and release - “hit” image would stay until the next one is pressed.[/font]  
[font=Arial][font=Arial]It may sounds confusing so I will show it: [/font][/font][font=Arial]On Macromedia site they show it but I really can not find out any info how to make all numbers stay visible until the next one is pressed:[/font]  
[font=Arial][[color=#800080]http://www.macromedia.com/support/flash/ts/documents/track\_as\_button.htm[/color]](http://www.macromedia.com/support/flash/ts/documents/track_as_button.htm)[/font]

[font=Arial]The best sample what I would like to learn would be on the site: [[color=#800080]http://www.elfincreative.com/[/color]](http://www.elfincreative.com/)[/font]

[font=Arial]Where clicking on each button of menu, opens “inside animation” which stays until the next one is clicked.[/font]

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [July 9, 2004, 4:06am UTC](https://forum.kirupa.com/t/button-image-stays-after-release-press-and-hold-how/56937/2 "2004-07-09T04:06:55Z")

</div>

It is very simple, I have attached a Fla, which will clear your doubts. :be:

Regards  
Ajo.K.jose

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [July 9, 2004, 5:10am UTC](https://forum.kirupa.com/t/button-image-stays-after-release-press-and-hold-how/56937/3 "2004-07-09T05:10:25Z")

</div>

**Thank you so much** ,  
I will work on it and let u know about all results:-)  
btw, Congrats to Kirupa about that all site.

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [July 11, 2004, 4:58am UTC](https://forum.kirupa.com/t/button-image-stays-after-release-press-and-hold-how/56937/4 "2004-07-11T04:58:40Z")

</div>

[font=Arial]So I tried to work this out but I’m not advanced enough. :hurt: [/font]  
[font=Arial]Since I changed it to 5 instead of 4 (#of buttons) and changed to [/font][font=‘Courier New’]i\<=5[/font][font=Arial] the last one (5) still wont disappear. How to fix it and what to change/add in the code(?) if I need to use 5 different buttons (with different image) instead of 1 multiplied?[/font]  
[font=Arial]Please H e l p . . . [/font]  
[font=Arial][font=Verdana][/font][/font]

> [@ajok](#):
>
> It is very simple, I have attached a Fla, which will clear your doubts. :be:
> 
> Regards  
> Ajo.K.jose

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [July 12, 2004, 4:40am UTC](https://forum.kirupa.com/t/button-image-stays-after-release-press-and-hold-how/56937/5 "2004-07-12T04:40:41Z")

</div>

Please give an Instance name “btn5\_mc” to ur Last button. it will work 😉

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [July 12, 2004, 2:09pm UTC](https://forum.kirupa.com/t/button-image-stays-after-release-press-and-hold-how/56937/6 "2004-07-12T14:09:28Z")

</div>

it works! :bu:

**thank you.**

> [@ajok](#):
>
> Please give an Instance name “btn5\_mc” to ur Last button. it will work 😉

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [July 12, 2004, 6:22pm UTC](https://forum.kirupa.com/t/button-image-stays-after-release-press-and-hold-how/56937/7 "2004-07-12T18:22:41Z")

</div>

[font=Arial]Another issue: how in that situation create an active button [/font]  
[font=Arial](inside the movie as on the [/font][font=Arial][http://www.elfincreative.com/index.html](http://www.elfincreative.com/index.html) “portfolio view site”)[/font]  
[font=Arial]which will open a new blank page?[/font]  
[font=Arial]Basically I created another layer in the down/selected state of the movie and put the text-converted to the button and added an action as usually. [/font]

[font=Arial]Text of the button appears in the preview but the link is not active.[/font]

[font=Arial]how to do it???:\*( [/font]

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [July 13, 2004, 4:13am UTC](https://forum.kirupa.com/t/button-image-stays-after-release-press-and-hold-how/56937/8 "2004-07-13T04:13:58Z")

</div>

ok … you have to write a call back handled (same as deselect button) on release Event with btn ID/name. in call back function as per the referance of the btn Navige to ur Page 😉

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [July 13, 2004, 5:36pm UTC](https://forum.kirupa.com/t/button-image-stays-after-release-press-and-hold-how/56937/9 "2004-07-13T17:36:33Z")

</div>

AVE

_ **Thank you** _ again.  
i will try to work on it…:chinaman:
