# Map Tile culling problem

**URL:** <https://forum.kirupa.com/t/map-tile-culling-problem/205783>\
**Category:** flash\
**Created:** [November 1, 2006, 11:10pm UTC](https://forum.kirupa.com/t/map-tile-culling-problem/205783 "2006-11-01T23:10:59Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![marky\_boy](https://avatars.discourse-cdn.com/v4/letter/m/c0e974/32.png) [@marky\_boy](https://forum.kirupa.com/u/marky_boy)\
**Post date:** [November 1, 2006, 11:10pm UTC](https://forum.kirupa.com/t/map-tile-culling-problem/205783/1 "2006-11-01T23:10:59Z")

</div>

Hello there. This is a bit complicated so I apologise in advance for that.

I’m tiling a map using a set of tiles generated on the fly.

Here’s a link to the map as it is:

[http://www.markpenfold.net/MapTilingThing.swf](http://www.markpenfold.net/MapTilingThing.swf)

It’s still very rough but if you hover your cursor over the right hand side it scrolls that way.

The problem is, I can’t get it to remove the movie tiles which are out of view so it’s getting too cumbersome and sluggish.

I tried swapping the depths then using removeClip() but that didn’t work.

Any ideas would be ace. I’m drawing a bit of a blank…

Here’s how I’m adding the new tiles in case:

```auto
myDotArray[myY][myX+7] = myC.attachMovie("MapTile", sss, myC.getNextHighestDepth()+1, {_x:(myX+7)*108, _y:myY*108}); 
			myDotArray[myY][myX+7].doDot_string(superA[(myY*40) + myX+7]);

```

All the best  
M
