# Linking from this flash code

**URL:** <https://forum.kirupa.com/t/linking-from-this-flash-code/275567>\
**Category:** flash\
**Created:** [November 16, 2008, 12:26am UTC](https://forum.kirupa.com/t/linking-from-this-flash-code/275567 "2008-11-16T00:26:45Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![smidge](https://avatars.discourse-cdn.com/v4/letter/s/e79b87/32.png) [@smidge](https://forum.kirupa.com/u/smidge)\
**Post date:** [November 16, 2008, 12:26am UTC](https://forum.kirupa.com/t/linking-from-this-flash-code/275567/1 "2008-11-16T00:26:45Z")

</div>

hi all, i’m not much chop at building complicated flash from scratch but have had to edit a whole bunch of code from other programmers and templates etc, i’m hoping someone can help clear up how to link from this code:

> 

on (rollOver) {  
if (\_root.link\<\>1) {  
this.gotoAndPlay(“s1”);  
}  
}  
on (releaseOutside, rollOut) {  
if (\_root.link\<\>1) {  
this.gotoAndPlay(“s2”);  
}  
}  
on (release) {  
if (\_root.link\<\>1) {  
\_root[“item”+\_root.link].gotoAndPlay(“s2”);  
\_root.link = 1;  
}  
}

basically its a colum of 8 buttons and all i need to do is make them link to various pages, eg button 8 just needs to link to contactus.html

hopefully its nothing too complicated! i tried the geturl code where i thought it should go but no joy

thanks guys
