# Simple re-orangising a bit of actionscript

**URL:** <https://forum.kirupa.com/t/simple-re-orangising-a-bit-of-actionscript/250605>\
**Category:** Uncategorized\
**Created:** [January 30, 2008, 11:29pm UTC](https://forum.kirupa.com/t/simple-re-orangising-a-bit-of-actionscript/250605 "2008-01-30T23:29:43Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![wyld\_thing](https://avatars.discourse-cdn.com/v4/letter/w/5f8ce5/32.png) [@wyld\_thing](https://forum.kirupa.com/u/wyld_thing)\
**Post date:** [January 30, 2008, 11:29pm UTC](https://forum.kirupa.com/t/simple-re-orangising-a-bit-of-actionscript/250605/1 "2008-01-30T23:29:43Z")

</div>

hi, quite new to flash could someone re-organise this actionscript better as its a little scruffy? Unsure how

thanks

if(\_root.page==‘index’){  
this.buttons.home.gotoAndStop(“2”);  
}  
if(\_root.page==‘services’){  
this.buttons.services.gotoAndStop(“2”);  
}  
if(\_root.page==‘about’){  
this.buttons.about.gotoAndStop(“2”);  
}  
if(\_root.page==‘portfolio’){  
this.buttons.portfolio.gotoAndStop(“2”);  
}  
if(\_root.page==‘reviews’){  
this.buttons.reviews.gotoAndStop(“2”);  
}  
if(\_root.page==‘prices’){  
this.buttons.prices.gotoAndStop(“2”);  
}  
if(\_root.page==‘links’){  
this.buttons.links.gotoAndStop(“2”);  
}  
if(\_root.page==‘contact’){  
this.buttons.contact.gotoAndStop(“2”);  
}
