FRIHOSTFORUMSSEARCHFAQTOSBLOGSDIRECTORY
You are invited to Log in or Register a 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?


Last edited by Raidation on Mon Jun 15, 2009 4:21 pm; edited 1 time in total
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

Please help me!!!! HTML/Flash help needed!
Flash help!
Flash Help
SEO For Sites Using Flash...Help
SEO For Sites Using Flash...Help

[solved] Flash gotoAndStop() not working
FLASH HELP NEEDED BADLY!!!
Awestys Flash Services
Flash, PHP and MySQL
FLASH HELP!!

What is the good way to learn Flash CS3?
Flash 5
Flash & ASP.NET
Action script
video in flash
Reply to topic    Frihost Forum Index -> Scripting -> Others

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