# createEmptyMovieClip?

**URL:** <https://forum.kirupa.com/t/createemptymovieclip/223512>\
**Category:** Uncategorized\
**Created:** [April 23, 2007, 2:26pm UTC](https://forum.kirupa.com/t/createemptymovieclip/223512 "2007-04-23T14:26:05Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![mike314](https://avatars.discourse-cdn.com/v4/letter/m/e99b99/32.png) [@mike314](https://forum.kirupa.com/u/mike314)\
**Post date:** [April 23, 2007, 2:26pm UTC](https://forum.kirupa.com/t/createemptymovieclip/223512/1 "2007-04-23T14:26:05Z")

</div>

Got a quick one here, I have 2 frames in a my fla, and here is what frame 1 looks like:

this.createEmptyMovieClip(“my\_mc\_1”, 10);  
with (my\_mc\_1){  
\_x=0;  
\_y=0;  
}  
my\_mc\_1.attachMovie(“frame1Image”, “image1”, \_root.getNextHighestDepth());  
stop();

I also have a button on the stage with this in it:  
on(release){  
my\_mc\_1.removeMovieClip()  
gotoAndPlay(2);  
}

I also have a button to go back to frame 1 in frame 2, problem is that after a while of going back and forth from frame 1 and 2, the movieclip my\_mc\_1 appears in frame 2, which its not supposed to.

basically when you hit frame 2, you should never see the image, but it still appears

anyway around this??

thanks
