FRIHOST FORUMS SEARCH FAQ TOS BLOGS COMPETITIONS
You are invited to Log in or Register a free Frihost Account!


[solved] Flash Help





Raidation
I am making a Flash game (no really?).

I need to attach a wall movieclip according to an array.

The array code all works. I don't need to give you that.

The problem is with the depth.

My code is:
Code:

for(i = 0; i <= 19; i ++) {
   for(q = 0; q <= 7; q ++) {
      if(l1[i][q] == 1) {
         _root.attachMovie("mc_wall","mc_wall",_root.getNextHighestDepth());
         mc_wall._x = i*32;
         mc_wall._y = q*32;
      }
   }
}


I know the problem is with the _root.getNextHighestDepth() part, because I changed the depth and tested, but I can't get it to work. I've tried setting all their depthsm to 1, but it doesn't work.

Can anybody help me?
Peterssidan
Don't you need to use a unique name for each movieclip?
Maybe something like this works better: ?
Code:
_root.attachMovie("mc_wall","mc_wall_"+i+"_"+q,_root.getNextHighestDepth());
Raidation
I just fixed the problem. Instead of the depth rising, I had to make it go lower.

Thanks for the attempt, though.
Related topics
Flash 5
Flash & ASP.NET
Action script
Please help me!!!! HTML/Flash help needed!
Flash help!
Flash Help
FLASH HELP NEEDED BADLY!!!
Awestys Flash Services
Flash, PHP and MySQL
FLASH HELP!!
SEO For Sites Using Flash...Help
SEO For Sites Using Flash...Help
What is the good way to learn Flash CS3?
[solved] Flash gotoAndStop() not working
Reply to topic    Frihost Forum Index -> Scripting -> Others

FRIHOST HOME | FAQ | TOS | ABOUT US | CONTACT US | SITE MAP
© 2005-2011 Frihost, forums powered by phpBB.