@xnpxgames

That tutorial causes confusion because it includes two ways to create the map. If you're using FlxOgmoLoader map then you don't need that loop.

From tutorial section 6:

TiledMap does not have a built-in loadEntities() function, so for that you'll need to change this to:

for (e in tmpMap.objects) { placeEntities(e.name, e.xmlData.x); }

But unless you're using FlxTileMap to create the map you dont need that.
If you're using FlxOgmoLoader , make sure to ignore the change this to ... for Tiled parts.

There's a link to the completed project on the Conclusion page of the tutorial where you can check the code.