Best way to load level data

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 :smirk: