0 Replies Latest reply on Nov 11, 2008 2:39 AM by

    how to get events with a line drawn by shape is selected ?

      HI,
      In my application I am drawing different lines by following way. I have added a sprite within UIComponent and
      then using shape in sprite to draw lines.

      sh = new Shape();
      sh.graphics.clear();
      sh.graphics.lineStyle(0.5,0x000000);
      sh.graphics.moveTo(startX,startY);
      sh.graphics.lineTo(endX,endY);

      this.addChild(sh);

      I want that whenever i click on any line, there should be an event related to that line which should enable me to select that line. I have tried a lot but i could not found any way. Whether it is possible, please suggest any solution if it is.

      Thank you.