# Changing button link

**URL:** https://forum.kirupa.com/t/changing-button-link/315227
**Category:** flash
**Created:** [October 20, 2010, 3:49pm UTC](https://forum.kirupa.com/t/changing-button-link/315227 "2010-10-20T15:49:50Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![tombd](https://avatars.discourse-cdn.com/v4/letter/t/aca169/32.png) [@tombd](https://forum.kirupa.com/u/tombd)
#### Post date: [October 20, 2010, 3:49pm UTC](https://forum.kirupa.com/t/changing-button-link/315227/1 "2010-10-20T15:49:50Z")

</div>

Hi,

I have a movie clip which directs to a different part of the flash movie.

I want to replace it to open an external link, but can’t make it work for some reason…

the code is:

onClipEvent (load) {  
num = 7;  
this.hitArea = this.area;  
this.title1.gotoAndStop(num);  
this.title2.gotoAndStop(num);  
this.sq1.gotoAndStop(num);  
this.sq2.gotoAndStop(num);  
}  
on (rollOver) {

```
    this.gotoAndPlay("s1");

```

}  
on (releaseOutside, rollOut) {

```
    this.gotoAndPlay("s2");

```

}  
on (release) {  
if (\_root.link\<\>num and \_root.animation == 1 and \_root.pressed == 0) {  
this.gotoAndPlay(“s3”);  
\_root.pressed = 1;  
\_root.animation = 0;  
\_root.link\_prev = \_root.link;  
//\_parent[“item”+\_root.link].gotoAndPlay(“s2”);  
}  
}

what exactly should i change?

Thanks,  
Tom
