# Load an Image in Multiple movie clips using as3

**URL:** <https://forum.kirupa.com/t/load-an-image-in-multiple-movie-clips-using-as3/331101>\
**Category:** flash\
**Created:** [May 17, 2013, 6:13am UTC](https://forum.kirupa.com/t/load-an-image-in-multiple-movie-clips-using-as3/331101 "2013-05-17T06:13:31Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![stylewaves](https://avatars.discourse-cdn.com/v4/letter/s/6a8cbe/32.png) [@stylewaves](https://forum.kirupa.com/u/stylewaves)\
**Post date:** [May 17, 2013, 6:13am UTC](https://forum.kirupa.com/t/load-an-image-in-multiple-movie-clips-using-as3/331101/1 "2013-05-17T06:13:31Z")

</div>

[COLOR=#000000][FONT=Arial]I am really curious of asking a particular question to everyone of you. I am creating an Application in flash that is lot similar to this Application [Zazzle Case Cover](http://www.zazzle.com/cr/design/pt-casemate_case?formfactor=apple_iphone5&style=barelythere)[/FONT][/COLOR]  
[COLOR=#000000][FONT=Arial]I am almost ready with what i was supposed to do and How i have to do. But, still i am ain’t a very big Tech\_geek to handle all these . I list out some of the things which i could`nt achieve. Kindly help me if possible.[/FONT][/COLOR]  
[LIST=1]  
[_]I know that inorder to load unlimited number of images in a Movie Clip, we need Array. But to go with it, I am not sure of framing it properly.  
[_]I have Merged certain codings from internet and encoded it to act as the Application in that Site for a Single image in a Single view, but when i try to add child or make it display the same image in all other views i can’t frame the coding. It is not behaving properly .  
[_]Last but not the Least, I am confused of displaying the Bitmap data in as3… I wanted to show the Uploaded Panel Image in the below thmbnail area but i am not so sure of it.  
[/LIST][COLOR=#000000][FONT=Arial]The Questionnaire format of the Above problems are[/FONT][/COLOR]  
[LIST]  
[_]How to upload unlimited number of images in a Movie Clip using Array ?  
[\*]Is it is possible to Display the same image in two Movie Clips simultaneously using addChild ? I had lots of blah and blah but this area plays the 2nd Question and even Answer for it. But i am ain’t sure revealing the Answer.

```auto

[COLOR=#00008B]function[/COLOR] onMovieClipLoaderComplete([COLOR=#00008B]event[/COLOR]:[COLOR=#2B91AF]Event[/COLOR]):[COLOR=#00008B]void[/COLOR]{ [COLOR=gray]// Hide progress bar[/COLOR] progressBar.visible=[COLOR=#00008B]false[/COLOR]; [COLOR=#00008B]var[/COLOR] loadedContent:[COLOR=#2B91AF]DisplayObject[/COLOR]=[COLOR=#00008B]event[/COLOR].target.content; [COLOR=#00008B]var[/COLOR] loader:[COLOR=#2B91AF]Loader[/COLOR]=[COLOR=#00008B]event[/COLOR].target.loader [COLOR=#00008B]as[/COLOR] [COLOR=#2B91AF]Loader[/COLOR]; loadedContent.x=-[COLOR=#800000]37.625[/COLOR]; loadedContent.y=-[COLOR=#800000]37.625[/COLOR]; loadedContent.width=[COLOR=#800000]75.25[/COLOR]; loadedContent.height=[COLOR=#800000]75.25[/COLOR]; trace([COLOR=#800000]"loadedContent.width="[/COLOR]+loadedContent.x); trace([COLOR=#800000]"loadedContent.height="[/COLOR]+loadedContent.y); mcOnStage=[COLOR=#00008B]true[/COLOR]; con1.container.addChild(loader); clears.addEventListener([COLOR=#2B91AF]MouseEvent[/COLOR].CLICK, removeMC); [COLOR=#00008B]function[/COLOR] removeMC([COLOR=#2B91AF]MouseEvent[/COLOR]):[COLOR=#00008B]void[/COLOR] { trace([COLOR=#800000]"Its Removed"[/COLOR]); [COLOR=#00008B]if[/COLOR] (mcOnStage ) { con1.container.removeChild(loader); con1.textcontainer.removeChild(txt); mcOnStage=[COLOR=#00008B]false[/COLOR]; } }}

```

[\*]“con1.container.addChild(loader);”  
Can i add “con1.container2.addChild(loader);” for the same loaded image.

[\*]How to Clone a Movieclip’s Bitmap data and Display it in another area or Movieclip ???  
[/LIST][COLOR=#000000][FONT=Arial]Guide me if possible…[/FONT][/COLOR]  
[COLOR=#000000][FONT=Arial]I have included the SWF file along with this Question…[https://docs.google.com/file/d/0B5jnHM1zpP4MOHRCeWFqX05sSTA/edit?usp=sharing[/FONT][/COLOR]](https://docs.google.com/file/d/0B5jnHM1zpP4MOHRCeWFqX05sSTA/edit?usp=sharing%5B/FONT%5D%5B/COLOR%5D)
