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?
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;
}