hello.
i have a .fla of pacman game and i was trying to make changes to see how it works.. I can edit the maze but cannot extend it. the width should always be the same. if i extend the width, the character can go through the extended wall and roam everywhere..
heres the code where the maze is initialized. please tell me how to extend the width.


Actionscript Code:
"############################"+
"#............##............#"+
"#.####.#####.##.#####.####.#"+
"#O####.#####.##.#####.####O#"+
"#.####.#####.##.#####.####.#"+
"#..........................#"+
"#.####.##.########.##.####.#"+
"#.####.##.########.##.####.#"+
"#......##....##....##......#"+
"######.##### ## #####.######"+
"######.##### ## #####.######"+
"######.##          ##.######"+
"######.## ######## ##.######"+
"######.## # # # ## ##.######"+
"L     .   # # # ##   .     R"+
"######.## ### #### ##.######"+
"######.## ######## ##.######"+
"######.##          ##.######"+
"######.## ######## ##.######"+
"######.## ######## ##.######"+
"#............##............#"+
"#.####.#####.##.#####.####.#"+
"#.####.#####.##.#####.####.#"+
"#O..##.......  .......##..O#"+
"###.##.##.########.##.##.###"+
"###.##.##.########.##.##.###"+
"#......##....##....##......#"+
"#.##########.##.##########.#"+
"#.##########.##.##########.#"+
"#..........................#"+
"############################";

// Set up Maze array
for (i=-1; i<29; i++) {
    Maze.attachMovie("Empty", i, i+1);
}

// Set up components of array and draw pills
pos = 0;
for (j=0; j<31; j++) {
    for (i=0; i<28; i++) {
        Maze[i][j] = m.charAt(pos++);
        pill = false;
        if (Maze[i][j] == ".") {
            pill = true;
            Maze[i].attachMovie("Pill", "P"+j, pos);
        }
        if (Maze[i][j] == "O") {
            pill = true;
            Maze[i].attachMovie("Power", "P"+j, pos);
        }
        if (pill) {
            with (Maze[i]["P"+j]) {
                _x = OFFX + 12*i;
                _y = OFFY + 12*j;
            }
        }
    }
}