With the help of a button to make another visible button

Hi all

I am trying to find something here, and I simply don't know the syntax. I've already posted to aid once, and it helped me to know exactly what I'm trying to do.

I'm trying to do something similar to a Board of peril for a Christmas party at work. I have a grid of buttons that correspond to the different questions. The function would be as follows:

  1. Click on the button "eng_1" (as in "English for 100 points).
  2. This makes the button "eng_1_q" (as in: question of 100 English) visible, if the matter can now be read.
  3. A click on the button "eng_1_q", and the button is then rendered invisible. The question cannot be seen, now we are back to the Board of Directors.
  4. The original 'eng_1' is now a different color (or left in his State "low") to show that the question has already been asked (not sure if this will be part of the function of "eng_1" or "eng_1_q")

My idea would be something like that.

eng_1.addEventListener (MouseEvent.MOUSE_DOWN, eng_1_start);

function eng_1_start(event:MouseEvent):void {}

[something that puts in "eng_1_q"]

[something that makes "eng_1" remains in his State "low"]

}

eng_1_q.addEventListener (MouseEvent.MOUSE_DOWN, eng_1_end);

function eng_1_end(event:MouseEvent):void {}

[something that makes invisible "eng_1_q"]

}

Still, I am just not sure of the syntax. Any help would be greatly appreciated.

Thank you

Colin

To make something visible/invisible you assign an instance name and use it to target and set its visible property.  You would replace your instance utton b = names where btnName is shown below...

btnName.visible = true;

btnName.visible = false;

For a button to stay in its low state you'll be best to create this button as a MovieClip symbol.  In this way, you can tell him to go to a particular frame which displays its State to the bottom and have it stay there.

btnName.gotoAndStop ("down"); "down" is a label that you assign to the low state framework

Tags: Adobe Animate

