# loadMovie stuff

**URL:** <https://forum.kirupa.com/t/loadmovie-stuff/150895>\
**Category:** flash\
**Created:** [June 11, 2005, 11:51am UTC](https://forum.kirupa.com/t/loadmovie-stuff/150895 "2005-06-11T11:51:36Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![drose429](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/drose429/32/202_2.png) [@drose429](https://forum.kirupa.com/u/drose429)\
**Post date:** [June 11, 2005, 11:51am UTC](https://forum.kirupa.com/t/loadmovie-stuff/150895/1 "2005-06-11T11:51:36Z")

</div>

Hi  
With the following code I am trying to load redPic jpeg into the second frame of a movie called content. content has 2 key frames the firsts contains a graphic and the second is empty and waiting for redPic. when I play the movie redpic loads and my moviclip plays with red pic static as if it is in both the frames, rather than play the 2 frames with the two graphics alternating. I cant work out where red pic is sitting.

red\_btn.onRelease = function() {  
var i = 1;  
loadMovie(“redPic.jpg”, \_root.content\_mc.createEmptyMovieClip(“red\_mc”,1));  
red\_mc=\_root.content\_mc.\_currentframe + i;  
trace(\_currentframe+i);//this give the intended value of 2  
};

I have used a varriable because i intend to bring lots of images by using a counting loop

I wonder if anyone can help or am I in the wrong ball park on this one.

Cheers
