# Why won't it work? ActionScript 2.0

**URL:** <https://forum.kirupa.com/t/why-wont-it-work-actionscript-2-0/241250>\
**Category:** flash\
**Created:** [October 11, 2007, 1:31pm UTC](https://forum.kirupa.com/t/why-wont-it-work-actionscript-2-0/241250 "2007-10-11T13:31:31Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![kchill](https://avatars.discourse-cdn.com/v4/letter/k/3ec8ea/32.png) [@kchill](https://forum.kirupa.com/u/kchill)\
**Post date:** [October 11, 2007, 1:31pm UTC](https://forum.kirupa.com/t/why-wont-it-work-actionscript-2-0/241250/1 "2007-10-11T13:31:31Z")

</div>

I have created a movieclip called service1. When you click on a button on the main timeline, the service1 mc pops up. Within the service1 mc is a button that, when pressed, closes the service1 mc window. The code that I have placed on the button is:

on(press){  
this.\_visible = false;  
}

When I test the scene the button does exactly what I want it to do, the service1 mc dissapears. Perfect! However, when I test the movie, the service1 mc pops up but the button goes inactive. Can anyone tell me why and how do I fix it?