Similar Questions

  • With the help of a button to a form of visible and hidden void

    Good day to all;

    I'm trying to figure out how to use a button instead of a check box to make a visible sub-shape and when you click on it again the subshape is hidden.

    I tried to use an 'if' statement, but I don't seem to be able to get the logic of the right.

    Any help would be appreciated.

    The Chomp

    Got, it works...

    That's what I did. If there is a better way to do this, please let me know.

    If (approval_note_subform.presence == 'hidden') {}

    approval_note_subform. Presence = "visible";

    }

    Else if (approval_note_subform.presence == 'visible') {}

    approval_note_subform. Presence = "hidden";

    }

  • With the help of a button to change the color of a chart while remaining in the same frame.

    Is this possible?

    I'm trying to simulate the contrast of the LCD using two buttons.

    The LCD screen is a graph on a keyframe that runs along the timeline.

    Not sure how to start with action script for this... I would use %valeurs hexa% if possible, but had no luck so far with my AS2.

    The hard part is that I have a text box on top of the LCD screen on several different keyframes and the color / brightness of this will have to change accordingly with the LCD.

    Thank you!

    Pat

    You can use:

    MC. = [0xabcdef, 0xaabbcc, etc...];

    MC.c = new Color (mc);

    MC.index = 0;

    {btn1.onRelease = Function ()}

    mc.c.setRGB (MK. A [MC.index]);

    MC.index = (mc.index + 1) % mc. . Length;

    }

  • With the help of a button on * click here to initialize the computation

    What I'm trying to do is take my button named CALC and when I click CALC I want it Add Field1, Field2, and Field3 and output the sum of FieldTotal. I know that I should have this done with click to the button, but I do not know how to write javascript for this code. Any help is appreciated!

    I thought about it.

    Everything in CALC under the option CLICK in FORMCALC:

    this.resolveNode("FieldTotal").rawValue = sum (Field1, Field2, Field3);

    Worked like a charm.

  • With the help of a button to open an image in Captivate 4

    I would use a button to call an image - similar to a legend of reversal, but with a button.  Any ideas?

    Hi again

    See if the post I linked below will help you sort out them.

    Click here to see the post

    See you soon... Rick

  • With the help of a button in a ListView

    I have a button in one of my ListItemComponents.

    This button "consumes" the click event and emits clicked, but:

    of the ListItemComponent I can not access the external qml page (or classes registered c ++).

    When I click on another part of the component is called the ListView onTriggered, but not when I click on the button.

    Is there a way of

    -disable the "use-click" behavior of the button or

    -access the class qml or c ++ from the ListItemComponent

    ?

    Now I could have totally misunderstood the question, but that's what I thought you were asking... The same would go for if you used a custom component qml as the content of the listitemcomponent. You would access listview, like inside this category, or a gesturehandler defined inline in the definition of listitemcomponent.

    Container {
        id: page1 //or whatever component with a context property set for your c++ class
        ListView {
            id: mylistview
            ListItemComponents: [
                ListItemComponent {
                    id: mycomp
                    Container {
                        id: containerContents
                        Label { text: "my list item" + ListItemData.title; }
                        gestureHandlers: [
                            TapHandler {
                                onTapped: containerContents.ListItem.view.doSomethingWithItem(ListItemData);
                            }
                        ]
                    }
                }
            ]
            function doSomethingWithItem(data) {
                contextProp.callCPPMethod(data); //or do something else with it
            }
        }
    }
    
  • With the help of a button to open another file

    I created a file with a button above. Button action has been implemented to open a new pdf file. The problem is the opening of this new file is not open in a new window. I need to set it up so that the new file may be closed, but the original pdf is always available. How can I do this?

    If you use a link of type "Go to a page view" to open a different PDF file, you can change the link after you created and select "open in > new window:

    The trick is the edition after establishing the link.

  • With the help of several buttons on a slide

    I am a new user of Captivate 4 and I have questions with several buttons on a single slide.

    I want a button each to send to users in three different places depending on the button pressed. The locations are all in the current movie that I am developing.

    My problem is that using a button or click box is an action "pass" and "fail". When you use the two buttons in a slide I was creating a dummy "button and get the users click on this 'button' where there are only two choices. This procedure meets the success of failure on the button or click box.

    Of course, I can't do this job when I need more of two buttons.

    I must be missing something simple here any advice would be appreciated.

    See you soon

    thedarf

    Hello

    I'm a bit confused. You say you want to provide only two choices? (Or are you want to create a slide where it acts much like a table of contents when the user clicks the button or click box) 1 and moves might slide 5, button 2 moves to maybe slide 10 and 3 button move maybe slide 15.

    If this is the case, you are overthinking things. All you need to worry is the action of onSuccess.

    See you soon... Rick

    Useful and practical links

  • With the help of a button to load and unload the external SWF in AS3?

    How can I use a button to load and unload a sequence of external SWF files, as a Next button and previous?

    I don't know if it will work because apparently you are trying to load a swf AS1/2, but try

    change the line to be...

    _swfTempClip = MovieClip (event.target.content);

    If this does not work, then you will need to create _swfTempClip as a new MovieClip and add the event.target.content to this MovieClip using addChild().

  • Make the help links - Extended button

    Well, I had a great help earlier with the creation of a button linked to an external page using Flash Builder.

    I have no problem with that... my new number is with 5 buttons.

    Here is the code I'm looking forward to deal with in Flash Builder-

    <? XML version = "1.0" encoding = "utf-8"? >
    " < xmlns:s ="library://ns.adobe.com/flex/spark"xmlns:fx = s:Skin" http://ns.Adobe.com/MXML/2009 "xmlns:d =" " http://ns.Adobe.com/FXG/2008/DT ">
    < s:transitions >
    < s:Transition fromState = "low" toState = "rise" autoReverse = "true" >
    < s:Parallel >
    < s:Parallel target = "{bitmapimage1}" >
    < s:Move autoCenterTransform = "true" duration = "250" / >
    < / s:Parallel >
    < s:Parallel target = "{bitmapimage2}" >
    < s:Move autoCenterTransform = "true" duration = "250" / >
    < / s:Parallel >
    < / s:Parallel >
    < / s:Transition >
    < s:Transition fromState = "rise" toState = "over" autoReverse = "true" >
    < s:Parallel >
    < s:Parallel target = "{bitmapimage2}" >
    < s: Fade duration = "250" / >
    < / s:Parallel >
    < s:Parallel target = "{bitmapimage1}" >
    < s: Fade duration = "250" / >
    < / s:Parallel >
    < / s:Parallel >
    < / s:Transition >
    < s:Transition fromState = "rise" toState = "low" autoReverse = "true" >
    < s:Parallel >
    < s:Parallel target = "{bitmapimage1}" >
    < s:Move autoCenterTransform = "true" duration = "0" / >
    < / s:Parallel >
    < s:Parallel target = "{bitmapimage2}" >
    < s:Move autoCenterTransform = "true" duration = "0" / >
    < / s:Parallel >
    < / s:Parallel >
    < / s:Transition >
    < s:Transition fromState = "over" toState = "mounted" autoReverse = "true" >
    < s:Parallel >
    < s:Parallel target = "{bitmapimage1}" >
    < s: Fade duration = "250" / >

    < / s:Parallel >
    < s:Parallel target = "{bitmapimage2}" >
    < s: Fade duration = "250" / >
    < / s:Parallel >
    < / s:Parallel >
    < / s:Transition >
    < s:Transition fromState = "over" toState = "low" autoReverse = "true" >
    < s:Parallel >
    < s:Parallel target = "{bitmapimage1}" >
    < s: Fade duration = "250" / >
    < s:Move autoCenterTransform = "true" duration = "250" / >
    < / s:Parallel >
    < s:Parallel target = "{bitmapimage2}" >
    < s:Move autoCenterTransform = "true" duration = "0" / >
    < s: Fade duration = "0" / >
    < / s:Parallel >
    < / s:Parallel >
    < / s:Transition >
    < s:Transition fromState = "low" toState = "over" autoReverse = "true" >
    < s:Parallel >
    < s:Parallel target = "{bitmapimage1}" >
    < s:Move autoCenterTransform = "true" duration = "250" / >
    < s: Fade duration = "250" / >
    < / s:Parallel >
    < s:Parallel target = "{bitmapimage2}" >
    < s:Move autoCenterTransform = "true" duration = "250" / >
    < s: Fade duration = "250" / >
    < / s:Parallel >
    < / s:Parallel >
    < / s:Transition >
    < / s:transitions >
    < s: states >
    < name s: State = "mounted" / >
    < name s: State = "over" / >
    < name s: State = "low" / >
    < name s: State = "disabled" / >
    < / s: states >
    < fx:Metadata > [HostComponent ("spark.components.Button")] < / fx:Metadata >
    (< s:BitmapImage source="@Embed('/assets/WolfMotive/Welcome_Mouse_Over.png')" resizeMode = "Scale" d: userLabel = "Welcome Mouse Over" includeIn = "down, more ' id = 'bitmapimage1' y.down =" 2"visible.down ="false"/ >"
    (< s:BitmapImage source="@Embed('/assets/WolfMotive/Welcome_Mouse_Up.png')" resizeMode = "scale" d: userLabel = 'Welcome Mouse Up' visible.over = "false" id = "bitmapimage2" x = '4' y = '9' y.down ="11" / > "
    < / s:Skin >

    I need to know where this (if possible) will make the button link - that's what someone told me

    So, you could do the following:

    < s:Button click = "handleClick ()" / >

    Then, add a script block to your application, after < / fx:DesignLayer > and < / s:Application >, which looks like this:

    < fx:Script >

    <! [CDATA]

    protected function handleClick():void

    {

    navigateToURL ( new URLRequest ("" "http://www.adobe.com"), '_self');

    }

    ]]>

    < / fx:Script >


    So I lost as to where this should go in this section.

    Cause unless I am much more that a noob (that I might have), I'm not sure if she can go here at all.

    The original code has been implemented to go in this code-


    <? XML version = "1.0" encoding = "utf-8"? >
    < s:Application
    ' xmlns:fx = ' http://ns.Adobe.com/MXML/2009 "
    ' xmlns:d = ' http://ns.Adobe.com/FXG/2008/DT "
    xmlns:s = "library://ns.adobe.com/flex/spark".
    width = "720" height = "50" backgroundColor = "#000000" >
    (< s:BitmapImage source="@Embed('/assets/WolfMotive/Top_Menu_Bar.png')" resizeMode = "scale" d: userLabel = "From the top Menu bar" x = "-1" y = "-12" / > ".
    < fx:DesignLayer d: userLabel = 'Text Top mouse Ove' >
    < / fx:DesignLayer >
    < fx:DesignLayer d: userLabel = ' text Top Up Mouse ">
    < s:Button "583" = x y = "12" skinClass = "components. Button5"d: userLabel = 'Button Contacts' / >
    < s:Button '433' = x y = "12" skinClass = "components. Button4"d: userLabel ="Portfolio button"/ >
    < s:Button '303' = x y = "12" skinClass = "components. Button3"d: userLabel ="Projects button"/ >
    < s:Button = "154" x = "12" skinClass = "components. Button2"d: userLabel ="Button Bios"/ >
    < s:Button = "27" x = "12" skinClass = "components. Button1"d: userLabel ="Button welcome"/ >
    < / fx:DesignLayer >
    < / s:Application >

    Please help... once again.

    Perfect, ensuring of the OK.

    If you really want to continue working in the file of the application, with all the buttons.

    On each button, you want to add the 'click = handleClick ('http://www.adobe.com') '. (Make sure that the url is in single quotes)

    Where you replace: www.adobe.com with what URL you wish to navigate.

    For example, you can have the second button: "one click = handleClick ('http://forums.adobe.com')".

    Then, you change your function handleClick, in the block of script as follows:


      protected function handleClick (myURL:String): void
    {
    navigateToURL (new URLRequest (myURL), '_self');
    }

    ]]>

    Gives it a try and let me know how it works for you!

    Thank you

    Tara

  • with respect to an application to turn with the help of a global static variable

    Hello. I've read a few articles on JavaFX competition, and as a beginner, so I have to practice on this subject. Now, I'm trying to implement a turn-based application which can be played between 3 to 6 players. Furthermore, I use a scene from a .fxml file and I need to update it properly depends on certain calculations of each thread (in other word players). My main problem is, I don't want to use a while loop that checks the status of similar game;

    While (GameState! = State.GAME_OVER) {}

    currentPlayer = GameBoard.getNextPlayer ();

    perform certain actions, calculations, etc.

    }

    So, I want to use threads to work instead while loop. I guess only with the help of the Service used to iterate class and assign the next player will be adapted to instead of using the while loop and the tasks for the calculation of each player, or waiting for a few responses of human players on the UI account, however, I am faced with two problems.

    1. It has a global static variable (like the GameState which is an Enumarator) determines the State of the game, so it should be updated and must be verified by each round. Is it possible to do this?
    2. How can I get rid off this while loop?

    I would like for each answer. Thanks anyway.

    It shouldn't make too much difference. The basic idea is that you have a model class that represents your state of the game (the class of game in example jsmith). When a player makes a move, you update the game state. Because this will result in changes to the user interface, this update must be performed on the Thread of the FX Application.

    If the player makes the passage is a human player, the move would be done by a user action (mouse click or press button, etc.); This will be handled on the FX Application thread in any case.

    When the State of the game changes so it is in an "artificial" player's turn to move, have the object representing the artificial player calculate his next move and then update the game state. Since it is a response to the evolution of the game state (it is the artificial player's turn), it will also be on the Thread of the FX Application.

    The only (slight) complexity comes if the calculation of displacement for the artificial player takes a long time. You don't want to perform this calculation of long duration on the Thread of the FX Application. To handle this, the cleaner is to start a task that computes the desired pass and then updates the status of the game when travel is ready. So, something like this:

    GameState game = ... ;
    // UI is bound to the game state.
    ExecutorService executorService = ... ;
    // ...
    
    final Player currentPlayer = game.getCurrentPlayer() ;
    final Task calculateMoveTask = new Task() {
         @Override
         public Move call() {
              Move move = // compute next move...
              return move ;
         }
    };
    
    calculateMoveTask.setOnSucceeded(new EventHandler() {
         @Override
         public void handle(WorkerStateEvent event) {
              gameState.makeMove(currentPlayer, calculateMoveTask.getValue());
         }
    });
    
    executorService.submit(calculateMoveTask);
    

    If you make a thread more than that, you're probably do badly... Also, there should be no need anything it either, will be held in a "global" static variable (the idea above is the only structural change you the example posted by jsmith).

  • With the help of Club running on the Nike watch +.

    Hello

    This is something I have tried to work for a while and have not yet been able to find an answer. At the moment I use Nike + management club on my iPhone to follow the tracks that I find that gps is better than just using the application of the workout on my watch. However, something that really bothers me is that I start the race on my phone, but I can't then view my stats while running without having to press on and tap the watch and wait for the application to load, very irritating to race. I want to be able to lift my wrist and live stats are there to watch me, not listening and not get my phone out of my pocket. Surely this is something that can make the original watch?

    As a separate issue with the new app, Nike +, it does not recognize the songs I downloaded on my phone of Apple music in my playlists, then I have to play the separatelay of music through the application of music as opposed to go with Nike +? The ides on how to fix or is this a known problem with the latest Nike + app?

    Hello

    You may find it useful to consult the support resources of Nike and/or contact Nike for assistance with the help of their application:

    More information:

    https://iTunes.Apple.com/us/app/Nike+-run-Club/id387771637?Mt=8

  • ow change titles &amp; dates of lots of pictures (like in iPhoto?) With the help of Mac 'Pages' on, 2008 aluminium MacBook running OSX El Capitan 10.11.4

    How to change titles & dates of lots of pictures (like in iPhoto?) With the help of Mac 'Pages' on, 2008 aluminium MacBook running OSX El Capitan 10.11.4

    With the help of Mac 'Pages '.

    A typing mistake?

    If it is and you mean Photos Date of Mac are modified by selecting the photos using the Image menu == > adjust the time and date of order and changes made to the metadata such as keywords, location, etc. are made by selecting the photos and find the info and registering metadata in the Info window

    These are detailed in the help topics of pictures - a good place to look for help on the Photos

    View and add information about the photos

    You can view and add information about your photos. For example, you can see the date and time a photo was taken, the information about the camera that took the photo and badges that indicate the status of the photo. You can assign titles and captions to photos, add or change the location of the photos and change the date and time for them information. You can select multiple photos in an instant and add or change information about them all at once.

    Open pictures for me

    View and add information about the photos

    To view or change information for the photos, you select one or more photos, and then open the information window.

    • Open the Info window: Double-click a photo to view it, and then click the Info button in the toolbar or press on command I.
    • Add or change information: Change the following.
      • Title: Enter a name in the title field.
      • Description: In the Description field, type a caption.
      • Favorite: Click the Favorites button to mark the photo as a favorite. Click the button again to deselect.
      • Keywords: Enter the keywords in the keywords field. When you type, Photos suggest keywords that you have used before. Press enter when you have finished a keyword. To remove a keyword, select it and press DELETE.
      • Faces: Click on and type a name to identify a face. Click on several times, and then drag the identifier of the face different faces to identify many faces in a photo.
      • Location: Enter a location in the location field. When you type, Photos suggest places you can choose. To change a location, you can search a different location or change the location by dragging a PIN on the map. To remove location information, delete it or choose Image > location, then choose Remove location or back to the original location. You cannot assign a location if your computer is not connected to the Internet.

    Show titles, other metadata and badges

    Change the date and time of photo

    You can change the date and time associated with a picture. You can do this if you are traveling to a location in another time zone, and your camera affect your dates photos and periods that are correct for your House, but not the place you visited.

    1. Select the photos you want to edit.
    2. Choose Image > adjust Date and time.
    3. Enter the date and time you want in the modified field.
    4. Click a time zone on the map, if necessary.
    5. Click on adjust.
  • Help? With the help of file system Ext3 on key USB on Linux RT target

    We have been affected by problems with the SD cards and USB drives formatted in FAT32 on some devices, according to Linus RT of long-term monitoring (mainly the cRIO-9035). It seems that readers are vulnerable to fluctuations in current and unexpected reboots (which are inevitable on these sites). Write aborted operations make the damaged discs, thus sabotaging logging after reboot.

    We have identified two solutions; implement both gives the best redundancy:

    (1) installation of UPS (uninterrupted power supply for emergency supplies/batteries) - done

    (2) using the file system apparently more robust 'ext3', which is available on the target RT Linux (FAT32, ext2 and ext3) - don't have not so far:

    ->, I was not able to properly format a USB stick for ext3. I use the MiniTools Partition Manager and don't get any errors when create and format partitions. But they appear as 'read only' when it is inserted into the chassis of the RT. All attempts to access it, other than to observe the empty folder sdxx in ' / media "is returning errors.

    Someone had a bit of luck with the help of ext3 disks formatted as data drives on the objectives of the RT Linux? It is worthwhile to solve my problems or should I use FAT32 and the observed risk?

    I do not consider this but a temporary solution:

    I ran into issues when you use MiniTools Partition Wizard to partition and format my thumb on Win10 records. An unidentified change makes the inaccessible disks and freeze the browsing of file on the PC when I try to delete the partition. It was quite annoying!

    I decided to try another partition tool and went for the EaseUs Partition Master (free version for the moment). I formatted successfully one of the troublesome discs with it (to add some uncertainty to the solution, I used another brand sp * banking, new PC to do). The reader now mounted in read-write and allows the startup application create the I want to store files in folders.

    I'm very curious to know the difference between the tools of both partitions and their formatting...

  • With the help of mink Toolkit to detect the update

    I use 8.6.1 with the toolkit of Vision vision 8.6.4.  I'm grabbing images of a sensor CCD 1422 acquisition card and need to generate a test to detect target how the lens of the sensor is.  The user will manually focus the lens by using a test model, and then I need to display a level of how, in short, the image is (beyond the human eye detection).

    I'm very new to test video and images and have not used the tool forward Vision.  I would like to know if anyone knows how to do using the vision Toolkit to detect levels of concentration.

    Right now we use standard maps and graphs to detect the orientation of the box, but I don't know if they work well for automation with the vision Toolkit.  Should I make an array with objects that are close together and use object detection algorithm?  As I said, I'm very green in the field of vision.  Any help would be greatly appreciated.

    Thank you.

    Search the forum for the auto focus.  There has been several previous discussions about this that might help you.

    The easiest way to measure the development is to use detection of edges and then quantify the resulting image.  The average value follows the focus fairly well, and the standard deviation follows pretty well too.

    You can't really use this method to provide an absolute measure of the quality of the development, however.  You never know what will be the maximum value, but you can watch it go up or down when you set the focus.  It works very well for the auto focus.

    Bruce

Maybe you are looking for

  • How to change the default language of FF in a a way that people can actually understand (!)

    I do not know if someone there realized this yet, but the main reason on why someone would want to change the language on FF, it's because we want to understand.To make a tutorial simply writes things like 'click settings, then select the languages',

  • Laser color HP jet pro M277dw: Fax not recognized

    This printer has been connected to our network (wired to our router) and everything worked perfectly. Then the router connection has been moved to another port of the router and then focused on the fax machine failed.  In the device window and printe

  • Printer HP 2512 has stopped working

    Original title: 2512 hp printer I have a printer of hp 2512 during vacation Bible School, it ceased its print job, but not print kept looking at it has been replaced by hp to a 2510-2512, so what I'm doing and I can't find the disc that came with the

  • Cannot print from an Epson Stylus CX 7450 printer

    Original title - the printer printing I got a new Dell Inspiron for about 3 months and he hooked up to a printer Epson Stylus CX 7450.  Setting up worked fine until a week or two ago, when the printer just stopped.  Thinking he needed black ink, I ch

  • Is it possible to downgrade Windows 7 to Windows XP?

    original title: return of Windows 7 for XP How to get Windows 7 for XP put stupid 7 not knowing that the computer could not be considered