# Problem with loadMovie ()

**URL:** <https://forum.kirupa.com/t/problem-with-loadmovie/834>\
**Category:** flash\
**Created:** [July 31, 2002, 4:39pm UTC](https://forum.kirupa.com/t/problem-with-loadmovie/834 "2002-07-31T16:39:59Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![wendytandy](https://avatars.discourse-cdn.com/v4/letter/w/7c8e57/32.png) [@wendytandy](https://forum.kirupa.com/u/wendytandy)\
**Post date:** [July 31, 2002, 4:39pm UTC](https://forum.kirupa.com/t/problem-with-loadmovie/834/1 "2002-07-31T16:39:59Z")

</div>

:asian: Hi all, i got problem loading .jpg file into flash. i’d drawn a square and converted it to movie-clip. then i added some actionscripts to load the file, it worked, but the file was loaded below the square insted of in the square.

Please guys help me, if you have problem understanding what my problem is, you can download the file at [www.geocities.com/tandywendy/problem.zip](http://www.geocities.com/tandywendy/problem.zip)

thanks

---

<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:** [July 31, 2002, 5:27pm UTC](https://forum.kirupa.com/t/problem-with-loadmovie/834/2 "2002-07-31T17:27:18Z")

</div>

sorry cutie … couldn’t get to your file. i got an error 404 when i clicked on the link to the zip.

and i’m not quite sure i understand your question. you should attatch your fla file and the jpeg you are trying to load instead of a zip somewhere on the net. then maybe we could understand better.

---

<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:** [July 31, 2002, 8:09pm UTC](https://forum.kirupa.com/t/problem-with-loadmovie/834/3 "2002-07-31T20:09:47Z")

</div>

Cutie?

Anyway, what’s the line of code you are using to load the jpg and what is the instance name of the movie clip into which you want to load it?

If the instance name of the square movie clip was “sq01” and the jpg was myImage.jpg, your loadMovie statement should be:

loadMovie(“myImage.jpg”, “\_root.sq01”);

---

<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:** [July 31, 2002, 8:18pm UTC](https://forum.kirupa.com/t/problem-with-loadmovie/834/4 "2002-07-31T20:18:01Z")

</div>

Well, no Kenny, if you do that you’re going to erase the square. What you have to keep in mind (Wendy) is that when you load your movie, the coordinates you use are the coordinates of its top left corner.

May I suggest you take a look at the tutorial ‘Loading techniques’, it’s very clear and very well explained 😛

pom :asian:

---

<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:** [July 31, 2002, 8:30pm UTC](https://forum.kirupa.com/t/problem-with-loadmovie/834/5 "2002-07-31T20:30:18Z")

</div>

Oh, so now we want to keep the square 🙂 haha - my bad.

How about:

on(press) {  
loadMovie(“linkage.jpg”,sq02)  
sq02.\_x=130  
sq02.\_y=55  
}

Place an empty mc on stage with the instance name of sq02. Determine the upper-left x & y axis points of where you want the jpg to appear on the squar to replace the above x & y points.
