1 Reply Latest reply on Jan 24, 2007 6:22 PM by kglad

    Symbol Button Listener Issues

    Jeremy_Farmer
      i guess i don't understand how to use Symbol Buttons (I think that is the proper name for them) and listeners? I am trying to add a listener to a Symbol Button and i cannot make it work at all using addEventListener or addListener. However if i drag a Button Component on stage the listeners work all day long.

      So how do i add a listener for say the click event to a Symbol Button? I cannot seem to find any information on this? All tutorials deal with the Button Component but never seem to talk about Symbol Buttons.

      I am even going about this the correct way? Thanks.
        • 1. Re: Symbol Button Listener Issues
          kglad Adobe Community Professional & MVP
          by a symbol button you mean a member of the button class?

          if so, you don't need to create a listener. that's already been done in the class definition. you would just use an onPress or onRelease etc handler for the button.

          for example, if you have a button on-stage with instance name btn1, you could use: