Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- stop();
- var buttons:Array=[button_01,button_02,button_03,button_04];
- for (var u:Number =0; u<buttons.length; u++) {
- buttons[u].addEventListener(MouseEvent.CLICK,onClick);
- buttons[u].addEventListener(MouseEvent.ROLL_OVER,onOver);
- buttons[u].addEventListener(MouseEvent.ROLL_OUT,onOut);
- /*for (var i:Number = 0; i<btnNum; i++) {
- button.name="button"+i;
- }*/
- function onClick(evt:MouseEvent):void {
- if (this.currentFrame==1) {
- this.target.play();
- } else {
- }
- }
- function onOver(evt:MouseEvent):void {
- }
- function onOut(evt:MouseEvent):void {
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement