# Polaroid script

**URL:** <https://forum.kirupa.com/t/polaroid-script/176490>\
**Category:** flash\
**Created:** [January 24, 2006, 4:07pm UTC](https://forum.kirupa.com/t/polaroid-script/176490 "2006-01-24T16:07:09Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jt\_01](https://avatars.discourse-cdn.com/v4/letter/j/b5a626/32.png) [@Jt\_01](https://forum.kirupa.com/u/Jt_01)\
**Post date:** [January 24, 2006, 4:07pm UTC](https://forum.kirupa.com/t/polaroid-script/176490/1 "2006-01-24T16:07:09Z")

</div>

Hi, Basically I am attaching a movieclip to the stage called “polaroid”, then dynamically loading a jpeg into it “polaroid.holder”. But it doesn’t work. It seems that if I dynamically set the instance name of the polaroid clip from attachmovie it won’t work. Any ideas why?

Thanks!

```auto

i=1
function loader(){
choice = Math.round(Math.random()*5);
containernew = "container"+i
trace(containernew)
_root.attachMovie("polaroid",containernew, i);
containernew._x = random(300)
containernew._y = random(300)
_root.containernew.holder.loadmovie(choice + ".jpg");
i++
}
setInterval( loader, 1000 ); 

```
