# Should I use IF statement?

**URL:** <https://forum.kirupa.com/t/should-i-use-if-statement/226807>\
**Category:** flash\
**Created:** [May 24, 2007, 6:52am UTC](https://forum.kirupa.com/t/should-i-use-if-statement/226807 "2007-05-24T06:52:05Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Login418](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/login418/32/2712_2.png) [@Login418](https://forum.kirupa.com/u/Login418)\
**Post date:** [May 24, 2007, 6:52am UTC](https://forum.kirupa.com/t/should-i-use-if-statement/226807/1 "2007-05-24T06:52:05Z")

</div>

I’m trying to create a web menu. I have 8 page buttons.

3 of the page buttons load different .swf files onto the background.

5 of the page buttons load the same .swf onto the background (“image.swf”). I don’t want the background to reload every time I press 1 of these buttons. I need a script that says something like this…

on (release) {

if “image.swf” is loaded into “blank\_mc” movieclip, then do nothing.  
if “message.swf” is NOT loaded into “blank\_mc” movieclip, then do this -\> blank\_mc.loadMovie (“message.swf”);

}

I hope you can understand:blush:
