Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    Flash




Rotating Maze



I'd like to create a Flash maze game where the player character remains in the center of the screen, and the maze rotates around him (upon pressing the left or right keys). Up and down keys will move the maze vertically.

This will ideally simulate a character moving and turning around a maze, when it is the maze that is actually doing this.

I've not been able to achieve this, because upon moving forward or backward and then rotating, the rotation point remains relative to the maze movie clip's rotation point. I need the rotation point to always remain in the center.

Can someone show how to achieve the desired result?



Ultrashock Forums > Flash > ActionScript
Posted on: 2006-12-11


View Complete Forum Thread with Replies

See Related Forum Messages: Follow the Links Below to View Complete Thread

Rotating Maze
I'd like to create a Flash maze game where the player character remains in the center of the screen, and the maze rotates around him (upon pressing the left or right keys). Up and down keys will move the maze vertically.

This will ideally simulate a character moving and turning around a maze, when it is the maze that is actually doing this.

I've not been able to achieve this, because upon moving forward or backward and then rotating, the rotation point remains relative to the maze movie clip's rotation point. I need the rotation point to always remain in the center.

Can someone show how to achieve the desired result?

Maze Help
im making a maze game for my computer science class and i cant seem to figure out how to fix this, when you walk into a wall it stops you (that works) but when i try and make it when you walk onto the teleporter for the next level it doesnt do anything. heres the code:

