Click the button and the mouse-(what I need in the text)

Hi there, sorry to bother the guy again, but I came with a few new questions.

I want to try with a button click on it has an image apears and disappears, but so far I've only had this piece of code

botao.addEventListener(MouseEvent.CLICK, mudaimagem); 


function mudaimagem (event:MouseEvent):void { 
          if (event.currentTarget.selected == true) {
                    imagem.visible = false;
          }
          else {
                    imagem.visible = true;
 } 
} 

But the thing is... When I press 'CTRL + ENTER', the image is still on the scene and when I click on the button there is no hide not the image.

I wish I had help to see what I'm doing wrong... I have a deposit that 'If (event.currentTarget.selected is true)"is the wrong thing... but I don't know".

And also if it is a way to redo the mouse over the button and image apears her disappear when the mouse is not over, I would like to know

Thanks for the patince and questions of NOOB that I do.

Cordially ASilva

All you need to make the image disappear and appear would be...

botao.addEventListener(MouseEvent.CLICK, mudaimagem);

function mudaimagem (event:MouseEvent):void {
    imagem.visible = !imagem.visible;
}

If you want the first invisible object, you must assign them to be so.

If this does not work what error message you're seeing?

To do the same thing with a passage of the mouse you would increase the CLICK event to MOUSE_OVER and ROLL_OVER

Tags: Adobe Animate

Similar Questions

  • After removing system Antivirus care of my PC, I got an error message in function recycle something w / drive c. I clicked on OK and nothing of what is removed now appears in the Recycle Bin.

    After all functionss suggested or recommended to rid the SCA, I got an error messge something on recycling function was not in the c drive and I clicked OK. Now, when the Recycle Bin is opened after deleting without elements appear. Is there a correction/fix for this?

    Moved from feedback

    Original title: after having rid SCA from my PC I hade an error message in the function recycle something w / drive c. I clicked on OK and nothing of what is removed now appears in the Recycle Bin. This can be corrected?

    I'll have to check your other thread, but,.

    1. a single antivirus can be installed and running in real-time

    2. you can run malware and spyware like on DEMAND scanners only

    3. If you install MSE, all previous installed antivirus must be completely removed before installing mse

    4. Please read this checklist:

    http://experts.Windows.com/w/experts_wiki/89.aspx

    MSE installation checklist

  • get the data from the text box by clicking a button and display output text

    Hi all

    I have a task flow with two pages. On the first page, I have a text entry box and a command button.whenever I click the button, the data that is entered in the input text box should be displayed as output in the second page.please text after the code for this example.

    Thank you.

    Hello

    1. create a bean with a scope of application with any appropriate instance name: myBean_Request.
    2. create a property of the bean with any appropriate name. For example:

    private String textValue;
    

    3 generate the getters and setters in the bean for the text argument.
    4. set the value attribute of the text box to something like this.

    value="#{myBean_Request.textValue}"
    

    5. can insert setPropertyListener for the CommandButton as follows

                    
                       
                    
    

    6. in the next page set the value of the text output to the

    value="#{pageFlowScope.textValue}"
    

    I hope this helps.

    Kind regards
    Sicard.

  • Can I publish to PDF, as I used to do before I made the mistake of downloading this upgrade and then complete and sign or what I need to do this through Adobe DC?

    If I use WordPerfect and normally I take a court document, publish to PDF and then used the old Adobe to fill and sign my signature I scanned in my computer, how to make "this signature to appear.  It gives me a that is not mine. I saved it as a PDF file, but I can't seem to give me the possibility to insert into the document.  Help!  I hate this new update. Was chatting with people for two hours yesterday.  They told me I had to come to this forum to find answers. Pray someone can help.

    Hello

    Can I know which application you use currently and what OS? If you are using Acrobat Reader DC and you want to use your signature that you have scanned in the form of handwritten image then you can do service fill & sign.

    Open the PDF in Reader DC.

    Since the right set of tools, click Fill & sign

    You will get tools up to the Center just above the document

    Click the sign on the right

    Select "Add a Signature" from the menu drop-down

    This will give you the window where you can type your signature, draw it or use a picture

    Click on the Image and choose your signature on your computer and sign the document.

    Thank you

    Abhishek

  • Click the 'Text' to the editor blocked this one?

    Hi everyone,

    My PC is very recent and have the superior to those required features. (not the W10)

    After several operations with the PSE 14 editor and as I click on the 'Text' icon editor crashes and I lose what I did !

    I reinstalled PSE 14 twice but the problem persists.

    I've never had this problems with the postponement of PSE versions.

    If anyone can help me I will be grateful. Thank you in advance.

    PapyGribouille

    reset your preferences - https://helpx.adobe.com/photoshop-elements/kb/preference-file-locations-photoshop-elements .html, http://www.photokaboom.com/photography/learn/Photoshop_Elements/troubleshooting/1_delete_p references_file.htm

    [moved from the download, installation, commissioning to Photoshop Elements]

  • from vertical scrolling of the buttons and NO mouse

    I have 5 items, mainly the rectangles with different colors. What I want to do is roll of particular color based on the action of the buttons. I placed 5 buttons above the first rectangle. Based on the action of the button, it must scroll to a particular color and 5 buttons should stay in the same place.

    I created the layout on the edge of what I want to do. I don't want scroll bars so I then hid. And I don't want to achieve this by using scroll mouse, but with buttons. Using the scroll buttons.

    Download the example:

    http://www.4shared.com/zip/RTTSNCrjce/scrolling.html

    @heathroweexample is closer to what I want to achieve. It has different menu items on each rectangle. I tried to do but was unable to get things to work.

    EDIT: If I create a Web site in Adobe Muse using anchors and add actions on the buttons to switch to this anchor, I want o something similar to Adobe Edge. I almost did the same thing with Muse, unfortunately there no sensitive support, so I'm doing it on board

    Post edited by: alexmathayes

    Super

    Just for 'nest' make sure / of group items that I did with my sample.

    Example, I put all the menu items in a parent, called "topbar" element

    Similarly for elements that should just below in the 'brown' area, nest the respective elements. Similarly for the other 'blocks '.

    Darrell.

  • How do I click a button and have a fill in Firefox as I am with the specified text?

    I have support for a specific group of customers. I find myself repeatedly in writing almost the exact same paragraphs. What add-on would allow me to simply fill a field on a page with the exact text - I'm hoping to set up 20 or 30 replies I can just select instead of having to retype everything. Thanks for the tips.

    Try the cuts:

  • I use two browsers, Firefox and Safari. What I need to install twice, once launch each browser?

    I use two browsers, Firefox and Safari OS x 10.9.4.  Do I have to install Flash twice - once to launch each browser?  Or the card lies in a sort of cache, connecting on any browser he committed?

    Hello maxlexs,

    No, you don't have to install twice.  The same plug-in lies in a location accessible by Safari and Firefox and works in both browsers.

    --

    Maria

  • I have Windows XP Pro and I do not that Word and Excel do - what I need to do to get these programs

    No word or excel

    No word or excel

    You can buy them.

    http://www.Google.com/search?q=Microsoft+Office+downloads&RLS=com.Microsoft: en - us & ie = UTF-8 & oe = UTF-8 & startIndex = & startPage = 1

    Bruce Hagen
    MS - MVP October 1, 2004 ~ September 30, 2010
    Imperial Beach, CA

  • What I need to know is the name and location of the executable that runs when you click on detect monitors in the menu screen resolution of windows 7?

    Original title: name/location of the executable that runs when you click on detect monitors?

    What I need to know is the name and location of the executable that runs when you click on detect monitors in the menu screen resolution of windows 7?

    Hello

    Your question is better suited in the MSDN forums. Please post your question in the MSDN forums.

    You can follow the link to your question:
    http://social.msdn.Microsoft.com/forums/en-us/categories/

    It will be useful.

  • How to display images in the Lightbox popup window or click the link to the map image Dreamweaver?

    I've built several image maps on a base image I want to use to display different pictures. I used successfully of Lightbox to display individual text pictures or thumbnails, but don't know how to make this work of image maps in Dreamweaver 8 and cannot even change the Dreamweaver onmouseover command coded so that it works from an action to click instead of a passage from the mouse that ridiculously open a popup window each time it is a passage of the mouse the map image.

    OnMouseClick nor onclickonly allow me to change the action that I would really rather have open in the viewer anyway.

    Here's what Dreamweaver is scripted for me (with a few small jacking to run):

    < area onclick = "CSAction (new Array(/*CMP*/'sp01')); "return CSClickReturn()' shape ="circle"coords ="552,439,9"href =" # "rel ="lightbox [kitchen]"title =" "alt =" "onclick =" MM_openBrWindow (' I / 01.jpg ', ", 'resizable = yes, width = 667, height = 505') ' csclick ="sp01"/ >"

    And here's what I usually script Lightbox text or thumbnail image link, but do not know how combine this with Dreamweaver image map code to make it work:

    "< a href ="... /... /.. "/ I/image.jpg" rel = "lightbox [kitchen]" title = "Title" > link text (or tile) < /a >

    I have problems with file is available online at:

    http://lifegivingspring.info/LGs/about/study/siteplan/

    I can see your problems, so I changed the image with your arrows and put some fotos below them in the lightbox you want:

    The upperone with the visibly frames (frames set to '1') of the worksheet, the other is completely identical, I only put managers to '0 '.

    OK dstx, please take a look once more here: http://www.goldschmiede-blumberg.de/PartnerringeAm.php.

    Hans G.

    HCH

  • Htm, click the zone files

    Hello

    I have a published project that connects to other published projects

    The problem I have is the files htm to open in a new window rather than in the existing window so that the user can open each in turn if necessary without 'losing' the project 'parent '.

    Is it possible to get a link to a published project to open in a new window?

    Not so sure that I ve described this well so apologies in advance.

    Thank you

    Doug

    Welcome to our community, Doug

    If you look just to the right of here where the link information appears, you should see a button with an arrow down to this topic. Click this button and choose new to cajole the things in a new window. If you want the slide you link to stay put until the return of your user name, click the button again and uncheck the option "continue to play the project.

    See you soon... Rick

  • Remove the text when click on

    How can I set special instructions in a text box (for example, "enter your name") and then make them disappear when the user clicks on the text box and also have the return instructions if the user clicks the text box empty?

    http://cookbooks.Adobe.com/post_TextArea_with_a_prompt_string_that_automatically_d-16529.h tml

  • How to indicate the text in Pages 5.6.2?

    There must be an easy fix that I simply do not see...

    text/style/outline or shadow is not what I'm looking for.  I just want to put a white border around the black text in a text box

    anyone?

    There is no text control that will allow you to do this in v5.6.2 Pages. You can insert two text boxes. The first receives a contrasting background color, and the second is "Shrink Wrap" enclose your text with the value of 1 pt white text box border.

    Click the text box containing your text. In the Format Panel, select the text and layout. Reduce the text insert to 1 pt, so you can have closer tolerance white box around your text. Scale of the area of text encompassing too tight it fits.

    With the two selected text boxes, visit the tab reorganize and text wrapping set to None. Select only your box with the text and click the button front tab reorder. Now you can drag your text in white-box above your text box in contrast. With the two boxes are enabled, you can center and middle align two text boxes:

  • try to create several boxes to click with images and audio comments

    I'm not too familiar with captivate and would like to possibly ready to provide guidance.

    I am creating a screen in a course which is a graph (jpeg) and in the graph, there is 4 areas that are false.  I want to learners to find out all the four questions by clicking on each of them.  When they click on each of them, will receive an image with textual comments (jpeg) and they will also hear a short audio clip.  When the audio is finished, the image should disappear, the learner can then on other possible issues that will work the same way.  There is no notation, there is no restriction to find each number in a specific order, etc.

    I tried to create boxes to click for this, but it does not work... the project never stops for the learner to click on the graph, it just continues and played audio until the learner clicks on anything whatsoever... and never displays text comments (jpeg).

    Thanks in advance for any help.  HaPpY Friday!

    Captivate 4: export outside in a swf file.

    Hi again

    mon_mac wrote:

    Thank you for the reply rick.

    You're more than welcome!

    mon_mac wrote:

    Yes, I want the project to have a break.  for some reason he has not paused.  If you look at the timeline, my audio blade plays to set up the interaction, then when it gets to the click box he just continues to play with no break and plays the audio that I attributed to him.  It is not disply my image of feedback however.

    This makes me wonder how you preview. If you say that you use the type 'Play this slide' preview, that's why. This type of preview is more to simply observe rough (and I don't want to fuck in every sense of the term) calendar. Interactive elements such as click boxes, buttons, and text entry boxes do not work in this type of preview. That's why you see not all comments. (If this is the type of preview you used)

    mon_mac wrote:

    Yes, I am trying to use an image for the comments, not a caption box.  can I do this?

    Well, Yes and no. In that sense, Yes, you could configure things so that a click simply allows the playback head visit another slide or whatever. And on the slide that you visit, you have an image, the user sees. Who could act as your comments. You can also configure the click box with a legend of success or failure to the feedback. They click on the click box or the outer and trigger the legend must be revealed. You can use an image of your choice for the legend. And must not contain text.

    Before going further, let's see if everything what I offered this day helps your question.

    See you soon... Rick

    Useful and practical links

    Captivate wish form/Bug report form

    Certified Adobe Captivate training

    SorcerStone blog

    Captivate eBooks

Maybe you are looking for