# How to edit button actionscript so it it can be put on to a movieclip button

**URL:** <https://forum.kirupa.com/t/how-to-edit-button-actionscript-so-it-it-can-be-put-on-to-a-movieclip-button/244761>\
**Category:** Uncategorized\
**Created:** [November 21, 2007, 3:02pm UTC](https://forum.kirupa.com/t/how-to-edit-button-actionscript-so-it-it-can-be-put-on-to-a-movieclip-button/244761 "2007-11-21T15:02:48Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![crollo](https://avatars.discourse-cdn.com/v4/letter/c/3bc359/32.png) [@crollo](https://forum.kirupa.com/u/crollo)\
**Post date:** [November 21, 2007, 3:02pm UTC](https://forum.kirupa.com/t/how-to-edit-button-actionscript-so-it-it-can-be-put-on-to-a-movieclip-button/244761/1 "2007-11-21T15:02:48Z")

</div>

I was using a tutorial from Kirupa (I’m a real beginner by the way) - Complex Button Rollover/Rollout effects [http://www.kirupa.com/developer/mx2004/button\_effect.htm](http://www.kirupa.com/forum/../developer/mx2004/button_effect.htm)  
and I would like to change the last part of the action script

```auto
this.onRelease = function(){ getURL("http://www.kirupa.com","_blank"); }

```

with this button action

```auto
on (release) {
    if(_root.currMovie != "collectionsb"){
      _root.currMovie = "collectionsb";
      containerone_mc.loadMovie("collectionsb.swf");
    }else{
      if (containerone_mc._currentframe >= containerone_mc.midframe) {
          containerone_mc.play();
      }
  }
}

```

so that on release of the movieclip button an external file

> collectionsb.swf  
> will open into a container  
> containerone\_mc

I realise this is probably a very simple problem but I don’t know how to change the code Thanks in advance  
I have attached an example if it helps
