# On (realease) problems

**URL:** https://forum.kirupa.com/t/on-realease-problems/196758
**Category:** Uncategorized
**Created:** [August 10, 2006, 6:59pm UTC](https://forum.kirupa.com/t/on-realease-problems/196758 "2006-08-10T18:59:54Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![littlepowell](https://avatars.discourse-cdn.com/v4/letter/l/a6a055/32.png) [@littlepowell](https://forum.kirupa.com/u/littlepowell)
#### Post date: [August 10, 2006, 6:59pm UTC](https://forum.kirupa.com/t/on-realease-problems/196758/1 "2006-08-10T18:59:54Z")

</div>

Hello!

I have a button that is called to the stage using AS. When the user releases that button, a global variable is populated and the pageShell movie clip is removed and re-attached using the new variable info. When I run the movie, I get the following in the output panel:

**Error** Mouse events are permitted only for button instances  
on (release:\<name\>){

I’m not sure why this is happening because the symbol being used (\<idname\>) is a button.

Here’s the code for one of the buttons:

```auto
 
function <functname> ():Void{
 this.attachMovie("<idname>", "<name>", this.getNextHighestDepth());
 <name>._y = 44;
 on (release:<name>){
  _level0.page = "<value>";
  this.pageShell.removeMovieClip();
  this.attachMovie("PageShell", "pageShell", this.getNextHighestDepth());
 }

```
