1 Reply Latest reply on Apr 15, 2008 4:02 PM by jinx82002

    Which chart was clicked on?

    FlexBeginner Level 1

      event.target.name appears to give me what I'm after but is there a better (more usual) way of obtaining the id/name of the chart that was clicked on? For example, is there no way to derive it from event.hitData.chartItem?

      Also, please tell me what the ActionScript equivilent of the following JavaScript is: -

      var myObj = document.getElementById(myVar);

      Cheers Richard Maher
        • 1. Re: Which chart was clicked on?
          jinx82002 Level 1

          event.currentTarget (rather than event.name) is always the better option to ensure you're consistently getting the correct object that dispatched the click event. Put a break point on the line in your event handler for that click and you can check out all the props associated with the click event, they'll have the info you're after.