1 Reply Latest reply on Nov 7, 2008 6:19 AM by Newsgroup_User

    addEventListener on graphics item

    tausif_d Level 1
      hello
      i just want to know is there any way fro applying addEventListener on graphics
      i did --- canvas.graphics.drawRect();
      now i want to apply addEventListener on onClick of that rect
      or is there any other method
      thanks in advance
        • 1. Re: addEventListener on graphics item
          Level 7

          "tausif d" <webforumsuser@macromedia.com> wrote in message
          news:gf0thv$cbg$1@forums.macromedia.com...
          > hello
          > i just want to know is there any way fro applying addEventListener on
          > graphics
          > i did --- canvas.graphics.drawRect();
          > now i want to apply addEventListener on onClick of that rect
          > or is there any other method
          > thanks in advance

          I think you'll need to add it as a separate IUIComponent if you want to
          listen to it separately from Canvas.