Results 1 to 2 of 2
  1. cooltpmd's Avatar
    75 Posts
    Global Posts
    77 Global Posts
    Wonder if any of you have dealt with this.

    I have a scene with multiple buttons.

    I want to use a single button Handler function and get the id of the button that triggered the event to decide the next action.

    MainAssistant.prototype.buttonHandler = function(event){

    if (get the id of the widget that sent this event){
    do something;
    do something else;

    I can't for the life of me find the way to capture the widgets information for this ... Any ideas?
  2. #2  
    Off the top of my head - try, event.item.??? Basically, look for it in the event.

Posting Permissions