Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Menu Code
- stop();
- var menu:Boolean = true;
- var options:Boolean = false;
- music._visible = false;
- back._visible = false;
- sound._visible = false;
- soundSettings._visible = false;
- mBar._visible = false
- musicBar._visible = false
- var soundOptions:Boolean = false;
- var soundPlaying:Boolean = false;
- var minNum:Number = 0;
- var maxNum:Number = 3;
- buttons.stop();
- start.onRelease = function()
- {
- gotoAndPlay(5);
- };
- sound.onRelease = function()
- {
- menuSound.start(0,1)
- if (soundOptions == true)
- {
- soundOptions = false;
- config.gotoAndPlay(33);
- }
- else if (soundOptions == false)
- {
- soundOptions = true;
- config.gotoAndPlay(2);
- }
- };
- back.onRelease = function()
- {
- buttons.gotoAndPlay(2);
- options = false;
- menu = true;
- back._visible = false;
- sound._visible = false;
- menuSound.start(0,1)
- if (soundOptions == true)
- {
- config.gotoAndPlay(33);
- soundOptions = false;
- }
- };
- opt.onRelease = function()
- {
- buttons.gotoAndPlay(2);
- menu = false;
- options = true;
- opt._visible = false;
- start._visible = false;
- menuSound.start(0,1)
- };
- onEnterFrame = function ()
- {
- menuMusic()
- if (_root._currentframe == 1)
- {
- if (soundPlaying == false)
- {
- mySound.start(0,99);
- soundPlaying = true;
- }
- }
- if (buttons._currentframe == 33 && options == true)
- {
- back._visible = true;
- sound._visible = true;
- }
- if (buttons._currentframe == 33 && options == false)
- {
- opt._visible = true;
- start._visible = true;
- }
- if (config._currentframe >= 32 && soundOptions == false){
- soundSettings._visible = false;
- mBar._visible = false
- musicBar._visible = false
- }
- if (config._currentframe == 32 && soundOptions == true){
- soundSettings._visible = true;
- mBar._visible = true
- musicBar._visible = true
- }
- sound.onRelease;
- };
Advertisement
Add Comment
Please, Sign In to add comment