2 Replies Latest reply on Oct 28, 2006 7:44 AM by kglad

    Attaching Code to a Duplicated MC

    VaporAction Level 1
      I'm hoping people can help me finish this dialogue...

      Q - I have a bunch of movieclips generated through the duplicateMovieClip method...they all have names like MC_mc1, MC_mc2, MC_mc3 etc, etc....I want to run a hitTest with the movieclips...it doesn't matter which MC_mc is in the hitTest field...so how do I get Flash to ignore the "n" in MC_mc"n" ?

      A - You may want to try something like placing the hitTest code on each movieClip (or the original so it's there in duplication) and have each clip monitor itself. When a hit is detected it could tell a boradcaster to broadcast out to a listener on stage...

      Q - But how would the movieclip refer to itself? Because the name of the original would not be the name of the duplicates....