show/hide the object with the text box

Hello world

has obtained a display code and masking of an object with a button and it does not work well. This is the code

function show_hide_image1(evt:MouseEvent):void {}

Image1.visible =! Image1.visible;

}

Enterbtn.addEventListener (MouseEvent.CLICK, show_hide_image1);

Now, got another code with a box of password who send me on different Label based on what is in it. There is the code.

Enter.addEventListener (MouseEvent.CLICK, fl_ClickToGoToAndStopAtFrame_4);

function fl_ClickToGoToAndStopAtFrame_4(event:MouseEvent):void

{

If (Passwordbox.text == "cryocath") {}

gotoAndStop ("cryocath");

} Else if (Passwordbox.text == "54321") {}

gotoAndStop ("A54321");

} Else if (Passwordbox.text == "123456789") {}

gotoAndStop ("A123456789");

} else {}

Stop ('error')

}

}

Now, my question is, I want to introduce my hide/show code this code but do not understand how to do it. What I want is that if I enter my Passwordbox, my "image1" show/hide object "image1". If I get "image2", my "image2" show/hide object. Can someone help me with this? TNX

:

Enter.addEventListener (MouseEvent.CLICK, fl_ClickToGoToAndStopAtFrame_4);

function fl_ClickToGoToAndStopAtFrame_4(event:MouseEvent):void

{

{if (this [PasswordBox.Text])}

This [PasswordBox.Text] .visible =! this [PasswordBox.Text] .visible;

}

If (Passwordbox.text == "cryocath") {}

gotoAndStop ("cryocath");

} Else if (Passwordbox.text == "54321") {}

gotoAndStop ("A54321");

} Else if (Passwordbox.text == "123456789") {}

gotoAndStop ("A123456789");

} else {}

Stop ('error')

}

}

Tags: Adobe Animate

