# Flash cant duplicate a created MC w/ image loaded into it?

**URL:** https://forum.kirupa.com/t/flash-cant-duplicate-a-created-mc-w-image-loaded-into-it/22163
**Category:** Uncategorized
**Created:** [May 31, 2003, 4:13am UTC](https://forum.kirupa.com/t/flash-cant-duplicate-a-created-mc-w-image-loaded-into-it/22163 "2003-05-31T04:13:43Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![eron19](https://avatars.discourse-cdn.com/v4/letter/e/edb3f5/32.png) [@eron19](https://forum.kirupa.com/u/eron19)
#### Post date: [May 31, 2003, 4:13am UTC](https://forum.kirupa.com/t/flash-cant-duplicate-a-created-mc-w-image-loaded-into-it/22163/1 "2003-05-31T04:13:43Z")

</div>

is it not possible to duplicate a created movieclip with a jpg loaded into it?

---

<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: [May 31, 2003, 6:41am UTC](https://forum.kirupa.com/t/flash-cant-duplicate-a-created-mc-w-image-loaded-into-it/22163/2 "2003-05-31T06:41:03Z")

</div>

can u elaborate more on what u want to do? I suspect you could.

---

<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: [May 31, 2003, 11:29am UTC](https://forum.kirupa.com/t/flash-cant-duplicate-a-created-mc-w-image-loaded-into-it/22163/3 "2003-05-31T11:29:52Z")

</div>

when u use…  
\_root.createEmptyMovieClip( yada yada );

then can u go duplicateMovieClip( yada yada );

no right? b/c im having a reaaaal hard time w/it…

---

<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: [May 31, 2003, 3:36pm UTC](https://forum.kirupa.com/t/flash-cant-duplicate-a-created-mc-w-image-loaded-into-it/22163/4 "2003-05-31T15:36:09Z")

</div>

yeah, I do it all the time. Is the image loaded dynamically?

---

<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: [May 31, 2003, 3:38pm UTC](https://forum.kirupa.com/t/flash-cant-duplicate-a-created-mc-w-image-loaded-into-it/22163/5 "2003-05-31T15:38:06Z")

</div>

i have written the script from the top of my head and I cant test it out now.

[AS]  
\_root.createEmptyMovieClip(“movieloader”,1);  
/\* \_root.movieloader.\_width = 200;  
\_root.movieloader.\_height = 200;\*/  
\_root.movieloader.\_x = 228;  
\_root.movieloader.\_y = 150;  
\_root.movieloader.\_alpha = 100;  
\_root.movieloader.loadMovie(“movie/jpg”);  
\_root.movieloader.dupicateMovieClip(“newname”,2);

[/AS]

It should work. Give it a try. If not then perhaps the some script expert out here can help!

---

<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: [May 31, 2003, 3:39pm UTC](https://forum.kirupa.com/t/flash-cant-duplicate-a-created-mc-w-image-loaded-into-it/22163/6 "2003-05-31T15:39:44Z")

</div>

I don’t think the loaded image will transfer over to the new clip… I think you’ll need to call the jpg file into the new MC for it tow ork correctly, but don’t quote me on that…

---

<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: [May 31, 2003, 3:45pm UTC](https://forum.kirupa.com/t/flash-cant-duplicate-a-created-mc-w-image-loaded-into-it/22163/7 "2003-05-31T15:45:13Z")

</div>

if what jubba says is right, then you might need to add one last line:

[AS]  
\_root.newname.loadMovie(“movie/jpg”,2);  
[/AS]  
That should do the trick.

Let me know if it worked.
