How do I make a main menu for a game?

Hi,
I need to make a main menu for this tower defense game that I am making.  I have 2 parts to the menu that I need to put together.  I have it as follows:
I have a start screen where the player presses the start button.  I now need it to take the user to the main menu itself.  I have both the start menu and main menu in the same document but on different layers.  I have a button labeled as start which I have set up to where when it is clicked, it changes colors but I also need it to hide/show the menu layer.  I just need the that start button to take users to the menu layer where I have 3 more buttons which are resume, new, and options.  I will need those buttons to go to their different layers also.  After users hit the resume or new buttons, I need the game itself to start which I will start making after I figure out the other issues. 
I am new to Flash and I really want to learn how to make tower defense games.  For now, I am using http://www.ehow.com/how_7788131_make-tower-defense-game-flash.html as a guide to make the game stuff but it doesn't say anything about a main menu.  I am using a trial version of Flash Pro CS6 and it is due to expire in 28 days.
Any and all help will be great! Thanks, xp3tp85

I used this and it worked:
import flash.events.MouseEvent;
start_button.addEventListener(MouseEvent.CLICK,startF);
function startF (e:MouseEvent):void{
gotoAndStop("main_menu");
On the next layer I used this and it worked too:
back_button.addEventListener(MouseEvent.CLICK, buttonClick);
function buttonClick(event:MouseEvent):void{
       gotoAndStop(1);
Apparently it wont let me use the same code twice on one timeline.  Is there any way around this?  I need a few more buttons on the main menu for the game.

Similar Messages

  • I am trying to make a main menu for my project but I don't know where IDVD is located?

    I am trying to make a main menu but I read some info. and said I have to do it through IDVD and I tried it but can not find IDVD anywhere so I wanted to know if I have to purchase it or something and I also wanted to know how to create a main menu?

    depends on how old your Mac is ...
    newer machines do not come along with a pre-installed  iDVD (.. and iWeb ..) anymore; you have to purchase a boxed version of iLife11.
    if somehow iDVD is installed on your Mac, you should find it in your Apps-folder
    (or use Spotlight, search for iDVD) ...-

  • How can I make a bootable disk for Mountain Lion?

    How can I make a bootable disk for Mountain Lion?

    Make Your Own Mountain/Lion Installer
    1. After downloading Mountain/Lion you must first save the Install Mac OS X Mountain/Lion application. After Mountain/Lion downloads DO NOT click on the Install button. Go to your Applications folder and make a copy of the Mountain/Lion installer. Move the copy into your Downloads folder. Now you can click on the Install button. You must do this because the installer deletes itself automatically when it finishes installing.
    2. Get a USB flash drive that is at least 8 GBs. Prep this flash drive as follows:
    Open Disk Utility in your Utilities folder.
    After DU loads select your flash drive (this is the entry with the mfgr.'s ID and size) from the left side list. Click on the Partition tab in the DU main window.
    Under the Volume Scheme heading set the number of partitions from the drop down menu to one. Set the format type to Mac OS Extended (Journaled.) Click on the Options button, set the partition scheme to GUID then click on the OK button. Click on the Partition button and wait until the process has completed.
    Select the volume you just created (this is the sub-entry under the drive entry) from the left side list. Click on the Erase tab in the DU main window.
    Set the format type to Mac OS Extended (Journaled.) Click on the Options button, check the button for Zero Data and click on OK to return to the Erase window.
    Click on the Erase button. The format process can take up to an hour depending upon the flash drive size.
    3. Locate the saved Mountain/Lion installer in your Downloads folder. CTRL- or RIGHT-click on the installer and select Show Package Contents from the contextual menu. Double-click on the Contents folder to open it. Double-click on the SharedSupport folder. In this folder you will see a disc image named InstallESD.dmg.
    4. Plug in your freshly prepared USB flash drive. You are going to clone the content of the InstallESD.dmg disc image to the flash drive as follows:
    Double-click on the InstallESD.dmg file to mount it on your Desktop.
    Open Disk Utility.
    Select the USB flash drive from the left side list.
    Click on the Restore tab in the DU main window.
    Select the USB flash drive volume from the left side list and drag it to the Destination entry field.
    Drag the mounted disc icon from the Desktop into the Source entry field.
    Double-check you got it right, then click on the Restore button.
    When the clone is completed you have a fully bootable installer that you can use without having to re-download Mountain/Lion.
    Note: The term Mountain/Lion used above means Lion or Mountain Lion.

  • How do I make a boot disk for my new iMac?

    How do I make a boot disk for my new iMac?

    Make Your Own Mavericks, Mountain/Lion Installer
    After downloading the installer you must first save the Install Mac OS X application. After the installer downloads DO NOT click on the Install button. Go to your Applications folder and make a copy of the installer. Move the copy into your Downloads folder. Now you can click on the Install button. You must do this because the installer deletes itself automatically when it finishes installing.
       2. Get a USB flash drive that is at least 8 GBs. Prep this flash drive as follows:
    Open Disk Utility in your Utilities folder.
    After DU loads select your flash drive (this is the entry with the mfgr.'s ID and size) from the leftside list. Under the Volume Scheme heading set the number of partitions from the drop down menu to one. Set the format type to Mac OS Extended (Journaled.) Click on the Options button, set the partition scheme to GUID then click on the OK button. Click on the Partition button and wait until the process has completed.
    Select the volume you just created (this is the sub-entry under the drive entry) from the left side list.
    Click on the Erase tab in the DU main window.
    Set the format type to Mac OS Extended (Journaled.) Click on the Options button, check the button for Zero Data and click on OK to return to the Erase window.
    Click on the Erase button. The format process can take up to an hour depending upon the flash drive size.
    Use DiskMaker X to put your installer clone onto the USB flash drive.
    Make your own Mavericks flash drive installer using the Mavericks tool:
    You can also create a Mavericks flash drive installer via the Terminal. Mavericks has its own built-in installer maker you use via the Terminal:
    You will need a freshly partitioned and formatted USB flash drive with at least 8GBs. Leave the name of the flash drive at the system default, "Untitled." Do not change this name. Open the Terminal in the Utilities folder. Copy this entire command line after the prompt in the Terminal's window:
         sudo /Applications/Install\ OS\ X\ Mavericks.app/Contents/Resources/createinstallmedia --volume
         /Volumes/Untitled --applicationpath /Applications/Install\ OS\ X\ Mavericks.app --nointeraction
    Press RETURN. Enter your admin password when prompted. It will not be echoed to the screen so be careful to enter it correctly. Press RETURN, again. Wait for the process to complete which will take quite some time.

  • How can I make a "property node" for a VI?

    Hello!
    If I add a boolean button on the FP then I am able to make a property node for that button in the Block Diagram. But how can I make a property node for a VI? I have several VI:s an that together is one program. What I need to do is to verify what kind of VI some of my VI:s is. I need to verify if it is .exe or .vi-file, and if it is .exe then I want to disable run, abort, run continuously bottons otherwise not. I have hard that this is possible to do programmaticaly but I can´t figure out how. I am aware that I could do that manually in the File->vi properties->customize->windows appearance but theese choises makes it last forever.
    I want to be able to stop and run and everything if it is a .vi file, but if it is .exe-file then all those buttons should be disabled.
    Anyone have an example on this?
    In an other message at this Forum I read "You can use the `Front Panel Window. Allow Runtime PopUp`" property to disable run-time shortcuts menues programmaticaly, but still I dont know how to create this property node.
    /Amir

    You really shouldn't open a new thread. If you don't understand something, ask and we will explain it.
    Like I said in the other thread, you can check if you are running in LV or an EXE by using the Application>>Kind property. To get it, place a property node (from the Application Control palette) on the diagram, click it and find the property.
    To set the properties for the VI, place another property node, right click it and select Select Class>>VI Server>>VI. You should have the properties you want under Front Panel Window.
    To learn more about LabVIEW, I suggest you try searching this site and google for LabVIEW tutorials. Here and here are a couple you can start with. You can also contact your local NI office and join one of their courses.
    In addition, I suggest you read the LabVIEW style guide and the LabVIEW user manual (Help>>Search the LabVIEW Bookshelf). I believe chapter 17 of the user manual explains about programmatic control of VIs.
    Try to take over the world!

  • HT201364 how do i make more space available for mavericks update?

    how do i make more space avaialble for mavericks update

    One place to check is the hidden Library folder under your user account. From the Finder Menu click Go > Go To Folder > Enter: ~/Library/
    IF YOU ARE UNSURE DO NOT DELETE SOMETHING
    You may be able to find refrences to old applications that you have uninstalled. There is another folder inside that one called Application Support (~/Library/Application Support/). Same idea goes here, old software folders can be safely blown away. Don't forget to empty the Trash!
    Bonus Points?
    You can use the same technique on the /Library folder aswell!
    Happy Deleting!

  • My main menu does not appear when I turn on my apple tv first generation.  How do I restore my main menu?

    My main menu does not appear when I turn on my apple TV first generation, how do I restore my main menu screen?

    When I turn on, it asks for language choice, then it asks for 1080i, then it asks for network choices.  I choose my network, then it asks for my network password.  I enter the password, then it say it does not connect to network, and if I hit menu on remote, it goes back to network selection.  I can not get to main menu to see my setting for the network, because there is no menu. 

  • How do I make the Bookmarks menu drop-down larger?

    I'm using a 1920 x 1200 monitor and the icons in the menu are too small. How do I make the Bookmarks menu drop-down larger?
    Not the toolbar. I never use the toolbar. I've removed all toolbars. Don't give me help for the toolbar. I'm asking about the menu, not the toolbar. I want to enlarge the text and icons in the bookmarks menu; How do I do this?
    Using Firefox 9.0.1 on Windows 7 x64 Service Pack 1.
    PC is a desktop machine, not a laptop.
    CPU is Intel Core i7 940 @ 2.93 GHz, with 6 GB RAM.
    Graphics adapter is a pair of Nvidia GTX 285 cards running as a 2-card SLI array.
    On a 11 Mbps (downstream) DSL modem/router.

    Use this extension to adjust the font size for the user interface.
    *Theme Font & Size Changer: https://addons.mozilla.org/firefox/addon/theme-font-size-changer/

  • How can I make a recovery disk for an imac 24 "  early 2008 to April 2009 or connect via thunderbolt to another imac

    How can I make a recovery disk for an imac 24 "  early 2008 to April 2009 or connect via thunderbolt to another imacimac 24 "   or connect via thunderbolt to another imac
    ann

    You will only know about the hard drive when you try to access it in TDM from your other computer. If you cannot boot into TDM mode or if the drive does not appear on the new computer's Desktop then it is likely bad.
    What you are thinking about as a recovery disk is the Recovery HD normally created when you install Lion or later on the computer. You boot from it as follows:
    Boot Using Command+R keys:
      1. Restart the computer.
      2. Immediately after the chime press and hold down the
          "COMMAND" and the "R" keys together.
      3. Release the keys when the Utilities Menu appears.

  • Best way to make a main menu?

    Hello guys I was wondering if you guys could help me.
    Im trying to make a main menu which is displayed to the user when they load my applet.
    Im using 3 JButtons on one applet.
    I have 3 separate applets I want to be accessible by clicking a button on the menu.
    So the user presses a button and they are displayed the required applet. I have each applet working separately but cannot get the menu I require to work.
    So does anyone have any idea how to make JButtons show another applet in place of the menu?
    It would be great if each applet could pass a value between each other too such as a score.
    Any help would be great
    Thanks
    pbd2

    I would call a JavaScript function from the Java applet to set the visibility to "hidden" or "visible" of the tag the corresponding applet, here's some pseudo code:
    <div id="applet1">
    <applet archive=blabla.jar ... width=... height..>
    </applet>
    </div>
    <script language=JavaScript>
    function doHide( appletID ) {
        document.getElementById( appletID ).style.visibility="hidden";//"visible" to get the opposite effect
    //should call this from Java
    doHide( "applet1" );
    </script>

  • Since ios 6 update hotmail fetches or push on its own. I have hotmail set to manual. Best I can tell its only hotmail and not yahoo. Is this a known problem? How do I make hotmail stop checking for mail when I have it set to manual?

    Since ios 6 update hotmail fetches or push on its own. I have hotmail set to manual. Best I can tell its only hotmail and not yahoo. Is this a known problem? How do I make hotmail stop checking for mail when I have it set to manual?

    Hello,
    '''Try Firefox Safe Mode''' to see if the problem goes away. Safe Mode is a troubleshooting mode, which disables most add-ons.
    ''(If you're not using it, switch to the Default theme.)''
    * On Windows you can open Firefox 4.0+ in Safe Mode by holding the '''Shift''' key when you open the Firefox desktop or Start menu shortcut.
    * On Mac you can open Firefox 4.0+ in Safe Mode by holding the '''option''' key while starting Firefox.
    * On Linux you can open Firefox 4.0+ in Safe Mode by quitting Firefox and then going to your Terminal and running: firefox -safe-mode (you may need to specify the Firefox installation path e.g. /usr/lib/firefox)
    * Or open the Help menu and click on the '''Restart with Add-ons Disabled...''' menu item while Firefox is running.
    [[Image:FirefoxSafeMode|width=520]]
    ''Once you get the pop-up, just select "'Start in Safe Mode"''
    [[Image:Safe Mode Fx 15 - Win]]
    '''''If the issue is not present in Firefox Safe Mode''''', your problem is probably caused by an extension, and you need to figure out which one. Please follow the [[Troubleshooting extensions and themes]] article for that.
    ''To exit the Firefox Safe Mode, just close Firefox and wait a few seconds before opening Firefox for normal use again.''
    ''When you figure out what's causing your issues, please let us know. It might help other users who have the same problem.''
    Thank you.

  • How can I make my movies pro for mac work?

    How can I make my movies pro for mac work?
    I have downloaded it i click on the icon but I cant make it work

    Delete the app using this free utlity > Download AppCleaner for Mac
    Then re download the app using the same Apple ID it was originally purchased from. You won't be charged again.
    How to re download apps from the Mac App Store:
    Open the App Store. From the menu bar click Store > Sign In
    Click Purchases from the top of the App Store window.
    Select which apps you want to re download. Then right or control click where you see Installed  then click Install.
    If you still have problems, I located the app developer's website. Contact details for help here >   http://www.mymovies.dk/about.aspx

  • How can I make a intro page for my website, then after the intro has run make the page automatically change to my we site home screen

    how can I make a intro page for my website, then after the intro has run make the page automatically change to my website's home screen

    You can do this using a meta refresh but the problem is you have to add it to the html file for the page very time you publish changes.
    A better way is to create a splash page and upload it to the server outside of the folder produced by iWeb. Example HERE.
    The meta refresh is added to the head section of the html file...
    <meta http-equiv="refresh" content="32;url=http://www.domain.about.com/Page-Name.html">
    The delay time in seconds is marked in blue and the URL to the redirect page is in red.

  • How do I make multiple text bold, for example scene headings or character names?

    How do I make multiple text bold, for example scene headings or character names?

    You can do that by editing the template of the document.
    Open the document, go to Edit->Template. A dialog will launch which will have element types on the left and it's properties on the right.
    Select Scene Heading(or Character name) on the left. On the right, go to 'Text' tab and click on Bold checkbox.
    Press OK.
    Hope this helps.
    Cheers,
    Sunny

  • How do I make a recovery disk for my Mac running 10.5.8?

    How do I make a recovery disk for my Mac running 10.5.8?

    Hi, if tryly a PowerMac, (PPC instead of Intel), you may need a Firewire Drive to be bootable, most PPC Macs cannot boot OSX from a USB drive.
    So we know more about it...
    At the Apple Icon at top left>About this Mac, then click on More Info, then click on Hardware> and report this upto but not including the Serial#...
    Hardware Overview:
    Model Name: iMac
    Model Identifier: iMac7,1
    Processor Name: Intel Core 2 Duo
    Processor Speed: 2.4 GHz
    Number Of Processors: 1
    Total Number Of Cores: 2
    L2 Cache: 4 MB
    Memory: 6 GB
    Bus Speed: 800 MHz
    Boot ROM Version: IM71.007A.B03
    SMC Version (system): 1.21f4

Maybe you are looking for

  • Solution for ICMP timestamp response in VAPT report

    There was a vulnerability test run on our developmental server having Red Hat Enterprise Linux Server release 5.11 (Tikanga) as the OS. There is one point among others of concern here; it is to do with ICMP timestamp response. The solution suggested

  • How to fix formatting overlapping, lack of spacing error?

    Does anyone familiar with this? I get this when i tried to upload my file on iTunes Producer. It says: Formatting Error (overlapping, lack of                      spacing, etc.)

  • Export for old QT Players

    Is it possible to export a movie so that older version will be able to view it? I have the newest QT Pro and when we went to test the movie on our work computers, we had to update all of their players in order to view it. Thanks y'all!

  • Content in box

    How important is the content that comes with the final cut studio 2 box? I am only planning to use final cut pro, and DVD studio pro. Will content be lacking in those applications?

  • Editing shortcuts in iTunes

    Do I can edit shortcuts on iTunes?