# Stupid question : One button for 2 states

**URL:** <https://forum.kirupa.com/t/stupid-question-one-button-for-2-states/152256>\
**Category:** Uncategorized\
**Created:** [June 22, 2005, 1:21pm UTC](https://forum.kirupa.com/t/stupid-question-one-button-for-2-states/152256 "2005-06-22T13:21:24Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![5TEF](https://avatars.discourse-cdn.com/v4/letter/5/85e7bf/32.png) [@5TEF](https://forum.kirupa.com/u/5TEF)\
**Post date:** [June 22, 2005, 1:21pm UTC](https://forum.kirupa.com/t/stupid-question-one-button-for-2-states/152256/1 "2005-06-22T13:21:24Z")

</div>

Hi all,

i’ve got one button on my scene… the AS code for it is :

\*[color=Red]on (release) {  
\_root.ThePic.inc.loadMovie(“map.swf”);  
}

[/color]\*[color=Black]so, when on clik on my button, it load my “map.swf” file. 🙂  
but i want this :  
when i re-clik on this button, it must unload this “map.swf”…

how can i make this ?

thanks

[/color]
