# What am I doing wrong?

**URL:** <https://forum.kirupa.com/t/what-am-i-doing-wrong/62417>\
**Category:** Uncategorized\
**Created:** [August 27, 2004, 4:19pm UTC](https://forum.kirupa.com/t/what-am-i-doing-wrong/62417 "2004-08-27T16:19:16Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![cheesy\_x](https://avatars.discourse-cdn.com/v4/letter/c/eb9ed0/32.png) [@cheesy\_x](https://forum.kirupa.com/u/cheesy_x)\
**Post date:** [August 27, 2004, 4:19pm UTC](https://forum.kirupa.com/t/what-am-i-doing-wrong/62417/1 "2004-08-27T16:19:16Z")

</div>

```auto
 
fscommand ( "allowscale", false );
 
myMap = [
[1, 1, 1, 1, 1, 1, 1, 1, 1, 1], 
[1, 0, 0, 0, 0, 0, 0, 0, 0, 1], 
[1, 0, 0, 0, 0, 0, 0, 0, 0, 1], 
[1, 0, 0, 0, 0, 0, 0, 0, 0, 1], 
[1, 0, 0, 0, 0, 0, 0, 0, 0, 1], 
[1, 0, 0, 0, 0, 0, 0, 0, 0, 1], 
[1, 0, 0, 0, 0, 0, 0, 0, 0, 1], 
[1, 0, 0, 0, 0, 0, 0, 0, 0, 1], 
[1, 0, 0, 0, 0, 0, 0, 0, 0, 1], 
[1, 1, 1, 1, 1, 1, 1, 1, 1, 1]];
 
 
tileW = 16;
tileH = 16;
 
 
function buildMap (map) {
var mapWidth = map[0].length;
var mapHeight = map.length;
for (var i = 0; i < mapHeight; ++i) {
for (var j = 0; j < mapWidth; ++j) {
this.attachMovie("tile", "t_"+i+"_"+j, ++d);
this["t_"+i+"_"+j]._x = (j*tileW);
this["t_"+i+"_"+j]._y = (i*tileH);
this["t_"+i+"_"+j].gotoAndStop(map*[j]+1);
}
}
}
 
 
buildMap (myMap);
 

```

The map wont build, only one tile appears… I have a tile MC that i want to build a map with… it has 2 frames… one is white, the other black… v I cant seem to get this to work!

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [August 27, 2004, 11:47pm UTC](https://forum.kirupa.com/t/what-am-i-doing-wrong/62417/2 "2004-08-27T23:47:29Z")

</div>

yah uhh yuo deffinatlyey meesed up i never figured out how to fixit so i just started over becuase i wasn’t too far in. you stil lwant those tiles too?
