Select the menu level

Hey,.

I'm working on my last game that made me learn a lot about adobe flash.

But I have a big problem!

The level select menu...

I want to do "this" code:

1. first you select level 1 because this is the only level that is not locked

2. you made it to level 1 and got 1 x piece that opens the level 2!

I want my code to be like that, and I want to not be able to give the player a chance to level 1 more time to get more coins.

1 room, each level.

This code... I really want to be lazy and I would be delighted if someone could give me the code because I understand the code you give me, but he can not know me much tho.

In any case if you people want to teach me this instead of just give me the code, I like some links etc about where I could learn it because I had a few problems... What do I need learn to do through, where I can read about it? etc etc.

Hope for some nice answers and it's a major prodject for me and I'm really stuck atm and after that its pretty easy to do rest is quite well done.

This should be:

put the following two lines at the end of each level.

_root. Counter ++;

enableButtonsF();

Place it under function on frame 1 of your fla.  do not change anything except to assign a value to levelNumber (the total number of levels)

function enableButtonsF (): Void {}

for (var i: Number = 1; i<>

_root ["level" + i] true = false;

_root ["level" + i] ._alpha = 50;

}

_root ["Level" + _root. Counter]. Enabled = True;

_root ["Level" + _root. Counter] ._alpha = 100;

}

Tags: Adobe Animate

