# HELP! (Dynamic image loading problem)

**URL:** <https://forum.kirupa.com/t/help-dynamic-image-loading-problem/62364>\
**Category:** Uncategorized\
**Created:** [August 27, 2004, 5:38am UTC](https://forum.kirupa.com/t/help-dynamic-image-loading-problem/62364 "2004-08-27T05:38:51Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![SychoPsamIII](https://avatars.discourse-cdn.com/v4/letter/s/7c8e57/32.png) [@SychoPsamIII](https://forum.kirupa.com/u/SychoPsamIII)\
**Post date:** [August 27, 2004, 5:38am UTC](https://forum.kirupa.com/t/help-dynamic-image-loading-problem/62364/1 "2004-08-27T05:38:51Z")

</div>

😱😱😱 This is driving me insane.  
I have preformed like 10 searches in the Tuts and in the forums, and none of the accumulated info is helping me.  
I am working on a menu bar for this non-profit and they want to be able to update the images in it with relative ease. So, I create a two layer button with a simple mouse over effect, and set behind the mouse over effect layer (inside the button) an empty MC. To which I attach some simple action script (I’m not very proficient at this yet) which, if what I have been able to glean, is accurate should work.

I have attached a sample file.

Thank You,  
S.P.III

---

<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:** [August 27, 2004, 6:40am UTC](https://forum.kirupa.com/t/help-dynamic-image-loading-problem/62364/2 "2004-08-27T06:40:56Z")

</div>

i don’t think you can load anything(loadMovie()) into a button, your making this thing complicated rather than easy i’ll edit your file. and give you a diffrent solution 🙂

---

<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:** [August 27, 2004, 6:54am UTC](https://forum.kirupa.com/t/help-dynamic-image-loading-problem/62364/3 "2004-08-27T06:54:04Z")

</div>

here you go, if there’s anything else i should know, post it, i’ll check back in the afternoon.

---

<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:** [August 27, 2004, 2:17pm UTC](https://forum.kirupa.com/t/help-dynamic-image-loading-problem/62364/4 "2004-08-27T14:17:08Z")

</div>

…I took a look at your code and if what I am seeing is what I am reading, than you created a response to a button click, which loads the image. I’ve been able to get that to function, prior to this.  
What I need is a way to load the external image(s), directly in to the a MC from the get go (the images need to be seen from the start), this is why I was attempting to use an “onLoad” Comand.

Thank you for your help.

S.P. III

---

<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:** [August 27, 2004, 7:26pm UTC](https://forum.kirupa.com/t/help-dynamic-image-loading-problem/62364/5 "2004-08-27T19:26:24Z")

</div>

ok if you noticed i used a movieclip to function as a button, instead of a button-symbol. go inside the movieclip, click on the first frame you see and plug in the code i had on the on(press){ command, ofcourse without the on(Press){ and “}”, just take the inbetween.

---

<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:** [August 28, 2004, 6:17am UTC](https://forum.kirupa.com/t/help-dynamic-image-loading-problem/62364/6 "2004-08-28T06:17:21Z")

</div>

> [@mansour](#):
>
> ok if you noticed i used a movieclip to function as a button, instead of a button-symbol. go inside the movieclip, click on the first frame you see and plug in the code i had on the on(press){ command, ofcourse without the on(Press){ and “}”, just take the inbetween.

I took your suggestion and ran with it; placing the MC on a layer in below the “buttons layer” then making an “invisible” Button over the top of said MC.

I think that I can make this work for me, by copying the MC, giving it an individual instance name and adjusting the A.S. for it.

Again Thank You,  
:skull:S.P. III:skull:

---

<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:** [August 28, 2004, 6:54am UTC](https://forum.kirupa.com/t/help-dynamic-image-loading-problem/62364/7 "2004-08-28T06:54:55Z")

</div>

As it turns out what I needed to do is generate a new MC give this a unique instance name; and within frame one of this new MC I implant the Adjusted AS.

\_root._instanceName_.unloadMovie();  
\_root._instanceName_.loadMovie(“_fileName_.jpg”);

Then everything seemed to work.

:skull:-S.P. III:skull:
