Collision Detection within child MovieClips
I know Ive been posting a lot of questions, but its only because this forum has been so helpful with solving my problems. So I have the right code for movement and collision, but my items on stage are arranged in a way that make it difficult for the code to access. The moving object is on the base level, but the walls are part of the background so they have to be in the background MovieClip. (Otherwise they wont scroll when the background does) So how can I call the child movie clips, which all have the same instance name, without confusing the program? Ive tried MovieClip(getChildByName("wall")) but although the program runs with no errors, it ignores all code after that. Heres the full line for reference: Collision.block(character, MovieClip(getChildByName("wall"))); And if you need it the Collision class I'm using is found here: [ActionScript 3] Collision Class - Pastebin.com
