# Global locator not working

**URL:** https://forum.kirupa.com/t/global-locator-not-working/189939
**Category:** flash
**Created:** [June 7, 2006, 11:50am UTC](https://forum.kirupa.com/t/global-locator-not-working/189939 "2006-06-07T11:50:28Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![edward\_bull](https://avatars.discourse-cdn.com/v4/letter/e/c2a13f/32.png) [@edward\_bull](https://forum.kirupa.com/u/edward_bull)
#### Post date: [June 7, 2006, 11:50am UTC](https://forum.kirupa.com/t/global-locator-not-working/189939/1 "2006-06-07T11:50:28Z")

</div>

Hi there i am making a website with about eight pages, all the buttons are on the main page, I have the pages tweening in, when the user clicks a button i would like these pages to tween back out then bring the new page in. I think you do this by using the global locator syntax. I have been using instances for my buttons, the following script is on frame 60

stop();  
\_global.locator;  
contact\_BT.onRelease = function() {  
play();  
\_global.locator = “contact”;  
};

Could anyone tell me this same script but so it can go on the button rather than instance names as it is not working at all. Cheers. Ed
