0 Replies - 340 Views - Last Post: 27 March 2005 - 06:48 AM

#1 reyco1   User is offline

  • New D.I.C Head
  • member icon

Reputation: 2
  • View blog
  • Posts: 43
  • Joined: 20-March 05

UI Component - Button

Posted 27 March 2005 - 06:48 AM

Description: Drag an button component into the stage and instance name it "myButton". Paste the code onto frame one of the movieActions for the button component in mx 2k4
myButtonListener = new Object();
myButtonListener.click = function() {
     trace("You clicked the button! Tsk, tsk!");
};
myButton.addEventListener("click", myButtonListener);

Is This A Good Question/Topic? 0
  • +

Page 1 of 1