# Problem with loadMovie and on(rollOut)

**URL:** <https://forum.kirupa.com/t/problem-with-loadmovie-and-on-rollout/267763>\
**Category:** Uncategorized\
**Created:** [August 5, 2008, 2:28pm UTC](https://forum.kirupa.com/t/problem-with-loadmovie-and-on-rollout/267763 "2008-08-05T14:28:52Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![huoppi](https://avatars.discourse-cdn.com/v4/letter/h/f05b48/32.png) [@huoppi](https://forum.kirupa.com/u/huoppi)\
**Post date:** [August 5, 2008, 2:28pm UTC](https://forum.kirupa.com/t/problem-with-loadmovie-and-on-rollout/267763/1 "2008-08-05T14:28:52Z")

</div>

Having an issue with the code below on my buttons. The buttons are a map of buildings in a city. Rolling over the buttons loads an external .jpg into pic\_mc. The problem arises when the user rolls quickly over several buttons. From what I understand about loadMovie, the .jpg takes some time to load, and the load completes after the on(rollOut) event. When the load completes it wipes the \_visible property from pic\_mc, leaving the image visible when the mouse is not on the button.

Is there a way around this?

[swf is here](http://media.theday.com/gbl/media/dynamic/slideshows/maps/nlmap/nlmap.html)

```auto
 on(rollOver){
	bg_mc._visible=1;
	pic_mc._visible=1;
	pic_mc.loadMovie("bank400.jpg", 10);
	bg_mc.address.text = _root.bank400_address
	bg_mc.use.text = _root.bank400_use
	bg_mc.own.text = _root.bank400_own
	bg_mc.notes.text = _root.bank400_notes
}
on(rollOut){
	pic_mc._visible=0;
	bg_mc._visible=0;
}

```
