package As{ import flash.display.*; import flash.events.*; import As.Main; import caurina.transitions.Tweener; public class BT1 extends MovieClip { //elke class moet een function hebben die het zelfde heet als de class as public function BT1():void { trace("ButonLinks class werkts"); this.addEventListener(MouseEvent.MOUSE_OVER, mouseOverHandler); this.addEventListener(MouseEvent.MOUSE_OUT, mouseOutHandler); this.addEventListener(MouseEvent.MOUSE_DOWN, mouseDownHandler); } public function mouseOverHandler(e:MouseEvent):void { //trace("over"); //Tweener.addTween(this, {y:337, time:0.3, transition:"easeInSine"}); } public function mouseOutHandler(e:MouseEvent):void { //trace("weg") //Tweener.addTween(this, {y:350.1, time:0.3, transition:"easeOutSine"}); } public function mouseDownHandler(e:MouseEvent):void { //As.Main.aantal--; //trace(As.Main.aantal); //As.Main.aantal = 1; //trace(As.Main.aantal); //As.Main.refreshPicture(); } } }