# Problems with dynamic .jpg loading

**URL:** <https://forum.kirupa.com/t/problems-with-dynamic-jpg-loading/91369>\
**Category:** Uncategorized\
**Created:** [October 2, 2003, 3:33pm UTC](https://forum.kirupa.com/t/problems-with-dynamic-jpg-loading/91369 "2003-10-02T15:33:11Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![JuanPRS](https://avatars.discourse-cdn.com/v4/letter/j/919ad9/32.png) [@JuanPRS](https://forum.kirupa.com/u/JuanPRS)\
**Post date:** [October 2, 2003, 3:33pm UTC](https://forum.kirupa.com/t/problems-with-dynamic-jpg-loading/91369/1 "2003-10-02T15:33:11Z")

</div>

:hair:  
Hi everybody,I’m having a problem with dynamic .jpg  
loading. It’s a modification of the tutorial at [http://www.kirupa.com/developer/mx/loading.htm#Loading%20.jpg%20dynamically%20with%20Flash%20MX:](http://www.kirupa.com/developer/mx/loading.htm#Loading%20.jpg%20dynamically%20with%20Flash%20MX:)  
Here it goes:  
I have two buttons, each one calls a unique movie clip that only contains a script that creates an empty movie clip which loads a .jpg file located in a folder.  
When I click in the first button the empty mc loads fine with the pic and everything, when I click on the second button, the other empty mc loads ok also… but when I go back and click again in the first button nothing happens and it seems it loads under the other one. I tried with swapdepth but nothing happened.  
What should I do?

I hope everybody understands this, I’m sorry I can’t post the fla cause I don’t have it with me right now at work.

Thank you very much for your help  
JuanPRS
