Make objects appear on stage only when the button is clicked?

In CS5, I want to have a frame with buttons that when clicked, reveal the different graphic symbols or clips video (I don't know what to use?). Symbols will be revealing text and graphic information and could fade when you click on, however will not move or do something else.

1. is it better to do these graphcis and text in video clips or graphics?

2. how they hide on the scene up to what a user clicks on a button to reveal?

3. with the help of Code snippets, which option will do this job?

Thank you!!!

to turn on/off:

yourbutton.addEventListener (MouseEvent.CLICK, f);

yourmovieclip. Visible = false;

function f(e:MouseEvent):void {}

yourmovieclip.visible =! yourmovieclip.visible;

}

Tags: Adobe Animate

Similar Questions

  • How can I get audio to not start when the button is clicked?

    I am new to adding audio to slides, buttons, click boxes.  Import the recorded voice on the overall slide of files sounds easy enough.  However, there are several buttons that display a legend I want audio to not start when the button is clicked.  I added audio just for this button, but it starts when the slide begins.

    How can I get audio to not start when the button is clicked?

    Hello

    Audio playback when the assigned object with the audio appears. That's why hear you when the button appears.

    Try to assign audio instead to the object that is displayed when you click the button. Perhaps the legend.

    See you soon... Rick

    Useful and practical links

    Captivate wish form/Bug report form

    Certified Adobe Captivate training

    SorcerStone blog

    Captivate eBooks

  • How to add multiple lines when the button is clicked

    How to add multiple lines when the click on button now is just add a row .plz give me idea how... waiting for answer

    / public final class screen extends MyScreen
    {
    /**
    * Creates a new object of MyScreen
    */
    ObjectChoiceField obj1 obj2, obj3, obj4.
    Table of String() = {'101 ', ' 102'};
    String of shadow [] = {"Shade1", "Shade2"};
    Rolls of string [] = {'101 ', ' 102'};
    String cutting [] = {"100-150", "150-200"};
    Chain of selectedindex1, selectedindex2, selectedindex3, selectedindex4;
    LabelField lbl1 lbl2, lbl3, lbl4;
        
    GFM LinedGridFieldManager;
    HFM HorizontalFieldManager, hfm1, hfm2 hfm3;
    VerticalFieldManager vfmMain;
        
    public MyScreen()
    {
        
    Set the displayed title of the screen
    hfm1 = new HorizontalFieldManager (HorizontalFieldManager.NO_VERTICAL_SCROLL |) HorizontalFieldManager.NO_VERTICAL_SCROLLBAR);
    hfm2 = new HorizontalFieldManager (HorizontalFieldManager.NO_VERTICAL_SCROLL |) HorizontalFieldManager.NO_VERTICAL_SCROLLBAR);
    hfm3 = new HorizontalFieldManager (HorizontalFieldManager.NO_VERTICAL_SCROLL |) HorizontalFieldManager.NO_VERTICAL_SCROLLBAR);
    HFM = new HorizontalFieldManager (HorizontalFieldManager.FIELD_RIGHT);
    vfmMain = new VerticalFieldManager (Manager.NO_VERTICAL_SCROLL |) Manager.NO_HORIZONTAL_SCROLLBAR);
            
    obj1 = new ObjectChoiceField ("", graph, 0, FIELD_LEFT);
    obj2 = new ObjectChoiceField ("", blind, 0, FIELD_LEFT);
    Obj3 = new ObjectChoiceField ("", rolls, 0, FIELD_LEFT);
    Obj4 = new ObjectChoiceField ("", cuts, 0, FIELD_LEFT);
            
    LBL1 = new LabelField("");
    LBL2 = new LabelField("");
    lbl3 = new LabelField("");
    lbl4 = new LabelField("");
            
    ButtonField btnAdd = new ButtonField ("ADD", FIELD_RIGHT);
            
    GFM = new LinedGridFieldManager (4, LinedGridFieldManager.VERTICAL_SCROLL);
            
    hfm1.setMargin (20, 0, 10, 0);
    hfm1. Add (new LabelField ("Chart"));
    hfm1. Add (obj1);
    hfm1. Add (new LabelField ("Shade"));
    hfm1. Add (obj2);
            
    hfm2. Add (new LabelField ("Rolls"));
    hfm2. Add (Obj3);
    hfm2. Add (new LabelField ("Cuts"));
    hfm2. Add (Obj4);
    HFM. Add (btnAdd);
            
    GFM. Add (new LabelField ("Chart"));
    GFM. Add (new LabelField ("Shade"));
    GFM. Add (new LabelField ("Rolls"));
    GFM. Add (new LabelField ("Cuts"));
            
    vfmMain.add (hfm1);
    vfmMain.add (hfm2);
    vfmMain.add (hfm3);
    vfmMain.add (hfm);
    vfmMain.add (new SeparatorField());
    vfmMain.add (gfm);
    Add (vfmMain);
            
    btnAdd.setChangeListener (new FieldChangeListener()
    {
    ' Public Sub fieldChanged (field field, int context) {}
    TODO self-generating method stub
    selectedindex1 = chart [obj1.getSelectedIndex ()];
    selectedindex2 = shade [obj2.getSelectedIndex ()];
    selectedindex3 = rolls [obj3.getSelectedIndex ()];
    selectedindex4 = cuts [obj4.getSelectedIndex ()];
                    
    While (LBL1. GetText(). Equals("") | LBL2. GetText(). Equals("") | lbl3. GetText(). Equals("") | lbl4. GetText(). Equals(""))
    {
    LBL1. SetText (selectedindex1);
    LBL2. SetText (selectedindex2);
    lbl3. SetText (selectedindex3);
    lbl4. SetText (selectedindex4);
                    
    GFM. Add (LBL1);
    GFM. Add (LBL2);
    GFM. Add (lbl3);
    GFM. Add (lbl4);
                    
    }
    }
    });
    }
    }

    Hi Piya,

    I run your code, and according to your logic that it works correctly.

    It's adding that line only once because according to your logic that one line can be added to MDT, if you do not want to add line on each click on the button, follow these steps:

    selectedindex1 = chart [obj1.getSelectedIndex ()];
    selectedindex2 = shade [obj2.getSelectedIndex ()];
    selectedindex3 = rolls [obj3.getSelectedIndex ()];
    selectedindex4 = cuts [obj4.getSelectedIndex ()];

    Lbl1 LabelField = new LabelField("");
    Lbl2 LabelField = new LabelField("");
    LabelField lbl3 = new LabelField("");
    LabelField lbl4 = new LabelField("");
    If (LBL1. GetText(). Equals("") | LBL2. GetText(). Equals("") | lbl3. GetText(). Equals("") | lbl4. GetText(). Equals(""))
    {
    LBL1. SetText (selectedindex1);
    LBL2. SetText (selectedindex2);
    lbl3. SetText (selectedindex3);
    lbl4. SetText (selectedindex4);
                    
    GFM. Add (LBL1);
    GFM. Add (LBL2);
    GFM. Add (lbl3);
    GFM. Add (lbl4);
                    
    }

  • All fields are empty when the button is clicked

    Hello

    I have the result and 2 window search criteria. all the fields in the search window are not visible when the user enters some search criteria and click on the button Search opens the window of results, the opening of the result window, I want to say is not no button text box are visible in the search window, the window is empty. Please can someone tell what is wrong, what I have to change any property of window or controls.

    Thank you

    Vish

    Hello

    Oh no problem, you must use 1 table of main content & display the search result in the stacked with the next consideration...

    Please note on canvases stacked that you have the following properties of the view-port, which explain the key solution do not display the form elements in your case.

    1- T it position from view of the piled in canvas (Viewport) on the table of contents of the current window. (Display X, Y Position window)

    a.Viewport X, position Y on the window:

    Specifies the coordinates x, y to the left corner of the canvas stack relative to the top left of the display of the contents of the current window.

    -This means that the position of the top left of your canvas stacked on top of the canvas content.

    b.Viewport WIDTH, HEIGHT

    Specifies the width and height of the display for a stacked canvas.

    -This means that the actual size and the position of the view that defines the part of the drawing area is displayed in the window running.

    2- T it position from view of the piled in canvas (Viewport) on stacked canvas itself. (Display X, Y Position on canvas window)

    Viewport X, position Y on canvas

    Specifies the location of the top left corner of the view from the upper left corner of the canvas. The size and location of the window define the view; in other words, the part of the canvas which is currently visible in the window which is attributed the canvas.

    This parameter specifies what part of your willingness to stacked canvas the viewport (visibility) will cover.

    These properties help you make your most visible form elements on your canvas without using the scroll bar.

    You should try for yourself & recognize more clearly.

    Amatu Allah

  • ADF change active tab when the button is clicked

    This is one of those questions that expose me for beginners I, but here goes.

    I went through the help files and the forums, and I can't find what I think is a relatively simple mechanism: change the active tab (revealed) with the click of a button or menu text link.

    For example: I have a navigation bar on the left of the page and a set of tabs in the Center. A tab is active. I want to be able to click a button in the navigation area and have the visible tab changed to tab B, as if I had clicked on the tab B itself. How to activate a button or link click in the navigation area to change the visible tab? I only need that in some specific cases and do not want to create a complex structure backend for a pair of buttons.

    If you know a way to do this, I'm all ears. Thank you.

    You create a bean of support that will contain the code for the event click on the link.
    In this code, you set the property disclosed in the showDetailItem you want to make active to true and then change the tab other false.

    An intro base to work with the support of the beans is here:
    http://blogs.Oracle.com/Shay/2010/03/working_with_backing_beans_in.html

  • menu item from openes when the button is clicked

    Hi friends,

    My monitor have buttons and menu items. When I click on the button using wheel, click the fucton button works, but it will also open the menu items.

    How can I block the menu item when I press the button.

    Thanks in advance...

    use 'ButtonField.CONSUME_CLICK '.

  • Display the form when the button is clicked

    Hello, I am using JDeveloper 11.1.2.3.0
    I have a button and a form on my jsf page. I want the form to display when I click the button (to be seen). How is it possible in the ADF?
    Thank you

    Take a look at http://tompeez.wordpress.com/2013/03/25/creating-variables-and-attribute-bindings-to-store-values-temporarily-in-the-pagedef/

    Timo

  • CLEAR the VALUE of INPUT TEXT when the button is clicked

    Hi all

    I have a box of 2 inputText in my page in which the user enters a value, click on a button on this box. Now, what I want is to erase the other inputbox, during the click on the button against the inputBox in which the user entered value.
    I did partialTriggers of two boxes to the buttons and buttons are partial shipment.

    Now at the bean (session scope), I write something like firstInputBox.setValue(null);/firstInputBox.setValue("");/firstInputBox.setValue(false). When you click on buttons.

    But still my boxes are not erasing.

    Why can't he be?

    action listener to the button write-

    firstInputBox.resetValue();
    firstInputBox.setValue("");//if it takes a string input
    AdfFacesContext.getCurrentInstance().addPartialTarget(firstInputText);//always better to do programmatic PPR when there is some logic already on click of button .. do for declaritive ppr when ur whole soln. is declaritive
    
  • Call a rowDisclosureEvent from a tree Table when the button is clicked.

    Hi all

    I use Jdeveloper 11.2.5.

    I want to know how can I call the rowDisclosureEvent of a TreeTable at the click of a button.

    Code:

    {} public void collpaseAll (RowDisclosureEvent event)
    depth int = treeTable.getDepth ();
    if(Depth>0) {}
    return;
    }
    RowKeySet discloseRowKeySet = treeTable.getDisclosedRowKeys ();
    RowKeySet addedRowSet = event.getAddedSet ();
    Iterator addedRowKeyIter = addedRowSet.iterator ();
    {if (addedRowKeyIter.hasNext ())}
    discloseRowKeySet.clear ();
    Object firstKey = addedRowKeyIter.next ();
    discloseRowKeySet.add (firstKey);
    treeTable.setSelectedRowKeys (addedRowSet);
    treeTable.setRowKey (firstKey);
    AdfFacesContext adfFacesContext = null;
    adfFacesContext = AdfFacesContext.getCurrentInstance ();
    adfFacesContext.addPartialTarget (treeTable.getParent ());
    }
    }

    {} public void collapse (ActionEvent event)
    Add the code in the event here...

    }

    What should go after add code here event so that it can call the above method.

    Why down? If you want to just close all open nodes, you can do it inside the actionListener to the button.

        public void collapseTreeListener(ActionEvent actionEvent)
        {
            RowKeySet lDisclosedRowKeys = treeTable.getDisclosedRowKeys();
            lDisclosedRowKeys.removeAll();
            treeTable.setDisclosedRowKeys(lDisclosedRowKeys);
            // PPR refresh a jsf component
            AdfFacesContext.getCurrentInstance().addPartialTarget(treeTable);
        }
    

    Timo

  • unexpected behavior when the button is clicked - & quot; playhead & quot; jumps to wrong frame

    I'm working on a flash site and I'm running on an actionscript issue that has me a little deadlock.

    The timeline main .fla is long of 42 images. Images 1-23 are the preloader, each frame between the 24-31 images contains one of the sections of the site, and frames 36-42 contain paragraphs of one of the main sections. 32-35 are empty frames just to help me keep things visually separated while I work on this project.

    I have a subnavigation for this paragraph of installation in frames 36-42. For each of the buttons in this sub navigation, I have attached a very simple actionscript that links to other pages of the paragraph. I used actionscript as I've mentioned below, where 'web' is in this case, the name of the image I'm aiming:
    on (release) {}
    gotoAndPlay ("web");
    }

    When I click on a link to take me to the last image, that is be named "specevents" (special events), it takes me to which frame correctly. If I click on the "specevents" button once again within this framework, I picked the preloader screen. This type of jump also happens in some of the other secondary navigation buttons, that is, by clicking on a link for a framework which I am already in will take me to a quite unexpected setting (always the same framework for each button, however).

    In fact, looking a bit more closely, I find whenever I click on one of the sub - nav links, I have to move an image. As part of the "specevents" is the last image, it brings back me to the first frame of the movie.

    It's all a bit strange for me, because apparently, I used the same method on the main navigation buttons, and they do not have something unexpected when you click it.

    FYI - the page in question here, can be found at: http://gravitygroup.com/testflashy/ the 'our work' section sub navigation, that's what I'm looking at.

    Any ideas? Thank you!

    AHA! figured it out. The problem is that I got my sub - nav buttons grouped together so I could move around as a unit. I have them removed, and everything works now!

    Thank you for taking the time to help!

  • How to perform an action when the button is clicked reply all in BB email?

    I find the solution on below scenario, any help appriciated.

    User open a receipt email and click the 'reply to all' "."

    It is possible to perform any action on the button 'reply to all '?

    Thank you

    You can not interact with native applications except for adding your own menu entry (entries).

  • ID of passage with its values in the fields in form when the button is clicked.

    Tried to pass the value according to the button clicked with his id in to form.

    I am able to get the id in the right place as you can see in the Image below, but not able to pass all the different values of it.

    Global function:

    function get_id (id)

    { var a = parseInt (id)

    Apex. Item (P73_SHIP_ADDRESS_ID). SetValue (a);

    }


    Static page source:

    declare

    Id1 number (10,0);

    Start

    for rec in (select * from OMS_SHIPPING_ADDRESS where USER_ID =: P1_USER_ID)

    loop

    Id1: = rec. SHIP_ADDRESS_ID;

    sys. HTP.p ("< br > < div >");

    sys. HTP.p ('< a >' | sys.) HTF.escape_sc (CRE. TYPE) | "' < /a > < br / >"

    || sys. HTF.escape_sc (CRE. ADDRESS_LINE1)

    || ' , '

    || sys. HTF.escape_sc (CRE. ADDRESS_LINE2)

    || "' < br / >"

    || sys. HTF.escape_sc (CRE. CITY)

    ||  '-'

    || sys. HTF.escape_sc (CRE. ZIP_CODE)

    || "' < br / >"

    || sys. HTF.escape_sc (CRE. STATE)

    || "' < br / >"

    || sys. HTF.escape_sc (CRE. COUNTRY)

    || ' < br / > < input type = "button" value = "sΘlectionner" onclick = "get_id (id)" id ="" | recomm. SHIP_ADDRESS_ID | ' ' ' > '

    );

    sys. HTP.p ("< / div > '");

    end loop;

    end;

    Below the Image if I click select can pass id to send the address id but able to pass the address line1.line2, city etc...

    I tried to move to the global function also does not work! If someone could guide me!

    123.JPG143.JPG

    Hello

    If you have already passed the ID, then why don't you create a dynamic action on change of SHIP_ADDRESS_ID and load the details of database and fill in other areas.

    In this way the use of ID is understandable.

    --

    Sunil Bhatia

  • Just downloaded Firefox 8 and tried "Get Add-ons" in the Add-ons Manager and they would not appear and I only see the button "load". Any help?

    Click Tools-> Add-ons, then get add-ons and they never appear

  • Calling a function only when the State is active

    I turn to find the event just to call a function only when the status is active. In fact, I created a State to display the 'product details' click and once the system changes to this State - I have to perform a function.

    Here's the context:

    Let's say that you are on the home page where you will need to click on a product to see details. By clicking on the product, the State to view the details of the product will be activated and a variable inside the new state you will receive all the data (from the class of product). But I discovered Flex run all States at the beginning and we need to watch how declare our function to make sure that we do not have a null to a variable/object reference. Given that value is moving to the State only when the click event to occur, the process of globalization, execution of all States at the beginning will not have any value yet (for the specific product to deal with in the State of the productDetails). So I can't use creationComplete to perform a simple function like setSpecs(), where all the values (for example, width, height, circumference, diameter, price, etc.) will be instiate specific labels.

    What event to use to call a function internal once we are in the State? Just using the creationComplet and stated if he check the currentState = that I have to work on is not enough. I tried 'activate', 'show', 'enterStage' and many others, but without success. I tried to search the Internet, but it seems that this problem is not popular enough to generate sufficient results.

    But I know that it is possible in the case otherwise it will be is not logical and since Flex work very well with the event, I found the right event. It's something basic I know, but when you do not know, it seems difficult to find! ;-))

    Thanks Greg!

    I agree, this is a better method. So I'll change my SENSITIVITY to use viewStack instead of the State. But the problem persists what that, if we use the viewStack State to launch an event only when the State/viewStack is displayed on the screen.

    I found something that works very well for me: updateComplete.

    First of all, I found this before reading your information about viewStack so it worked very well for the method of the State. That I decided to do a test to viewStack and made the necessary changes to the code to reflect a viewStack navigation and make sure the updateComplete was not within my component (stateProduct.mxml). The system was not able to view the specification as the setSpecs() function was not instantiate when displayed. I added the updateComplete = "{setSpecs ()} ' and everything worked great!" So I conclude that no matter if you are using a viewStack State, the updateComplete event can be used to run or functions only when the component is displayed on the screen.

    Now, I have to make my transition between the State working with viewStack effect! ;-))

    Thanks to Greg for this useful tip!

  • How to make objects appear as luminesent?

    Is it possible to make objects appear as luminesent as a 'sword of light, a Firefly, glowing light of plants, etc.  Also such an object lit up what ever he was nearby.  Or what about a garden as well as on the film Avatar.  I don't know there must be a way == I bought plug Fractalius, but still not getting what I want.  Can someone help me with this please

    Thank you

    Buxton

    A lot of this has to do with just using adjustment for light objects layers to make it look like the glow: addition of light bouncing off nearby elements, etc. Some are made in double exposure and luminous paint. There are many ways to do this, but it also requires a fair amount of work. For example the image below was made by using two exhibitions with a light hit the center of the flower, making it shine.

Maybe you are looking for