# "Performance issue"

**URL:** <https://forum.kirupa.com/t/performance-issue/326279>\
**Category:** flash\
**Created:** [December 4, 2011, 2:17pm UTC](https://forum.kirupa.com/t/performance-issue/326279 "2011-12-04T14:17:55Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tompa](https://avatars.discourse-cdn.com/v4/letter/t/6de8d8/32.png) [@Tompa](https://forum.kirupa.com/u/Tompa)\
**Post date:** [December 4, 2011, 2:17pm UTC](https://forum.kirupa.com/t/performance-issue/326279/1 "2011-12-04T14:17:55Z")

</div>

**Hello everyone!**  
I’m creating a application in Flash for a touchscreen that is used to give  
customers in floor/wall-company ideas how their room can look like.

I’m having a transparent room as a top-layer and 2x MovieClips  
behind that layer for the floor and the walls.

When the user is pressing one of the textures below the picture,  
this code will update the wall/floor layer’s texture with the new one.  
\*The textures are jpg-files (100x100px)  
\*

```auto
for(var p=0; p<10; p++){
        for(var k=0; k<20; k++){
            var tile:tileBig = new tileBig();
            var jpgURL:URLRequest;
            jpgURL = new URLRequest(tilePath);
            var picLoader:Loader = new Loader();
            picLoader.load(jpgURL);
            tile.pic.addChild(picLoader);
            tile.x = X;
            tile.y = Y;
            mc_image.tapet.addChild(tile);
            X += 100;
        }
        Y += 100;
        X = 0;
}

```

The floor and wall-layers are MovieClips with 10x20 texture-tiles,  
which means there are 200 tiles (that’s probably the problem).

**So, the problem is:**  
When the user press the new texture, it takes like 2-4 seconds before  
Flash have loaded each of those 200 tiles.

I can’t think of any other way to make those 200 tiles load  
faster in any way and that’s why I’m asking you;

Is there any way to load those 200 tiles faster?

_Thanks in advance,_  
_~Tompa_
