loadMovieNum, getURL and IF statement?!

Hi there,

I’m trying to make an if statement work for a button, so that if one .SWF is loaded, the user goes to a different URL, if a different .SWF is loaded the user goes to another URL and so on. This is what I have so far on the mainstage:

navbar.btn_preorder.onPress = function () {
if (!swfLoaded) {
loadMovieNum(“img1.swf”, 2);
swfLoaded = true; }
getURL(“http://www.yahoo.com”)
};

Thank you!