Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import flash.events.MouseEvent;
- blue_plate_btn.addEventListener(MouseEvent.CLICK, onBluePlate, false, 0 ,true);
- yellow_plate_btn.addEventListener(MouseEvent.CLICK, onYellowPlate, false, 0, true);
- beige_plate_btn.addEventListener(MouseEvent.CLICK, onBeigePlate, false, 0 , true);
- salad_btn.addEventListener(MouseEvent.CLICK, onSalad, false, 0, true);
- banana_btn.addEventListener(MouseEvent.CLICK, onBanana, false, 0, true);
- steak_btn.addEventListener(MouseEvent.CLICK, onSteak, false, 0, true);
- function onBluePlate(evt:MouseEvent):void{
- beigePlate.alpha = 0;
- yellowPlate.alpha = 0;
- bluePlate.alpha = 97;
- };
- function onBeigePlate(evt:MouseEvent):void{
- bluePlate.alpha = 0;
- yellowPlate.alpha = 0;
- beigePlate.alpha = 97;
- };
- function onYellowPlate(evt:MouseEvent):void{
- bluePlate.alpha = 0;
- beigePlate.alpha = 0;
- yellowPlate.alpha = 97;
- };
- function onSalad(evt:MouseEvent):void{
- banana.alpha = 0;
- steak.alpha = 0;
- salad.alpha = 97;
- };
- function onBanana(evt:MouseEvent):void{
- salad.alpha = 0;
- steak.alpha = 0;
- banana.alpha = 97;
- };
- function onSteak(evt:MouseEvent):void{
- salad.alpha = 0;
- banana.alpha = 0;
- steak.alpha = 97;
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement