# Stop a frame in an external movie

**URL:** <https://forum.kirupa.com/t/stop-a-frame-in-an-external-movie/275855>\
**Category:** flash\
**Created:** [November 19, 2008, 2:08pm UTC](https://forum.kirupa.com/t/stop-a-frame-in-an-external-movie/275855 "2008-11-19T14:08:33Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![IanCremona](https://avatars.discourse-cdn.com/v4/letter/i/65b543/32.png) [@IanCremona](https://forum.kirupa.com/u/IanCremona)\
**Post date:** [November 19, 2008, 2:08pm UTC](https://forum.kirupa.com/t/stop-a-frame-in-an-external-movie/275855/1 "2008-11-19T14:08:33Z")

</div>

```auto

for (var i:Number = 0; i < 4; i++) {

var promotion+i:imageContainer = new imageContainer("images/Promo" +i+ ".swf","loader.swf");
addChild(promotion+i)

};

```

That’s not possible, I can (sort of) understand why you cannot declare a variable inside a loop, but, can you create it in an array like the following

```auto

var Promotion:Array = new Array();
for(var i:int= 0; i< 4; i++){
Promotion* = new Sprite();
Promotion*.graphics.beginFill(0x0000000);
Promotion*.graphics.drawRoundRect(50,50,50,50,50);
Promotion*.graphics.endFill();
addChild(Mask*);
}

```

In other forums it has been said that arrays are dynamic; you can’t enforce the types of their contents.

So, my question is how would I be able to create 500,000,000 (only joking!) instances of this code:

```auto

var Promotion1:imageContainer=new imageContainer(200,200,"images/Promo0.swf","loader.swf");
addChild(Promotion1)

```

The Error is:

```auto

TypeError: Error #1006: value is not a function.
    at LoadImage_fla::MainTimeline/frame1()

```
