# Is it easy?

**URL:** <https://forum.kirupa.com/t/is-it-easy/7890>\
**Category:** flash\
**Created:** [November 9, 2002, 7:52pm UTC](https://forum.kirupa.com/t/is-it-easy/7890 "2002-11-09T19:52:02Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![jobhall](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/jobhall/32/102_2.png) [@jobhall](https://forum.kirupa.com/u/jobhall)\
**Post date:** [November 9, 2002, 7:52pm UTC](https://forum.kirupa.com/t/is-it-easy/7890/1 "2002-11-09T19:52:02Z")

</div>

How do I make a button that doesn’t load the target mc, if that mc is already loaded.

Here is the code I used:

on(press){  
if(!bLoadCommandIssued){  
bLoadCommandIssued = true;  
loadMovie(“filename.swf”, “1”);  
}  
}

It doesn’t load the mc again but it won’t unload the movie in level\_1?

Check my site, [http://www.staticproject.com](http://www.staticproject.com) if you have any questions

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [November 9, 2002, 8:10pm UTC](https://forum.kirupa.com/t/is-it-easy/7890/2 "2002-11-09T20:10:58Z")

</div>

you want to unload the movie if the movie is already loaded?  
them add one line to the script:  
on(press){  
if(!bLoadCommandIssued){  
bLoadCommandIssued = true;  
loadMovie(“filename.swf”, “1”);  
} else {  
unloadMovie(“filename.swf”);  
}  
}  
🙂 :-\ 🙂

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [November 9, 2002, 8:40pm UTC](https://forum.kirupa.com/t/is-it-easy/7890/3 "2002-11-09T20:40:22Z")

</div>

No, here is what I want to do:

on Release, button\_1 loads mymovie.swf. If button\_1 is pressed again, mymovie.swf won’t be loaded again.

Then, if button\_2 is pressed, mymovie2.swf is loaded in place of mymovie.swf.
