• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint

Code Fix!

buttonListener = new Object();
buttonListener.click = function (evtObj)
{
    trace("The " + evtObj.target.label + " button was clicked. ");
}
submit1_btn.addEventListener("click", buttonListener);
submit2_btn.addEventListener("click", buttonListener);

What the Sam Hill?

First, we create your basic empty object.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint