2 Replies Latest reply on Oct 10, 2007 5:53 PM by Craig Grummitt

    Get instance name from MC

      Is it possible to get the instance name of an MC or BTN to determine what action to take?

      For example, I have 10 dynamically generated MCs with the name empty_mc1, 2, 3 etc. I could hard-code the action to each MC (empty_mc1.onRelease = function() { doAction1() } and so on) but the idea is to increase the number of MCs in the future and that would require adding more code then.

      If I could click on an MC and return "empty_mc1" and use that in some code that executed doAction1()

      geez I hope this makes some sense. Maybe there is a smarter way to do it.