hi i was wonderin if u could help me on this code:
var gameURL:String = (new String(_root._url).slice(0, 25));
//
gameLocation = function () {
if (gameURL == "http://uploads.ungrounded") {
block.gotoAndStop(1);
} else {
block.gotoAndStop(2);
}
};
i used some of denvishes code for the block thing and whatever, but what i want is this:
an array of different strings for example "newgrounds.com", "jackrabbit.com", "king.com", "clockcrew.com" etc and for there to be a check in place to check them arrays, for example:
if (gameURL == "http://uploads.ungrounded") { could be if (gameURL == gameURLArrays[all of em]) {
is this possible, an if it is do i need 2 arrays 1 for the strings and 1 for the number of characters in the slice? thanks