Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //{ REGION AS3:FRAME 1
- import flash.media.Sound;
- stop(); //stop the time line
- var soundClip:Sound;
- var soundChannel:SoundChannel = new SoundChannel();
- function init():void {
- soundClip = new Sound();
- soundClip.load(new URLRequest(".\\Wheel of Fortune.mp3")); //Load Sound
- soundClip.addEventListener(Event.COMPLETE,soundLoaded);
- }//end init()
- init();
- function soundLoaded(e:Event):void {
- soundChannel = soundClip.play(); //Play sound
- }//end soundLoaded
- txtWheel.text = "";
- 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.ROLL_OVER,moneyMouseOver);
- this.bigMoney_btn.addEventListener(MouseEvent.ROLL_OUT,moneyMouseOut);
- this.bigMoney_btn.addEventListener(MouseEvent.CLICK,moneyClick);
- 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.ROLL_OVER,gameboyMouseOver);
- this.gameboy_btn.addEventListener(MouseEvent.ROLL_OUT,gameboyMouseOut);
- this.gameboy_btn.addEventListener(MouseEvent.CLICK,gameboyClick);
- 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.ROLL_OVER,phillipneMouseOver);
- this.phillipine_btn.addEventListener(MouseEvent.ROLL_OUT,phillipneMouseOut);
- this.phillipine_btn.addEventListener(MouseEvent.CLICK,phillipneClick);
- 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.ROLL_OVER,turntableMouseOver);
- this.turnTable_btn.addEventListener(MouseEvent.ROLL_OUT,turntableMouseOut);
- this.turnTable_btn.addEventListener(MouseEvent.CLICK,turntableClick);
- 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");
- }
- //} ENDREGION AS3:FRAME 1
- //{ REGION AS3:FRAME 2
- //Aussie Wheel of Fortune Player Select
- @@ this.btn_Aussie1Player.addEventListener(MouseEvent.CLICK,aussie1Player);
- @@ this.btn_Aussie2Player.addEventListener(MouseEvent.CLICK,aussie2Player);
- @@ this.btn_Aussie3Player.addEventListener(MouseEvent.CLICK,aussie3Player);
- function aussie1Player(e:MouseEvent):void {
- gotoAndStop("Aussie1Player");
- }
- function aussie2Player(e:MouseEvent):void {
- gotoAndStop("Aussie2Player");
- }
- function aussie3Player(e:MouseEvent):void {
- gotoAndStop("Aussie3Player");
- }
- //} ENDREGION AS3:FRAME 2
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement