Swf Address Question

(as2/cs3)
So I’m attempting to implement swf address into my site and it’s all still very confusing to me but I figured out how to at least have the address bar url change every time you click a certain section of the site and go there. But when I go copy/paste that address into a new window, the page that is labeled (ex. /about/) doesn’t come up, just some other random page shows up. (this still happens with the random array function turned off, read more below)

My site currently loads a random page when it starts, so it seems like I would need my code on both the button that is clicked (ex. about button) and my array that randomly picks a frame to go to (about frame).

I guess I would need an if, else statement here to determine which frame was randomly selected then it needs to call the swfaddress files so that it can change the url to whatever section it loads. All my frame labels are on one fla file. My main question is why isn’t my url code not going to certain sections when copied/pasted. What part/section of swfaddress controls that?

Here’s my swfaddress actionscript code (i got it from some example files)


function getRandomLabel():String {
	var labels:Array = new Array("aboutIN","pittsburghIN", "littlerockIN", "jacksonvilleIN", "tampaIN", "boiseIN", "neworleansIN", "santafeIN", "houstonIN", "lasvegasIN", "kansasIN", "denverIN", "baltimoreIN", "memphisIN", "washingtonIN", "cincinnatiIN", "sandiegoIN", "philadelphiaIN", "stlouisIN", "bostonIN", "laIN", "missoulaIN", "chicagoIN", "detroitIN", "newyorkIN", "nashvilleIN", "phoenixIN", "clevelandIN", "charlotteIN", "portlandIN", "raleighIN", "sanfranciscoIN", "seattleIN", "vancouverIN", "miamiIN", "richmondIN", "mexicocityIN", "austinIN", "dallasIN", "edmontonIN", "aspenIN", "atlantaIN", "saltlakecityIN", "torontoIN", "buffaloIN", "minneapolisIN", "montrealIN", "calgaryIN", "jacksonIN", "knoxvilleIN");
	var index:Number = Math.floor(Math.random()*labels.length);
	return labels[index];
}
this.gotoAndStop(getRandomLabel());

#include "includes/SWFAddress.as"

function replace(str, find, replace) {
	return str.split(find).join(replace);
}
function toTitleCase(str) {
	return str.substr(0,1).toUpperCase() + str.substr(1).toLowerCase();
}
function getIndex(arr, obj) {
	for (var i = 0; i < arr.length; i++) {
		if (arr* == obj) {
			return i;
		}
	}
}
function formatTitle(addr) {
	if (addr.substr(addr.length - 1, 1) == '/') {
		addr = addr.substr(0, addr.length - 1);
	}
	return 'My site' + ((addr.length > 0) ? ' / ' + toTitleCase(replace(addr.substr(1), '/', ' / ')) : '');
}

SWFAddress.onChange = function() {
	var arr = new Array('', '/about/', '/jackson/', '/santafe', '/littlerock');
	var addr = SWFAddress.getValue();
	if (_currentframe == 39 && addr == '') {
		play();
	} else {
		gotoAndPlay(40 + 10*getIndex(arr, addr));
	}
	SWFAddress.setTitle(formatTitle(addr));
}