# Problem Re-Loading Images?

**URL:** <https://forum.kirupa.com/t/problem-re-loading-images/209832>\
**Category:** flash\
**Created:** [December 12, 2006, 7:13pm UTC](https://forum.kirupa.com/t/problem-re-loading-images/209832 "2006-12-12T19:13:01Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![dewey](https://avatars.discourse-cdn.com/v4/letter/d/919ad9/32.png) [@dewey](https://forum.kirupa.com/u/dewey)\
**Post date:** [December 12, 2006, 7:13pm UTC](https://forum.kirupa.com/t/problem-re-loading-images/209832/1 "2006-12-12T19:13:01Z")

</div>

Hey, I think I may be having the same problem as this other guy, but I can’t for the life of me figure it out.

> **[unloading dynamic movie clip--help please?!](https://www.kirupa.com/forum/showthread.php?t=243788)**
>
> Got a web design/development question or just want to hang out with the most awesome people on the planet? Drop on in!

That’s the post I was just reading…

My code has this…

```auto
var box1:MovieClip = _root.attachMovie("mcScratchBox", "mcScratchBox1", _root.getNextHighestDepth(), {_x: 345, _y: 45});
var scratchedbox1:MovieClip = box1.prizeBox.attachMovie("scratched1", "scratched1", this.getNextHighestDepth());
box1.onRelease = function() {
   box1.scratchBox._visible = false;
   box1Scratched = true;
   checkBoxes(scratch);
}

```

And then, in another spot I have this…

```auto
box1.prizeBox.prizeImg.loadMovie(beer);

```

Where beer is simply an image of beer. Basically this is a little game that works like a scratch and win type thing (only for now you “click” instead of scratch).

Anyways, the game will be set up so someone can play once, and will then have the chance to enter a promotion code and, if valid, play again. The first play is working great, but whenever I try to make the second play happen it won’t load the images. It’s just the blank movieclip I am loading the images into. I can somewhat resolve this problem by adding a variable to the end of “mcScratchBox1” but that doesn’t seem like the best thing to do. UnloadMovie doesn’t want to work, and so I am totally lost.

Any help is appreciated.

Thanks,

–d
