# Best way to load level data

**URL:** <https://forum.kirupa.com/t/best-way-to-load-level-data/329123>\
**Category:** flash\
**Created:** [July 23, 2012, 5:43pm UTC](https://forum.kirupa.com/t/best-way-to-load-level-data/329123 "2012-07-23T17:43:42Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![John4213](https://avatars.discourse-cdn.com/v4/letter/j/8edcca/32.png) [@John4213](https://forum.kirupa.com/u/John4213)\
**Post date:** [July 23, 2012, 5:43pm UTC](https://forum.kirupa.com/t/best-way-to-load-level-data/329123/1 "2012-07-23T17:43:42Z")

</div>

Hi, I’m making a tile based game and so far I’ve been loading the level data (tiles, level size etc) from text files. I decided that loading levels from text files or XML files probably isn’t the most efficient or the best way to load data, especially if I decide to host the SWF on a website.

So what’s the best way of loading level data which is saved inside of the SWF file? I was thinking of just storing each level on a separate frame (which could easily be achieved, but hopefully there’s a ‘proper’ way of doing it.)

Thanks 😏
