Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import flash.media.Sound;
- stop();
- var soundClip:Sound;
- var soundChannel:SoundChannel = new SoundChannel();
- function init():void {
- soundClip = new Sound();
- soundClip.load(new URLRequest(".\\Wheel of Fortune.mp3"));
- soundClip.addEventListener(Event.COMPLETE,soundLoaded);
- }//end init()
- init();
- function soundLoaded(e:Event):void {
- soundChannel = soundClip.play();
- }//end soundLoaded
- //txtWheel.text = "";
- //this.aussie_btn.addEventListener(MouseEvent.MOUSE_OVER,aussieMouseOver);
- //this.aussie_btn.addEventListener(MouseEvent.MOUSE_OUT,aussieMouseOut);
- this.aussie_btn.addEventListener(MouseEvent.ROLL_OVER,aussieMouseOver);
- this.aussie_btn.addEventListener(MouseEvent.ROLL_OUT,aussieMouseOut);
- this.aussie_btn.addEventListener(MouseEvent.CLICK,aussieClick);
- //this.bigMoney_btn.addEventListener(MouseEvent.MOUSE_OVER,moneyMouseOver);
- //this.bigMoney_btn.addEventListener(MouseEvent.MOUSE_OUT,moneyMouseOut);
- this.bigMoney_btn.addEventListener(MouseEvent.ROLL_OVER,moneyMouseOver);
- this.bigMoney_btn.addEventListener(MouseEvent.ROLL_OUT,moneyMouseOut);
- this.bigMoney_btn.addEventListener(MouseEvent.CLICK,moneyClick);
- //this.finland_btn.addEventListener(MouseEvent.MOUSE_OVER,finlandMouseOver);
- //this.finland_btn.addEventListener(MouseEvent.MOUSE_OUT,finlandMouseOut);
- this.finland_btn.addEventListener(MouseEvent.ROLL_OVER,finlandMouseOver);
- this.finland_btn.addEventListener(MouseEvent.ROLL_OUT,finlandMouseOut);
- this.finland_btn.addEventListener(MouseEvent.CLICK,finlandClick);
- //this.gameboy_btn.addEventListener(MouseEvent.MOUSE_OVER,gameboyMouseOver);
- //this.gameboy_btn.addEventListener(MouseEvent.MOUSE_OUT,gameboyMouseOut);
- this.gameboy_btn.addEventListener(MouseEvent.ROLL_OVER,gameboyMouseOver);
- this.gameboy_btn.addEventListener(MouseEvent.ROLL_OUT,gameboyMouseOut);
- this.gameboy_btn.addEventListener(MouseEvent.CLICK,gameboyClick);
- //this.nes_btn.addEventListener(MouseEvent.MOUSE_OVER,nesMouseOver);
- //this.nes_btn.addEventListener(MouseEvent.MOUSE_OUT,nesMouseOut);
- this.nes_btn.addEventListener(MouseEvent.ROLL_OVER,nesMouseOver);
- this.nes_btn.addEventListener(MouseEvent.ROLL_OUT,nesMouseOut);
- this.nes_btn.addEventListener(MouseEvent.CLICK,nesClick);
- //this.phillipine_btn.addEventListener(MouseEvent.MOUSE_OVER,phillipneMouseOver);
- //this.phillipine_btn.addEventListener(MouseEvent.MOUSE_OUT,phillipneMouseOut);
- this.phillipine_btn.addEventListener(MouseEvent.ROLL_OVER,phillipneMouseOver);
- this.phillipine_btn.addEventListener(MouseEvent.ROLL_OUT,phillipneMouseOut);
- this.phillipine_btn.addEventListener(MouseEvent.CLICK,phillipneClick);
- //this.french_btn.addEventListener(MouseEvent.MOUSE_OVER,frenchMouseOver);
- //this.french_btn.addEventListener(MouseEvent.MOUSE_OUT,frenchMouseOut);
- this.french_btn.addEventListener(MouseEvent.ROLL_OVER,frenchMouseOver);
- this.french_btn.addEventListener(MouseEvent.ROLL_OUT,frenchMouseOut);
- this.french_btn.addEventListener(MouseEvent.CLICK,frenchClick);
- //this.turnTable_btn.addEventListener(MouseEvent.MOUSE_OVER,turntableMouseOver);
- //this.turnTable_btn.addEventListener(MouseEvent.MOUSE_OUT,turntableMouseOut);
- this.turnTable_btn.addEventListener(MouseEvent.ROLL_OVER,turntableMouseOver);
- this.turnTable_btn.addEventListener(MouseEvent.ROLL_OUT,turntableMouseOut);
- this.turnTable_btn.addEventListener(MouseEvent.CLICK,turntableClick);
- //this.uk_btn.addEventListener(MouseEvent.MOUSE_OVER,ukMouseOver);
- //this.uk_btn.addEventListener(MouseEvent.MOUSE_OUT,ukMouseOut);
- this.uk_btn.addEventListener(MouseEvent.ROLL_OVER,ukMouseOver);
- this.uk_btn.addEventListener(MouseEvent.ROLL_OUT,ukMouseOut);
- this.uk_btn.addEventListener(MouseEvent.CLICK,ukClick);
- function aussieMouseOver(e:MouseEvent):void {
- txt_Wheel.text = "Aussie Wheel";
- }//end aussieMouseOver
- function aussieMouseOut(e:MouseEvent):void {
- txt_Wheel.text = "";
- }//endaussieMouseOut
- function aussieClick(e:MouseEvent):void {
- soundChannel.stop();
- gotoAndStop("mnu_Aussie");
- }//endAussieClick
- function moneyMouseOver(e:MouseEvent):void {
- txt_Wheel.text = "Big Money Wheel";
- }//end moneyMouseOver
- function moneyMouseOut(e:MouseEvent):void {
- txt_Wheel.text = "";
- }//end moneyMouseOut
- function moneyClick(e:MouseEvent):void {
- soundChannel.stop();
- gotoAndStop("mnu_BigMoney");
- }//end moneyClick
- function finlandMouseOver(e:MouseEvent):void {
- txt_Wheel.text = "Finnish Wheel";
- }//endfinlandMouseOver
- function finlandMouseOut(e:MouseEvent):void {
- txt_Wheel.text = "";
- }//end finlandMouseOut
- function finlandClick(e:MouseEvent):void {
- soundChannel.stop();
- gotoAndStop("mnu_Finnish");
- }
- function gameboyMouseOver(e:MouseEvent):void {
- txt_Wheel.text = "Gameboy Wheel";
- }
- function gameboyMouseOut(e:MouseEvent):void {
- txt_Wheel.text = "";
- }
- function gameboyClick(e:MouseEvent):void {
- soundChannel.stop();
- gotoAndStop("mnu_Gameboy");
- }
- function nesMouseOver(e:MouseEvent):void {
- txt_Wheel.text = "NES Wheel";
- }
- function nesMouseOut(e:MouseEvent):void {
- txt_Wheel.text = "";
- }
- function nesClick (e:MouseEvent):void {
- soundChannel.stop();
- gotoAndStop("mnu_NES");
- }
- function phillipneMouseOver(e:MouseEvent):void {
- txt_Wheel.text = "Phillipno Wheel";
- }
- function phillipneMouseOut(e:MouseEvent):void {
- txt_Wheel.text = "";
- }
- function phillipneClick(e:MouseEvent):void {
- soundChannel.stop();
- gotoAndStop("mnu_Phillipno");
- }
- function frenchMouseOver(e:MouseEvent):void {
- txt_Wheel.text = "French Wheel";
- }
- function frenchMouseOut(e:MouseEvent):void {
- txt_Wheel.text = "";
- }
- function frenchClick(e:MouseEvent):void {
- soundChannel.stop();
- gotoAndStop("mnu_French");
- }
- function turntableMouseOver(e:MouseEvent):void {
- txt_Wheel.text = "US Wheel";
- }
- function turntableMouseOut(e:MouseEvent):void {
- txt_Wheel.text = "";
- }
- function turntableClick(e:MouseEvent):void {
- soundChannel.stop();
- gotoAndStop("mnu_US");
- }
- function ukMouseOver(e:MouseEvent):void {
- txt_Wheel.text = "UK Wheel";
- }
- function ukMouseOut(e:MouseEvent):void {
- txt_Wheel.text = "";
- }
- function ukClick(e:MouseEvent):void {
- soundChannel.stop();
- gotoAndStop("mnu_UK");
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement