# Help with Movie Clip Button Action Script

**URL:** <https://forum.kirupa.com/t/help-with-movie-clip-button-action-script/149831>\
**Category:** flash\
**Created:** [June 1, 2005, 6:09pm UTC](https://forum.kirupa.com/t/help-with-movie-clip-button-action-script/149831 "2005-06-01T18:09:53Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Vish](https://avatars.discourse-cdn.com/v4/letter/v/8e8cbc/32.png) [@Vish](https://forum.kirupa.com/u/Vish)\
**Post date:** [June 1, 2005, 6:09pm UTC](https://forum.kirupa.com/t/help-with-movie-clip-button-action-script/149831/1 "2005-06-01T18:09:53Z")

</div>

Hey,

I am having some trouble customizing the scripting on this button [http://www.kirupa.com/developer/mx2004/button\_effect.htm](http://www.kirupa.com/developer/mx2004/button_effect.htm)

If you look at the code there, you’ll notice that it, when clicked it goes to [www.kirupa.com](http://www.kirupa.com/), hence the code:  
[color=#0000d0]this[/color].[color=#0000d0]onRelease[/color] [color=#0000ff]=[/color] [color=#006610]function[/color]color=#0000ff{[/color]  
[color=#0000d0]getURL[/color]color=#0000ff[/color];  
[color=#0000ff]}[/color]

Now I want this button, when clicked to go to for example a certain frame in my movie instead of a webpage… So I tried:

[color=#0000d0]this[/color].[color=#0000d0]onRelease[/color] [color=#0000ff]=[/color] [color=#006610]function[/color]color=#0000ff{[/color]  
gotoAndPlay(100);  
[color=#0000ff]}[/color]  
[color=black]But it does not work like that, nothing happens when I test the movie and click it. For your info, I do have something on frame 100, a motion tween.[/color]

What have I done wrong? How can I fix this?

I’m relatively new to Flash so please bear with my limited knowledge.

Thanks in advance,  
Vish