(just like to remind you that "Walls" is the instance name for the walls you cant go through and "teleporter" is the instance name for the teleporter(who would have guessed)

with (_parent) {
if (Key.isDown(Key.RIGHT)) {
_x += xStep;
} else if (Key.isDown(Key.LEFT)) {
_x -= xStep;
} else if (Key.isDown(Key.UP)) {
_y -= yStep;
_y -= yStep;
_y -= yStep;
} else if (Key.isDown(Key.DOWN)) {
_y += yStep;
_y += yStep;
_y += yStep;
}
//
// detect if edges of the player square
// are colliding with the maze walls
if (_root.Walls.hitTest(getBounds(_root).xMax, _y, true)) {
_x -= xStep;
}
if (_root.Walls.hitTest(getBounds(_root).xMin, _y, true)) {
_x += xStep;
}
if (_root.Walls.hitTest(_x, getBounds(_root).yMax, true)) {
_y -= yStep;
_y -= yStep;
_y -= yStep;
}
if (_root.Walls.hitTest(_x, getBounds(_root).yMin, true)) {
_y += yStep;
_y += yStep;
_y += yStep;
}
if (_root.teleporter.hitTest(getBounds(_root).xMax, _y, true)) {
nextScene();
}
if (_root.teleporter.hitTest(getBounds(_root).xMin, _y, true)) {
nextScene();
}
if (_root.teleporter.hitTest(_x, getBounds(_root).yMax, true)) {
nextScene();
}
if (_root.teleporter.hitTest(_x, getBounds(_root).yMin, true)) {
nextScene();
}
}
gotoAndPlay(2);


if you need any more info just ask

Maze
Hey, my brother is trying to make a maze with as3, but he is having a problem with the walls. How would you make it so that the circle can't go through them? He tried using movieclips with the same instance names in order to represent different sections of walls. An example of this would be all the left side walls named left_wall. This doesn't work however, the first left wall he comes to does stop but all the others he goes straight through. How would this be accomplished? Thanks in advance.

Stephen

A 3D Maze...
First fo all hello and great/usefull things You have here..

At my free time I`m working at a maze game (some kind of multiplayer).. The game won`t be fully in flash, but flash+php. Just two some should be done in flash
The flash thing I`ve already done is the prototype of the maze editor (The magenta one is the starting point (cannot be placed on the borders), the green one is the ending point(can be placed only on the borders). Press "meklēt ceļu" to find the path)

The other thing that has to be made in flash is the maze itself. By now I`m experimenting on myself with a raycasting method 3D maze (move with arrows, click F to see fps, 1-3 to change the quality and 5-9 to change the wall texture. The engine was made by Frederic Heintz). BUT it`s too slow and too low quality, so...

The question is - are there an other ways to make a 3D scene (vectors?) without the raycasting method (or make it more faster)? I really like this one and was wondering if someone knows how something like that could be done....

Maze - Help Please :D
Maze.



Well with the maze that comes in the Flash MX samples folder, ive done everything for the maze, but the player is not moving.

I know the opponent is a motion guide, but the player you control is not moving...

Actionscript is on the maze.

Maze
I have a maze game and want the user to move the object with mouse in the maze.

The object must not cross the walls of maze...

AS2 - Maze
Last edited by :)) : 2008-04-23 at 03:07.
























Hi

check here plz: http://www.fredheintz.com/sitefred/main.html (click on maze button at left)

As you see you can download the fla too, but I want to have a button on the walls... and I tried but couldn't make it work...

questions:

1. how I can make this button to work... I think because it makes the all thing in pixel so it can only show the things and won't do the functionality... I'm not sure...

2. can I have a dynamic texts on the wals too... I made a dynamic text in the movieclip but its texts were not readable... can we do that some tricks or something...

3. how I can make it more smooth when we move... with ease or something??

Please clear me thanks

Regards,
Ali

Scripting For Maze
hi, I want to make a maze game, i have one maze and one object which is supposed to travel through the maze(on key press movements). can anyone give me a good script for the object to move across the maze?

Function Maze()
text field is beeing created, at thge right place and all.All nice and dandy, BUT, the formatField(); doesn't seem to be doing what it's supposed to. The styles are not beeing applied.

have a look

V

function makeTxt()
{
makeField();
formatField();
defineProps();
}
function makeField()
{
this.createTextField("theTxt", 1, "16", "-12", "400", "40");
}
function formatField()
{
//define the format
this.mtextFormat = new TextFormat();
this.mTextFormat.font = "Arial Black";
this.mTextFormat.embedFonts = true;
this.mTextFormat.size = 24;
this.mTextFormat.textColor = 0x676633;
this.mTextFormat.align="left";
//apply the format
this.theTxt.setTextFormat(mTextFormat);
}
function defineProps()
{
this.theTxt.type = "dynamic";
this.theTxt.border = false;
this.theTxt.background = false;
this.theTxt.password = false;
this.theTxt.multiline = false;
this.theTxt.html = true;
this.theTxt.variable = "txt";
this.theTxt.maxChars = null;
this.theTxt.autoSize = "left";
}
makeTxt();

Moving Maze
I'm attempting to create a maze game where the entire maze is not shown. When the character going through the maze walks out of the viewable area I want the viewable area of the maze to follow that character so another part of the maze will be seen.

Does anyone know how to do this?

Maze Related
Hi all,
I need a help from you flashguru's.
I have a maze. Now in that maze, I have a MC. That MC should move anywhere whithin the maze. It will not move on a key press but on enterframe.
So for example, if the MC hits any maze border, it should move in another direction. It can move up, down, right or left.
So how do I tell my MC to move within the maze, and when it hits any border, how do I tell it to move the other way?
Plz help as this is urgent.
Thanks

Simple Maze
i need help again. im pathetic. im a noob to a.s. tho. so nways, all i want, is to make an M.C. that moves with the arrow keys, and walls that it cant go past. walls that it bumps it to pretty much. thats it. thats all i want. plz sum1 help. thnx a bunch.

Maze Generator
i would like to generate a random maze in actionscript , then be able to control an object through it....i have maze generators written in other languages, has anyone done it in flash? any tutorials out there?

thanks!

Maze HitTest
Im making a maze that ball travels through. I am succesful on one wall. But when I come down to the other side it brings it up. How do make the side a hitTest? or can give me advice if theres better solutions. Thanks....
I have attached it to the ball named circle. I have include the file


//the hitTest
if (hitTest(_level0.wall)==true) {
_y = _y-10;
this below is the full code
onClipEvent (enterFrame) {
if (Key.isDown(37)) {
_x=_x-10;
}
if (Key.isDown(38)) {
_y=_y-10;
}
if (Key.isDown(39)) {
_x=_x+10;
}
if (Key.isDown(40)) {
_y=_y+10;
}
//the hit test
if (hitTest(_level0.wall)==true) {
_y = _y-10;


}

}

I Need Some Actionscript Maze Help
I've been all over the internet looking for a way to get my mazes that I can make into a flash game where you run a ball through it with either the mouse or the arrow keys. I've made simple square mazes that work, nothing to hard, but I'm more interested in trying to create a maze that looks a little like this:

this maze

I've been trying myself but I'm no actionscript expert at all. Anyone think they might be able to help me?

P.S. I can redraw this in flash to make it work much better I just drew this on some paper and scanned it.

Making A Maze
i've been trying to make a working maze game, with a simple maze and a litle character that you can move using the arrow keys. so far the guy can move but i cant get the walls to work as boundries and i put a goal at the end of the maze so it jumps to a new screen and it just wont work for me. I tried modifying the MC in the sample maze that flash mx 2002 provided but its just not working. any help with this would rock!

Need A Bit Of Help With My Maze Game...
The game has it so you guide the ball through the maze with your mouse. I just need to make it so the ball can't go through the walls, and when you reach the end it brings you to the next level. (Check the attachment for the game)

Script-a-maze
Ok, I have a maze. I got 5 GIFs to make levels, if you could help me please! either post on the forums OR PM me, ill send you the FLA via email, and the 5 pictures. Thanx, if you help script this for me, you can have you website advertised on the game if u script it (if you dont have one i can put u in credits). Well plz post or PM ME!

To make more clear, if you can script it so the guy cant go out of the screen, cant go through the walls, and when he reaches a designated area he will move on to the next level. I got the title screen and all that. Also i think you'd need photoshop for this to take out the white spaces in the maze. Also put a timer on the mazes. Well PLZ say that you could do this! I really need some help b/c im a nub at flash!

Maze Game Help
I need help with a maze game I made. Here's how you play: guide your cursor through maze walls without touching them.



My problem is that when a user moves their mouse really fast they can go throught the maze walls without getting a Game Over.



I need a script that will track how fast their cursor is going.

Maze Builder
Hi everyone,

I am having a problem with a uni project. I am designing a maze that, long story short, makes Flash return a "slow script, do you want to abort" error. I got the avatar to move around the maze okay, and every time the avatar hitTests a wall it returns to a set of _x and _y co-ords okay too.

What I want to do with it is actually completely optional. Rather than construct the maze manually, I wanted to try and make a bit of Actionscript do it upon loading the maze. All I want it to do is to make a series of Movie Clips, all with different instance names, and then resize and relocate them to the appropriate place on the stage. What I have looks a little like this...


Code:
//have 4 arrays that contain the width, height, _x and _y values
wallHeight = [90, 90, 10, 90, 90];
wallWidth = [10, 10, 90, 10, 10];
wallX = [10, 50, 90, 130, 170];
wallY = [10, 50, 90, 130, 170];

//creates the MCs
for (a=0; a=5; a++) {
_root.attachMovie("wall","wall"+a,0);
}

//changes the values of the MCs
for (b=0; b=5; b++) {
_root."wall"+b._x = wallX[b];
_root."wall"+b._y = wallY[b];
_root."wall"+b._width = wallWidth[b];
_root."wall"+b._height = wallHeight[b];
}
Trouble is, I haven't gotten much further than testing my first for loop (the one adding all of the MCs to the stage), which I know is the problem. It's far from infinite (being only 5 entries when I test it) but it's what's causing my computer to freeze up. I've tried using the for loop applied inside another empty Movie Clip on the stage, but that returns the same error. There is another for loop in the movie that works fine until I add the new one, so I know my computer can handle it (I'm on an iBook with 768RAM).

So I'm wondering if anyone can point out something I'm doing wrong, or point out that I have a computer that's not up to it! Apologies if I'm made some basic, elementary mistake, but this is my first time working with for loops and arrays and things...

Solving A 2D Maze
I am looking for some good reading and/or information on 2D maze solving algorithms, the more efficient the better. I have created a somewhat sloppy version for a game and rather than re-inventing the wheel I figured someone around here must have an idea. Thanks!

Maze Scripting Help
Can someone help me with a maze game? I combined what i know with a tutorial on physics to make my first game. However there's one thing left I need to know for it. Does anyonbe know the actionscript(or a tutorial) for making a character only move when a the button's are pressed and and to make a character turn with the direction he's going?

Thanks in advanced!

Where Is The Actionscript In Maze.fla
this is a stupid question
i am learning basic actionscript
and opened the fla called maze.fla (it comes with flash MX in the samples folder)
the html page says that the file uses hittest among other things
but when i open it i can't find any actionscript
i tried to look at all the mc and opened them but cannot find it.
can someone direct me to where i could find this code

i know that the opponent just follows a guide but for the player...i am lost

ty

bsw (newbie)

Help With Maze, CD, And GetBounds
I pieced together some code using getBounds and I have made a simple little maze thing.

What I can't do, which is the ultimate goal of this program, is to put MCs around the stage and have various things happen when the moving ball MC passes over them. But I can't get that to happen. There's one in the Walls MC and one just out on the stage.

I'm attaching the fla so maybe someone can find my simple error.

Thanks.

3d Maze Movment
Is it possible to move around in a 3d maze like in first person by using the keyboard arrows?

Where Is The Actionscript In Maze.fla
this is a stupid question
i am learning basic actionscript
and opened the fla called maze.fla (it comes with flash MX in the samples folder)
the html page says that the file uses hittest among other things
but when i open it i can't find any actionscript
i tried to look at all the mc and opened them but cannot find it.
can someone direct me to where i could find this code

i know that the opponent just follows a guide but for the player...i am lost

ty

bsw (newbie)

Maze Overlapping
I created a maze containing zig zag lines of course along with an object for the user to select the directions and the object moves.But then,the object overlaps the lines in the maze which i dont want.For this purpose,Please help me.
Its an urgent work and fast replies would be appreciated.

Creating A Maze
I want to create a maze. So the idea is that the ball will adopt the x/y coordinates of the mouse, unless the mouse travels over a wall of the maze. I have this code so far for passing the mouses coordinates to the ball:

Code:

ball1.onEnterFrame = function () {
   this._x = _root._xmouse;
   this._y = _root._ymouse;
}

but I don't want this to happen onEnterFrame, but rather when the ball is selected (clicked, onRelease)...for some reason this same code doesn't work tho with the onRelease method...thoughts??

2D Maze Game AI
Hello

I'm building a 2D maze game in Flash featuring "smart" enemies. At present, I'm using a load of conditional if statements based on timer values to move the enemies. Everything works so far but this approach will result in a mess if I continue with it. I'm sure there must be a more efficient way of creating AI (i.e. with less code).

Can anyone help? I can send the relevant file to anyone who is interested.
Many thanks in advance.

Lost In A Maze Of Levels---> Please Help
Hi, I desperately need help with this :

I have a text file (bio.txt) that gets loaded into an swf called bio.swf. Now this works fine but when I load this swf into a movieclip on the mainmovie time line (a different swf) the text does not show up. I'm pretty sure that it has something to do with the movie level but I can't find and documentation to explain this to me. Please help, Thanks in advance Vik.

This is the action script that works when bio.swf is played on it's own.

onClipEvent (load) {
loadVariables ("bio.txt", "_root.empty_box");
}
onClipEvent (enterFrame) {
if (downScroll == "1") {
this.textField.scroll += 1;
}
}
onClipEvent (enterFrame) {
if (upScroll == "1") {
this.textField.scroll -= 1;
}
}

How Can I Guide The Mouse Through The Maze?
Hi All,

Im making a game, where people have to drag a mouse -the animal kind =) , around a maze to get the cheese, without touching the walls in the quickest time possible.

Ive made the small furry mouse, and I can click on him(hes stored in a clip) and drag him around the screen.

But I cant figure out to register a wall collision. i.e if I drag the mouse ova a wall in the maze.

Is it possible to do this? without having tonnes of if .... then-else statements?

Cheerz,
Dwayne

Interactive Logic Maze
Flash 5

Hi

I found a site that had mazes on (I was looking for the theory that the average man making a maze would follow a specific path and that mathematicians mazes were the hardest to comlpete... From Dean Koontz - One Door From Heaven - anyway...) and they mentioned that no-one had yet made a certain logic maze (they had the picture) as an interactive thing.

I thought this was a good challenge to try to do and have thus far made a flash file of the base and some bits n pieces.


My question is this:
You can references Movie Clips in actionscript. How do you reference buttons to make them visible/invisible etc...?


Vince

Chasing Character In A Maze.
Im doing a simple one level game. And Im kinda new in actionscript and stuff. I know the basics but not that knowledgable. My game has two characters, where one the user controls it and another the enemy. The enemy will be chasing the user's character throughout the game through a simple maze. (let's just say it is like pacman) I've searched loads of tutorials and cant find ne on what I need. Can ne one give me some tutorials or reference?
below is the script i used for user's character to make the character cant walk through walls (maze). Can i apply the same code to the enemy? and how to make the enemy constantly chases the user's character?
code: onClipEvent(enterFrame){

coll = "";
for(i =0; i<32;i++){
if (this.hitTest("_parent.dinding" + i)) {
coll = "hitted";
_x = oldx;
_y = oldy;
} else {
if(coll != "hitted"){
coll = "not hit";
}
}
}

oldx = _x;
oldy =_y;
}

the fla file :

betatesting.fla

[F8] Questioned Maze Game As PLZ HELP
Hi Flashers,

I have a problem that needs your help. PLEEEEZE !!!!

I have created a linear flash maze. ie answer a true / false question correctly, click continue button, ball rolls through maze. pretty simple.

Here's the hard bit.
Now the client wants the ball to roll on a correct answer, but NOT to roll on the wrong answer. the player can move to the next question (without the ball rolling) if they got the previous question wrong.

I have been looking at tutorials and movies etc for the last 2 days and cant get my head around how to make it work.

I've attached the fla so you can see what I mean.

Please help .... I have a deadline of tomorrow.


THANKS SO MUCH ... in advance (more thanks to come later too)

How To Generate A Random Maze
anybody know a good tutorial or script for creating a random maze that you can let a player go through.

Maze With Bouncing Ball.
Hi, I am currently working on a final project for school. I want to make a game where balls are bouncing within a maze, and you have to navigate through without touching the walls or balls.

I don't know how to go about making the balls bounce withing the maze walls. I can make a ball bounce within the stage itself, but I don't know how to make it bounce within the maze walls. Can anyone lead me in some direction.

thanks in advanced.

Collision Detection Within A Maze.
Hi,
I have a maze which works fine and my player must navigate to the end.
I have added apples for them to collect along the way on a seperate layer.
The coding for my player movement and maze wall detection is all stored on the maze movieclip.
The code I have for apple-player detection is as shown below, but everywhere I put it, it doesn't work! Where should it be?!
Thanks!







Attach Code

onClipEvent(enterFrame) {
if(player.hitTest(_root.apple)) {
trace("YO!");
}
}

Simple Maze Game
i have made a simple maze game, last thing to add... is sound.

heres a list of sounds i want to know how to get working..

on main menu a song plays (loops), stops when i click to goto another frame.

in the actuall game over a few frames. I want a song to continuously play and stop when either the play wins or the player loses.

i want another song to play on the lose and win frames that are similar to menu,

i really cant remember how to do this in as2.

anyhelp will be greatly appreciated. so thanks in advance.

EDIT:

2 more problems have been found, first of all my next level cube bit, i have to move the player into the centre of the cube, its using the same code as the walls. Also i want the player to go over this rather than under it. Secondly with the corner of the walls im getting the same problem as i am with the finish cube, it has to go right into the corners before there is any reaction. If anyone can help me here i will be very appreciative






























Edited: 09/16/2008 at 09:59:33 AM by NecroSaint

A Maze Engine In Flash
okay, well i was just thinking if it's possible to make a maze engine in flash like the old pacman games.

a simple maze
a yellow dot
some other dots{monsters}
and little red dots for food

if anyone knows of a good tutorial about classes in mx...post the address here please

Create A Enemy In Maze
hello,nw i want create a enemy move around in maze.

here is my fla file,thx

Flah Game MAZE
hi guys.

So I'm building this Flash game and I'm trying to get the ICON controlled by the keyboard to leave a CONTRAIL behind it so we know where in the maze we've been already. I'd like it to be an instancce used over and over again so Ic an make it look a bit like smoke, etc.. . .(instead of it just being a line).. .

Any ideas ?

Here's what I have thus far.. . .
http://clearimagedesign.com/temp/san...port/mazeGame/

Thanks in advance !

jasonZ... . . .

Hittest Maze Problem? ? ?
I made this maze and the object was to get this ball through the maze without hitting the edge of the maze anywhere. But I found that in order to get the hittest to work correctly I had to break apart my maze in little pieces because when I converted my maze into a movie clip it drew a huge box around the entire thing and when the ball hit that box u would lose. OK, but that was a long process for even a small square based simple maze. My question, Is there a way to use hittest so that it doesnt detect the box but only the drawing part. I know you can use x and y but I dont see how you can really do that with a maze that has lines going everywhere. WOW, thats long, sorry! I attached a simplified example to explain what I mean.

AS3- Recursive Maze Solver
hey,
I just switched over to actionscript 3 from 2 and to help me get used to it, I created a simple program that visually shows how a maze is solved recursively using the backtracking method. The maze is actually solved first, the steps stored in an array and then shown afterwards.

http://img225.imageshack.us/my.php?i...esolverbc3.swf

Sorry I dont have a webhost, but you can download the .as file from here:
http://www.sharebigfile.com/file/275...Solver.as.html

Some of the private functions in my code are there to help me debug.

Maze Tutorial Mahem
hi i was fallowing a tutorial i found on the net about how to create a maze and have a magnifying effect but the problem is that i can seem to get new collision detection.

All the parts of the maze are broken into segments which are called part1 to part95 which are popped into an array and checked for collision detection

now when i introduce a part96 i want different things to happen but it doesnt seem to recgonise the detection

ill enclose the fla file for anyone who wants a look


does anyone know?

Hit Tests & Collisions With As3 (maze)
Forum Geniuses.

I'm working on this for some of my students to learn math, I'm a noob. Your help is beyond appreciated. (The resources currently available for as3 don't address my questions, and I'm stuck - please don't flame me!)

I have a bee and a maze.

I can control the bee with my keyboard.

When the bee collides with the maze I don't want the bee to be able to move.

I have it half-working.

Here is the .fla - any help is appreciated.

~la Swear

A Maze Engine In Flash
okay, well i was just thinking if it's possible to make a maze engine in flash like the old pacman games.

a simple maze
a yellow dot
some other dots{monsters}
and little red dots for food

if anyone knows of a good tutorial about classes in mx...post the address here please

Flah Game MAZE
hi guys.

So I'm building this Flash game and I'm trying to get the ICON controlled by the keyboard to leave a CONTRAIL behind it so we know where in the maze we've been already. I'd like it to be an instancce used over and over again so Ic an make it look a bit like smoke, etc.. . .(instead of it just being a line).. .

Any ideas ?

Here's what I have thus far.. . .
http://clearimagedesign.com/temp/san...port/mazeGame/

Thanks in advance !

jasonZ... . . .

Flah Game MAZE
hi guys.

So I'm building this Flash game and I'm trying to get the ICON controlled by the keyboard to leave a CONTRAIL behind it so we know where in the maze we've been already. I'd like it to be an instancce used over and over again so I can make it look a bit like smoke, etc.. . .(instead of it just being a line).. .

Any ideas ?

Here's what I have thus far.. . .
http://clearimagedesign.com/temp/sa...rport/mazeGame/

I found a tutorial for a mouse trail, but I couldn't quite get that to translate over to keyDown, etc.. . for our plane.. . .any advice would be great !!

Thanks in advance !

Mini... . . . .

Collision Detection In A Maze
Hi all, I have this big problem.
I am developing a game in wich a character has to move in a maze. The maze is built with attachMovie using a multidimensional array as matrix. Now I need to check the collisions!! It would be easy if the character'd move step by step from a piece of the matrix to another one... but the problem is that I need to apply inertia to its movements, so any attempts to check the collisions are failing!!
If it can be of any help, this is the code that I'm using to move the character:

ActionScript Code:
xmov = 0;
ymov = 0;
decay = .95;
_root.onEnterFrame = function() {
    xmov *= decay;
    ymov *= decay;
    character._x += xmov;
    character._y += ymov;
    if (Key.isDown(37)) {
        xmov--;
    }
    if (Key.isDown(38)) {
        ymov--;
    }
    if (Key.isDown(39)) {
        xmov++;
    }
    if (Key.isDown(40)) {
        ymov++;
    }
};

And this the one to build the maze:

ActionScript Code:
tileW = 16;
tileH = 16;
 
startX = 0;
startY = 0;
 
function buildMap (map) {
    this.attachMovie("empty", "clip", 0);
    this.scrClip._x = startX;
    this.scrClip._y = startY;
 
    mapW = map[0].length;
    mapH = map.length;
 
    cMap = map;
    for ( var i=0; i<mapH; ++i ) {
        for ( var j=0; j<mapH; ++j ) {
            this.clip.attachMovie("tile", "t_"+i+"_"+j, ++d);
            this.clip["t_"+i+"_"+j]._x = j*tileW;
            this.clip["t_"+i+"_"+j]._y = i*tileH;
}
    }
}

Any help would be much appreciated, thanks in advance!!

Copyright © 2005-08 www.BigResource.com, All rights reserved