PDA

View Full Version : instance name question



billowillo
November 16th, 2008, 04:42 PM
how do you give seperate mc's the same instance name? I have lots of different mc's but i want them all to act as walls on the same frame, so i turned them all seperately into mc's ( i didnt do all at once because then the bounding box would be the whole stage) and gave them all the instance name "wall" but when i start the game they act as if they havent been given an instance name. I know the code is right because i tested it by changing one of the mcs instance name to wall2 and changed part of the code to wall2 and it worked fine

im trying to stick with just an .fla on this one because its a small project. just need to know how to get this to work so all the mcs given the instance name wall work the same way.

Thanks, billowillo

sekasi
November 16th, 2008, 05:09 PM
have them extend the same base class instead.

billowillo
November 16th, 2008, 05:11 PM
is that really necessary? ill do it if so but like i said i was hoping to keep it inside the .fla

senocular
November 16th, 2008, 05:13 PM
separate MCs should not have the same instance name. You'll need to work around that depending on how you are using them

billowillo
November 16th, 2008, 05:20 PM
ok , i guess ill just give them all separate names and do a lil more coding.

thanks for the quick answers!