Similar Questions

  • Show / hide the text box drop-down list database

    Hi all

    First time post here - wahoo!  :-)  Brand new user of LiveCycle, and so far I'm loving - very cool app!  I am a bit puzzled, however, and hoping someone can help...

    I am using LiveCycle version 8.05 and try to build a form that has a drop-down list with departments in our Organization.  If the user selects the elements 1-5 on my list, I want two other fields at autopopulated (one for the Admin Assistant) and one for Dept Head.  If however the user selects 'Other', I want a text box (it will be hidden the rest of the time) where the person will be able to type in the Department they work for.  For now, I'm only interested on getting the box 'Other' to appear; I'll worry about the other stuff later.

    Elsewhere in my form, I have a functioning drop-down list that displays a text based on the selection field; However, for some reason this logic does not work with the situation described above.

    My code for the working text field is (in JavaScript)

    var
    
    (sNewSel)
    case "1": 
    switch
    {
    
         TextField6.rawValue = "My text is in here";
    break;
    case "2":
    
    
    
    = "My second text is in here ";
    
    
    break;
    "3":
    
    case 
    
    = "My third text is in here.";
    break;
    TextField6.rawValue
    
    default:
    }
    break;
    
    
    TextField6.rawValue 
    
    
    sNewSel = this.boundItem(xfa.event.newText);
    

    After many fruitless hours yesterday, I got only to the extent where the code below; This was more or less copied right out of a post here.  When I click on the drop-down list, select 'Other', the text field is displayed.  I tried the definition of the text field to the times 'Hidden' and 'Visible' through properties of the object, but no luck.  I tried to use IF statements, subforms and anything else I could think of but am getting nowhere.

    var nSubLength = Subform1.nodes.length;
    var 
    sSelectField 
    for
    
    {if
    {switch (xfa.event.newText) 
    (case "6":
    Subform1.nodes.item(nCount).presence
    break
    default:
    Subform1.nodes.item(nCount).presence
    break
    }
    }
    }
    ;
    = "invisible";;= "visible";((Subform1.nodes.item(nCount).className == 
    "field") &(Subform1.nodes.item(nCount).name== sSelectField)) 
    (var nCount = 0; 
    nCount < nSubLength; 
    nCount++) sSelectField = fieldList.rawValue;
    = sSelectField.replace(' ', '');

    Any ideas?  This is very new to me, but I am familiar with other programming languages, and something this simple should not be difficult which leads me to think I'm missing something.

    Thanks in advance

    Chris

    It was easier to create a sample for you... Please see the attachment.  I think that's what you want.

    The code is on the change event of the DDList

    Paul

  • Photoshop CS6 - text showing above the text box

    Hey all,.

    I have a user who is currently using Photoshop CS6 on a Windows 7 Machine and when to manipulate a text box, he sees the text above where the actual text box. I tried to format the text in multiple fonts and sizes with the same result. I also created a new text box on a new layer with the same results.

    Any ideas on that? Is there an option im missing which could solve this problem?

    Thank you

    You can show us a screenshot please?

    What is your problem?

  • Captivate 7 - I created a file but when I re - open, I can't see the text in the text boxes until I click on each text box.  Is this a known issue?

    Hi, I created a Captivate 7 file.  I have some text boxes on each slide.  However, when I close the file and re - open, search text boxes empty.  The text appears again when I click on the text box.  However it is visible in the film.

    When I preview the file, the text does not show in the text boxes.

    Anyone had any experience of this problem?

    Thank you very much

    Anne

    Generally fixed by clearing out the Cache of your project.  You did recently?

  • Show/hide an element with the click of a button - Script works does not in Firefox

    Hi all

    Basically, I'm looking for show/hide a DIV with the click of a button.

    The script works in IE but fail in FF.

    I am sure that I am the problem here.

    <script type="text/javascript">

    function toggle(box) {
         var el = document.getElementById('box');
         el.style.display = (el.style.display != 'none' ? 'none' : '' );
         
         
         value = document.getElementById('content').value;
         if(value=="Show Calendar"){
         document.getElementById('content').value="Hide Calendar";
         }
         else{
         document.getElementById('content').value="Show Calendar";     
    }
    }
    </script>


    <style type="text/css">
    #box{
         background-color: #C0C0C0;
         height: 100px;
         width: 100px;
    }
    </style>
    </head>

    <body>

    <div id="box">
    </div>

    <input id="content" value="Hide Calendar" type="button" onclick="toggle(box)" />
    </body>
    </html>

    WE

    He also worked if you had changed-

    
    

    on this subject.

    
    
  • How can I make the text in all the boxes down following objects when the text box is changed from 1 to 2 lines?

    Hi people Muse.

    I'm faced with a problem of text box:

    At the bottom of my page, I have the title "ACTING ERMUTIGEN ZUM". Without any manual adjustment, I was happy to see that the text box pushes down the following objects as soon as the title Exchange of 1 to 2 lines. Point out clearly: I didn t add any point to stop or change any additional settings to achieve this, it just happened automatically and that's exactly what I want to happen.

    To my confusion, I can´t find a way to apply this behavior for the second title 'COURAGE OBSERVES UND LOSEN. It s on the same page. When I drag the breakpoint controller in the design-time view from the left to the breakpoint 900 pxor do it in the browser after export of the site, the title changes from 1 to 2 lines, as assumed, , but then the next Don t objects react and stay in the same place they stay when the title takes only 1 line.

    You will find the site on businesscatalyst:

    WILLKOMMEN

    I´d appreciates your support very well. I m sure it s not a big problem, but after an hour of re - try and control and do not receive a millimeter in advance, I thought, he could be one of these 'Don t worry - here comes the solution'- Muse hero there, read this. What you...? ;-)

    Thank you in advance.

    Moritz

    –––

    1st Title: everything works fine...

    Bildschirmfoto 2016-03-15 um 17.24.43.png

    Bildschirmfoto 2016-03-15 um 17.25.25.png

    –––

    2nd title: the 1200 px BP do everything ready...

    Bildschirmfoto 2016-03-15 um 17.26.13.png

    .. .but as I drag the marker of BP to the left just as I did with the title 1, the 2nd title doesn´t lower content:

    Bildschirmfoto 2016-03-15 um 17.26.30.png

    If you set the text block "ZUM ACTING... "sensitive width via the resizing control, rather than"Stretch to the width of the browser", which will provide the behavior you're looking for.

    We will study the design compared to the difference of the browser view. It seems that how items are grouped in resizing behavior is different in the case of elements with parameters width Resize mixed, in the mode of creation of the Muse and the browser.

  • Have a graphic with text running around it, when I put the text box on chart type will not appear - tried text running around him also - but still nothing

    @

    mimik82405642 wrote: when I put the text box on chart type will not be displayed.

    With the text box selected, choose: object > text frame Options...

    Check the checkbox ignore text dressed near the bottom of the text frame Options dialog box, and then click OK.

  • How to use the selection tool to resize a text box? Before I was able to click on the text box with the selection too in order to resize, but now I click on it and it only gives me 'path' or 'anchor' options.

    How to use the selection tool to resize a text box? Before I was able to click on the text box with the selection too in order to resize, but now I click on it and it only gives me 'path' or 'anchor' options.

    Ashley,

    What about window > show the rectangle enclosing (Ctrl / Cmd + Shift + B to toggle)?

  • I need to create a curved with type text box that heal and return to the next line in the form of curved text. How do I do that?

    I need to create a curved with type text box that heal and return to the next line in the form of curved text. How do I do that?

    1. Draw a set of concentric half circles also spaced, stacked so that the outermost is the most remote.
    2. Use the text tool to add text to the outermost path, thus creating a PathType object.
    3. Select all the paths. Type > threaded text > create.
    4. Text tool: click at the end of the text in the object of PathType. Continue typing.

    > If I do that it will not type more.

    A Warp effect is a direct effect. When it is applied to the type of objects, they are still editable text. The chain will deform, however, the text also, not only the paths to which it is attached. Sometimes you want that, sometimes you don't have.

    JET

  • LiveCycle ES4. I am trying to move a picture online with a text box to create a header.  I had to create a subform that flows to generate multiple pages of text.  After changing the settings, it seems that I can't place images and text where

    LiveCycle ES4. I am trying to move a picture online with a text box to create a header.  I had to create a subform that flows to generate multiple pages of text.  After changing the settings, it seems that I can't place the images and the text I would like.  I tried moving them to the bottom, but does not work.  Is there a way to encapsulate the images so that they can be places as much as I want?

    Select your photo and text inside the subform flowed. Right-click and select wrap in subform do the positioned Subform subform. This will allow you to move objects in this subform positioned the way you like them.

  • I can't do anything with the text boxes in my InDesign file.

    I consider myself fairly well with InDesign. But now, I'm quite a. I just spent two hours designing a newsletter before and inside the cover. I filled two text boxes with the text that I stole from a Word file. But now, I can't do anything in the text boxes. I click and nothing happens. Nothing does highlight. The framework is not locked. I don't know what to do. I am little freaked out that InDesign can do this to me.

    Look for the locked layers

    (Menu) object > unlock all on the spread

    Check the Live Page vs Master Page (you could have worked on the master (?)

  • White type in the text box with fill with transparency

    This page of color in my INDD document a lot of transparency on this - in the following stacking order:

    1. downstairs are two boxes gradients covering the entire page.

    2. next is a background photo that's an advantage to feathers.

    3. then comes my text box that floats over a part of the photo in the background. The text box is filled with a gradient purple feather. The text box contains 8.5 PT. White type (Helvetica Neue Medium).

    4. a transparent dingbat straddles a corner of the text box.

    Where the white guy is pictured in the background, a color is reflected type. I have not noted on the PDF, but of course, the work of back of the printer, you can see.

    I thought all type except automatically eliminated black?

    I pulled out the file using PDFX-3 (1.3) because my printing does service provider ' t supports the 1.4. I underdstand this version flattens transparency. I scanned "Print Production Guide for transparency" Adobe and learned that the areas of complex transparency can cause unexpected results. Is what happened here?

    When I opened the flattening of transparencies and he asked to highlight objects with 'Text of Raster-Fill and Stroke' or 'Text described', this type area is highlighted. No other boxes on this page type were noted, even where it overlaps the background photo (which has applied feather).

    Several other transparent dingbats (such as duplication of the text box) are also highlighted as 'Raster - Fill and Stroke text'. They are all on the highest layer (type).

    This isn't a disaster - it's still readable - but the details of the publication who are affected, which is important. Maybe next time I won't be as lucky. What would I do different?

    It is possible in the more recent versions of ID to the value of transparency to the object, STROKE, fill and levels of content, and I suspect that you have applied your effects to the object level. I was able to recreate what you see as well by using the gradient feather tool and in the effect controls panel and using the pen it y to the entire object. Oddly enough, once the gradient feather tool has been used I couln can't access options in the effect controls panel or in the menu object.

    In all cases, if you can, select the block of text, open the effect controls panel or object > Effects > menu feather degraded, remove the gradient feather and reapply just the filling.

    If you are not able to do so, copy the text, delete the block of text and create a new and paste back the text, and then select the image and apply the gradient feather to complete using the effect controls panel or the menu object.

  • You can change the font size using the form in the preview (not with the text box). Having also arrow drawing trouble in preview.

    You can change the font size using the form in the preview (not with the text box). Having also arrow drawing trouble in preview.

    What problems are you having with the arrow? You go to Tools-> annotate-> arrow and an arrow appears. Then you can drag around the head and tail to make it to the desired location.

  • When I print a table (multiple pages) the text box under the table seems to be moving under the table and prints with the table of this overlap. My only solution is to push the text box further down the page before printing... Any advice?

    Im having problems shaped a text box so that my table does not print right on top of it. I want it inside of my table (it's 'tems and conditions' budget)

    Any advice would be great.

    I face the same problem as well. Would like to know if there is a better way to get the text box to move with the table instead of the effect that overlap. Have to manually adjust the layout, whenever I want to get a reasonable print of a document (or export it to PDF) seems counterintuitive, especially when it causes the document seem ill-disposed on screen.

    I am running version 3.6.2 of the numbers in the case where that matters.

  • Replace the text box with Image through breakpoints

    Hello

    I'm looking to replace the text boxes and icons with images and want to know if I can do this on several break points at the same time without having to go and manually change each breakpoint.

    My site is here: Movement of Boulder

    In the Services section of the wider breakpoint, you can see the images that I want, but if you minimize the browser window, you will see the images and the text that he was supposed to replace. Is it possible to replace all the text boxes with the images you want?

    Hello griffinb,

    If you delete a breakpoint text areas, they will be removed from all.

    After you have placed your image just right-click on it and select the option ' copy the style and position > to other breakpoints.

    Let me know if you have any problems getting there.

    Kind regards

    Ankush

  • Update of dynamic Action with the text box

    This goes along with: update records with the text box

    APEX: 4.0.2

    THEME: SAND

    SERVER: Oracle-Application-Server-10g/10.1.3.1.0 Oracle-HTTP-Server

    I created an example with more comments on the page:

    workspace: stevendooley34

    username: dev01

    password: dev01

    application: examples of Forum

    page: update example

    I've implemented just as I think it should be put in place, but records only updates by clicking on my Refresh"" button.

    Keep in mind that the example is found in the apex 4.2.5 but I will implement this in 4.0.2.

    Thank you

    Steven



    Hi Steven,

    I think the main thing that was missing was adding the elements used in the PL/SQL "Page to go".

    The reason this is necessary is so APEX know what values of point on the browser should be sent (as part of the AJAX call) to the browser.

    IF you had all the elements that must be returned to the screen, then you will use the 'Page field items to return.

    I've also corrected a few things, P6 instead of P6 and P6_SEARCH_TYPE instead of SEARCH_TYPE, but they were just small "bugs" in the example.

    I also added another real action to refresh the report after the update.

    Thank you

    -Jorge

    PS. I do not validate that your code works for multiple, but the first glance entries and a quick test, it seems to work fine.  I focused only on the DA.

Maybe you are looking for

  • I want to put my favorites and contacts on edge too! Out port so I can use both browsers!

    I am downloading windows 10 and have so many new things, I want to stay with Firefox but must faves & contacts on both browsers. If you can give me some instructions on how to do it save me a lot of time! It will be fun to use some of the new inventi

  • HP g6 2381sa: I am looking for part number for my laptop (touchpad hp g6)

    Hi, I looking for part number touchpad this model: 2381SA HP PAVILION G6 5CD2492T78 ABU D0Y13EA I need to replace the touchpad, or possibly. Buy on eBay palmrest with touchpad, but I know not what palmrestow models will fit and what is the part numbe

  • Authentication problem when you try to connect

    I have a Linksys router. Connected WN2000RPT as described in the instructions of Netgear. Everything went through the lights very well, good, EXT appears on the scan available networks, etc. Tried to connect a Smart TV Vizio and burn TV Amazon tablet

  • Why can't I just record my Satellite A205-S5859

    I try to save my laptop on this site, but it give me more wronge series No. I received this message: Sorry! * Sorry, but we do not recognise this serial number. Please try again. Information on my laptop: Model: satellite A205-S5859REF.: PSAE3U-07602

  • Windows Media Player v11

    I have a Sansa E250 and I can sync music on my player to Windows Media Player, but the Player Windows media tells me that there are no files on my device.  Help, please!