Similar Questions

  • Impossible to navigate to and select the menu buttons during playback of DVD on TV

    I use DVD Studio Pro 4.2.1 on iMac OS 10.6.8 (using old BONES of FCP 6.0.6).

    I have two DVD players for my TV and a Sony DVP-NS57P-GE GE1105P.

    For the video I created, I have two buttons on the main menu 1, 'Play' and 'Chapters' which goes to menu 2 with my links 7 chapters. This perfect mode DVDSP simulate all the works by clicking on these buttons, but I can not click on these buttons of menu 1 with one of my remotes for DVD player when viewing on TV. Movies usually have a menu with buttons like play, scenes, etc. that I can navigate to with my remote.

    Remote controls work fine, I can use its buttons to move to the previous or next chapter while the video plays and the Sony has a strange menu page of access to the chapters but it would be awkward and should not be necessary. I just want someone to be able to navigate on my menu page 1 and select the link to chapters. Not really concerned about "play" button since someone can click play on the remote control.

    So, I apparently need to change a few settings DVDSP. What I'm missing here? Google it and I tried manual DVDSP, but no luck.

    Thank you very much.

    Jim

    No function edit posts, so I have to put this in a response, I guess. This layout of the forum is so bad, was so much better several years ago. It's looking like my post does not get a response for a reason, but in the cases where it does, I need to update.

    It seems that I am able to navigate to these buttons, I just couldn't see that because the 'Selected' colors, I put to them do not work. I have all the colors of the selection state set for Normal, selected and active. When I use my DVD in my sell order DVD or mode DVDSP simulate with button style control remotely to this topic, when I browse to the top, bottom, left or right, nothing to change the color of links, so there is no way of knowing when I am on a link (I have 9 on a single page) and you want to select and then press ENTER.

    I've hunted throughout the manual, google, YouTube and cannot find the answer to this problem.

  • where is the menu level of hp officejet 4622 ink

    I don't know what color cartridge has run out

    I don't know what color cartridge has run out

    RTFM

    http://h10032.www1.HP.com/CTG/manual/c03251656.PDF

  • the menu selection has failed

    Hi all...

    I had a problem when I select the menu (data acquisition), the program as being stuck.  What my error? Can someone help me?

    Sasha all

    Now that you've posted your Subvi, go back and read message #2 and the third line of Dennis of the Mani #3 message.

    If you want this Subvi to behave like a dialog box, you need to go to the appearance of the window of the Subvi VI properties and set it to show the cover when it is called.

    Also, put a statement of expectation in this while loop so it does not at the full speed of the CPU waits for you to enter data.

    And case in the case of handmade VI, it is best to uncheck the box that says sign before locking up to end of the case of the event.

  • menu of hyperlink is displayed when text is selected, not when the Menu item is selected. And of course does not display the available links. Where I'm wrong?

    Try to make hyperlinks in a menu item. If I select the menu item, the menu of hyperlinks is not displayed in the menu bar. If I click on new and then the tex in the link is selected, the hyperlink menu appears but the drop down menu does not offer the available links. Where I'm wrong?

    I think you use a menu by default on the page?

    It's design of menu by default, because they are already linked with the respective pages that you can't change.

    You can try to create the menu manual.

    Thank you

    Sanjit

  • Question on the selection of the Menu auditor of

    Hello

    I got an exception
    Exception in thread "AWT-EventQueue-0"
    during the race the under program, please explain why this exception is coming.

    Select the menu account and then deselect that an exception happens how to solve this problem and to explain what is the reason for the exception.
    import java.awt.*;
    import javax.swing.*;
    import javax.swing.event.*;
    public class allframes {
         
         
         JFrame frame=new JFrame("Hello World");
         JDesktopPane pane;
    public static void main(String[] args) {
         new allframes();
    }
    public allframes(){
         
         pane=new JDesktopPane();
         try{
              String str=JOptionPane.showInputDialog("Enter the Number of frames");
              int j=Integer.parseInt(str);
              for (int i = 1; i < j; i++) {
                   JInternalFrame iframe=new JInternalFrame("Frame"+i,true,true,true,true);
                   iframe.setBounds(i*20,i*20,150,100);
                   pane.add(iframe);
                   iframe.setVisible(true);
                   iframe.setToolTipText("Frame"+i);
              }
         }
         catch(Exception e){
              JOptionPane.showMessageDialog(null,"Enter a valid no");
              System.exit(0);
         }
         JMenuBar bar=new JMenuBar();
         JMenu menu=new JMenu("Count");
         JMenuItem item=new JMenuItem("Hello");
         JMenuItem item2=new JMenuItem("Raja");
         menu.addMenuListener(new hi());
         menu.add(item);
         menu.add(item2);
         bar.add(menu);
         frame.add(pane);
         frame.setJMenuBar(bar);
         frame.setSize(600,600);
         frame.setVisible(true);
         frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    }
    class hi implements MenuListener{
         public void menuSelected(MenuEvent e){
              int k=pane.getAllFrames().length;
              JOptionPane.showMessageDialog(null,"the no of frames are"+k);
              
              
              
    //          int n = JOptionPane.showConfirmDialog(null,"sel  message");
    //          System.out.println("sel " + n);
         }
         public void menuDeselected(MenuEvent e){
              JOptionPane.showMessageDialog(pane,"Menu is deselected");
              System.out.println("desel");
    //          int n = JOptionPane.showConfirmDialog(null,"de sel  message");
    //          System.out.println("sel " + n);
         }
         public void menuCanceled(MenuEvent e){
               JOptionPane.showMessageDialog(null,"Menu is canceled");
    //          System.out.println("sel " + n);
         }
    }
    }
    Edited by: RajivGuna may 18, 2011 12:04

    RajivGuna wrote:
    Hello

    I got an exception

    And intended to tell us which exception has occurred, or is it a trade secret?

    How to ask questions in an intelligent way

    DB

    Edit:
    http://www.Oracle.com/technetwork/Java/codeconvtoc-136057.html

    Published by: Darryl Burke

  • Where is the Menu bookmarks?

    In Safari 10 I can only add bookmarks to the 'Favourites' section or to bookmark files, I created myself. I can't add to the bookmarks Menu more because apparently disappeared? Is this a bug? Now I can not add my favorites for the 'root' of the bookmark list more. My bookmarks section contains a list of folders of bookmarks and a few bookmarks in the upper slot that I did not put in such a folder. I used to select the Menu bookmark to add those and decided later if I want to move to a folder of bookmarks. But this Menu bookmarks option has now disappeared. It is not anywhere between my either custom files. So where is he past?

    Open the Bookmarks Sidebar, then click on the URL, and then drag it to the bookmarks.

  • There was a banner at the top of firefox windows logo key and the menu and he went. Can I get it back?

    I've seen Firefox refer to a menu, but I don't have it. I expect it to be on a "banner".

    Customize controls, buttons, and Firefox toolbars

    Select the Menu bar to make the menu bar appear all the time.
    Select the title bar to take the title bar displays all the time.

  • The menu AND the bookmarks have disappeared

    The menu and all the Favorites have disappeared from my screen. 'Show the bookmarks toolbar' is checked, and bookmarks are listed, but not on my screen. And no menu item (file, publishing, display, etc.). Fixing these articles are overwhelming.

    You see your tab bar showing the tabs of the pages you have open?

    If Yes: you can turn on the menu bar by double-clicking an empty area of the tab bar, or right click on the new tab button ('+') and select the menu bar.

    If not: could check you if Firefox is in full screen mode? The F11 key toggles between the normal modes and full screen.

    Any progress?

    On missing bookmarks. Those on the menu and on the toolbar are two separate lists, so it is normal that you don't seem to menu bookmarks in the bookmarks toolbar. However, normally there is a button on the main toolbar with a button that comes down to your bookmarks. It looks like a Clipboard and is right next to a star. You can find this one?

  • The bookmarksdrop in the menu drop-down is too big, as it covers the greater part of my screen - how can I make it smaller.

    Whenever I select the menu drop down Favorites, it is so big that it covers the major part of my screen. Then, when I go to a folder in the drop-down menu, if I stop to any other folder, it opens and is so great that the menu drop-down or completely covered. This is VERY irritating and I never had this problem before moving on to Firefox 5.0. How do I don't cure it?
    I use a MacBook with a 13 "screen

    It is probably because you have one or more bookmarks with a long title.

    The width of a column in the list of bookmarks is in the current versions of Firefox automatically adjusted the bookmark with the longest name.

    You can check the names of the bookmarks and the longer more short.

  • Visualizer of characters not listed is not in the Menu entry

    Hello-

    I have installed 10.11.1 on a MacPro OX. Until today, the character Viewer (now called emoji and extraordinary) appeared as I selected in the keyboard system preferences in the menu bar. Now, I can not select Viewer of characters in the menu because bar is no longer listed - there is either a white spot in the menu bar where the character Viewer icon used to be, or just the icon of US keyboard - by selecting the menu bar icon or shows just the United States keyboard choice, or 'show (null)' where ' emoji & symbol "and"keyboard"used to be.

    I always open the viewer characters within the applications via the Edit menu. And I tried several times to select the option to show the visualizer of characters from keyboard system preferences - whenever I select it again, it deselects itself when I leave preferences.

    I tried to remove some of the files preferences I found related to the keyboard/character - run repair utilities/permissions of the drive without any problems.

    Any thoughts? Thank you-

    Try to remove these .plists still more those who HIToolbox in his name.

    Then perform a safe boot

    OS X El Capitan: start in safe mode

  • How close or minimize the menu box using Display.screenshot ()?

    Hello

    Did someone help out me in finding what way I can minimize or close the menu box while I take the screenshot of any screen?

    The problem is when I select the menu item Printscreen, the Display.Screenshot () method runs, and it takes the screenshot including the menu box that I opened for the selection of the menu-item (Printscreen).

    So, how to remove that box of Menu before you take the screenshot?

    Please answer

    Thank you.

    You might find some useful options in this thread;

    http://supportforums.BlackBerry.com/T5/Java-development/context-menu-coming-in-screenshot-by-using-D...

  • Enkitec Toolbar... Stop the menu items of the current page of derivative

    XE Summit 4.2 11.2

    Hi all.  Question today: I am using the Enkitec toolbar in my application. and everything works fine... except...

    Ive changed the application so the I have a series of reports that point to the same page to run a number of interactive reports with different settings...   They are grouped into a number of items in the submenu.

    However, the Enkitec menu is highlighting the current page. Like all items in menu 4 are all active page (or URL active), he sets them all to the same color blue., so instead of a list of menu with all the white background, I get a menu list when they are all blue...

    So Im trying to either disable the 'select the menu for the active page item' (easier) or somehow allow him to recognize that its actually a variant of the same page... (the settings are different...)

    Ive tried overiding the CSS with what I think is correct according to the how to on the web site Enkitec, but without success...

    If anyone could offer advice, Id be grateful...

    Kind regards

    Richard

    Hi Richard,

    Are you sure that's not because of the condition of the sub components?

    I'm sure you check 'in progress' through the list.

    Thank you

    -Jorge

  • Help with the Menu item

    I created an action that...

    1. Select a Smart Object Layer, called YOUR IMAGE
    2. Selects the Menu item > layer > Smart Object > replace content

    Action 100% work, but when I convert the action of a script and run it, the IMAGE of YOUR gets selected the menu Item does not show.

    Can anyone help please.

    cTID = function(s) { return app.charIDToTypeID(s); };
    sTID = function(s) { return app.stringIDToTypeID(s); };
    
    //==================== Load Image ==============
    function LoadImage() {
      // Select
      function step1(enabled, withDialog) {
        if (enabled != undefined && !enabled)
          return;
        var dialogMode = (withDialog ? DialogModes.ALL : DialogModes.NO);
        var desc1 = new ActionDescriptor();
        var ref1 = new ActionReference();
        ref1.putName(cTID('Lyr '), "YOUR IMAGE");
        desc1.putReference(cTID('null'), ref1);
        desc1.putBoolean(cTID('MkVs'), false);
        var list1 = new ActionList();
        list1.putInteger(9);
        desc1.putList(cTID('LyrI'), list1);
        executeAction(cTID('slct'), desc1, dialogMode);
      };
    
    
      // Select
      function step2(enabled, withDialog) {
        if (enabled != undefined && !enabled)
          return;
        var dialogMode = (withDialog ? DialogModes.ALL : DialogModes.NO);
        var desc1 = new ActionDescriptor();
        var ref1 = new ActionReference();
        ref1.putEnumerated(cTID('Mn  '), cTID('MnIt'), sTID("placedLayerReplaceContents"));
        desc1.putReference(cTID('null'), ref1);
        executeAction(cTID('slct'), desc1, dialogMode);
      };
      step1();      // Select
      step2();      // Select
    };
    LoadImage.main = function () {
      LoadImage();
    };
    LoadImage.main();
    

    You have the withDialog variable, but I don't see how define you it. Is a UI checkbox if you don't understand? How do populate you this value?

  • Need help to change the properties of the menu widget bindings Muse

    I have a widget menu that links to the pages of Muse.  The customer wants the links to open new tabs.  Currently, the links open in the same window.  I'm trying to change this property.  Can you walk me through it please?  Here is a picture of the menu if that helps.

    Screen Shot 2016-01-13 at 5.22.03 AM.png

    You can do it with the help of the menu manual. A little extra work, but it will give you desired results.

    1. go in the options panel of the menu by clicking on the blue circle on the edge of the menu.

    2. Select the type of Menu as "manual." This will leave you with only a menu item.

    3. Select the Menu item and click + button to create several menu items for your menu.

    4. Once your menu is ready, then you must then link with the pages. To link them select each item in a menu and the link with the pages by using the drop-down list hyperlink.

    5. While linking, you must select the option 'Open link in a new window or tab in' in the hyperlink menu.

    Kind regards

    Vivek

Maybe you are looking for

  • Satellite P10 Pro won't stay on the diet

    My Satellite P10 Pro regularly battery power even if the power is still connected and the LED on the front of the pc shows that it is connected. I then let the battery run down and restart so that it recognizes e presence of th rest turn on again how

  • cannot print from any website on firefox, but can print from the internet explore

    When I'm on firefox and try to print something from nothing, like amazon, my aol or my server secure messaging or other, it does not print. But if I use Internet Explorer, I can print from anything. This just started happening

  • DV7-lights remain on after stopping

    I have a problem with laptop DV7 - 3164CL s.  Everything works perfectly EXCEPT when I stopped, the machine stops (power led on front left goes and top off) but the mute led, the volume, the multimedia control slider of the duct and the stay of the a

  • position of the radio to the spell button

    I have a Radio Button control that is configured to allow no. selection and has 10 boxes representing each position of a switch. I use a Radio Button control because the switch position at most only one can be active at a time. I want to convert the

  • Update Service Pack 2 is not installed, now my computer will not boot

    Hello. I recently tried to install the service pack 2 update on my computer. It did not installed. My computer is slow, so I tried restarting. It came with the screen that shows the updates are being installed. I kept the computer until it stops. Whe