Thursday, December 24, 2009

How do you add actionscript to a button?

Flash tells me ';Mouse events are permitted only for button instances'; when I try to place on


(press) {


gotoAndStop(52);


}





So how do I add Actionscript to a button?How do you add actionscript to a button?
your code is okei. But I think your object is not a button its a movieclip. Make sure this clip as a button.How do you add actionscript to a button?
1. Make sure you have clicked on the button, and are in the Button's Action dialog, not the Frame's Action dialog.


2.


MyButton.onRelease = function() {


//Whatever


}





Where 'MyButton' is the instance handle for the button.
  • facial peels
  • cleanses
  • serum cream
  • numbering
  • No comments:

    Post a Comment