# loadMovieNum, getURL and IF statement?!

**URL:** <https://forum.kirupa.com/t/loadmovienum-geturl-and-if-statement/291495>\
**Category:** flash\
**Created:** [June 30, 2009, 2:39pm UTC](https://forum.kirupa.com/t/loadmovienum-geturl-and-if-statement/291495 "2009-06-30T14:39:08Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![saenim](https://avatars.discourse-cdn.com/v4/letter/s/ed655f/32.png) [@saenim](https://forum.kirupa.com/u/saenim)\
**Post date:** [June 30, 2009, 2:39pm UTC](https://forum.kirupa.com/t/loadmovienum-geturl-and-if-statement/291495/1 "2009-06-30T14:39:08Z")

</div>

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](http://www.yahoo.com)”)  
};

Thank you!
