the user entered text: determine if a specific character is correct

Hello!

I create a learning activity for one of our biology class. The basis of the activity is to test the ability of students to transcribe and translate DNA into other sequences.

I have a dynamic text field where the student just type in a when 36 characters.

I already know that I can use an if statement to check whether all the 36 characters are correct. I was wondering if there was a way to check individually each letter the student typed in is the right one for this line. If UUAACCGG is the right answer, so I want flash to check and see if the third character is, in fact, or not.

I know I can do this with 36 individual text boxes, but I was hoping to kind of go out with just a big box.

Is this possible? If this is the case, where should I start?

Look in the String class and charAt() method.

Tags: Adobe Animate

Similar Questions

  • Slide auto is using of multiple text entry boxes once the user enters two of the six answers

    I have several areas set up on a slide text entry.  The user must enter the answer in each text box.  And even though I have properties of all TEB "break from legends of success or failure", auto slide advance once the user enters only two of the six responses.  I thought that perhaps insert a click box and setting ' to pause until the user clicks on "would resolve the issue... but it is not.  Here's a screenshot of what my slide looks like and a screenshot of the properties that I set myself for each TEB.  Can someone help me please?  I need all six TEB to complete before moving to the next slide.

    TEBs.PNG

    TEB properties 1.PNG

    TEB properties 2.PNG

    The most important screenshot is missing: chronology. Where are the pausings for the TEB?

    You can start by changing the Actions on the success and the last attempt: they are both set to Continue, which means the playhead will be published immediately after a good response and after exhausting attempts in case of wrong answers. Set them to any Action.

    No Submit button? Only shortcut key entry for each TEB?

  • Check the box if the user enters the value field or text date input

    I have a business that, the rule of a JSF page with several components and groups. If the user enters the value in a date component or an input text component a selectOneCheckBox must be checked automatically. And even unchecked if the value of the field date field or text entry is deleted. I followed so far recommended for part of the ADF. I don't know what layer of the application of these rules should be applied.

    Please suggest how to get this implemented business rule

    Concerning

    You can implement the required functionality in the user interface layer.

    Here is the snippet of code for features:
    (1) page JSPX:




    Binding = "#{UIPageBean.inputDate} '"
    valueChangeListener = "#{UIPageBean.inputDateChanged}" / >

    Binding = "#{UIPageBean.inputNumber} '"
    valueChangeListener = "#{UIPageBean.inputNumberChanged}" / >

    readOnly = "true" simple = 'true '.
    Binding = "#{UIPageBean.CheckBox} '"
    partialTriggers = "id1 it1" / >

    (2) code Bean:

    public class UIPageBean {}

    Private RichInputText inputNumber;
    Private RichInputDate date. MinValue;
    box private RichSelectBooleanCheckbox;

    public UIPageBean() {}
    }

    {} public void setInputNumber (RichInputText inputNumber)
    this.inputNumber = inputNumber;
    }

    public RichInputText getInputNumber() {}
    Return inputNumber;
    }

    {} public void setInputDate (date RichInputDate. MinValue)
    this.inputDate = date. MinValue;
    }

    public RichInputDate getInputDate() {}
    Return date. MinValue;
    }

    {} public void setCheckBox (RichSelectBooleanCheckbox box)
    this.checkBox = checkBox;
    }

    public RichSelectBooleanCheckbox getCheckBox() {}
    return box;
    }

    {} public void inputDateChanged (ValueChangeEvent valueChangeEvent)
    this.checkBox.setSelected (false);
    If (this.inputDate.getValue ()! = null &)
    this.getInputNumber () .getValue ()! null = &.
    this.getInputNumber () .getValue () () ().equals("") .trim m:System.NET.SocketAddress.ToString is
    false) {}
    this.checkBox.setSelected (true);
    }
    }

    {} public void inputNumberChanged (ValueChangeEvent valueChangeEvent)
    this.checkBox.setSelected (false);
    If (this.inputDate.getValue ()! = null &)
    this.getInputNumber () .getValue ()! null = &.
    this.getInputNumber () .getValue () () ().equals("") .trim m:System.NET.SocketAddress.ToString is
    false) {}
    this.checkBox.setSelected (true);
    }
    }
    }

    Thank you
    Nini

  • URL of list of the user-entered recordable

    I found the following on the net which is a basic example of using the sharedObject method to allow users to record data, however I would like to improve this example, whereas in the text box, the user can enter different URLS, then when each url that the user entered is clicked, it will sail to that specific page.

    I know that allowing a user to simply enter a url into a single text box and then have the link to the relevant site once clicked is a simple process, but I want to achieve this in the following example, so that users can save their list of URLs, return their entire list empty or perhaps remove each link individually by clicking on it , and then clicking a button Delete.

    My main problem is that it seems the selectedItem.text property are not accessible in order click on a text box and apparently not the itemClick function is available in a text box as it can in a TileList for example, so I don't know how I can get it to navigate to the url contained in each element when each item is actually clicked. The text box should be changed to another type of component to integrate it? :-

    <? XML version = "1.0" encoding = "utf-8"? >

    < mx:Application ' xmlns:mx = ' http://www.Adobe.com/2006/MXML "

    " layout ="absolute"" "

    creationComplete = "initSharedObject ()" " >

    < mx:Script >

                <! [CDATA]

    import flash.net.SharedObject;

    public var sharedObj:SharedObject;

    private function initSharedObject():void{ }

    sharedObj = SharedObject.getLocal ('myTasks');

                    if (sharedObj.size > 0)

    textareaTasks.text = sharedObj.data.tasks;

                }

    public function localconnectionHandler(msg:String):void { }

    textareaTasks.text = textareaTasks.text + msg + "\n"

              }

    private function clearTasks(event:MouseEvent):void { }

                  = textareaTasks.text "" ;

              }

    private function saveTasks(event:MouseEvent):void { }

    sharedObj.data.tasks = textareaTasks.text;

    sharedObj.flush ();

              }

    private function deleteSavedTasks(event:MouseEvent):void { }

    sharedObj.clear ();

                }

                ]] >

    < / mx:Script >

    "" < mx:Panel horizontalCenter = "0" red ="0.5" verticalGap = "15" " "

    "" paddingLeft = "20" paddingRight ="20" paddingBottom = "20" paddingTop ="20"" "

                  height=" 300 " >

    " < mx:Label text = 'your tasks are... " />

    " < mx:TextArea id ="textareaTasks"" "

    top=" 20 "left =" 20 "right =" 20 "bottom =" 20 "

    width=" 100% "height =" 100% " />

    < mx:HBox >

    " < mx:Button id ="btnClearTasks"click ="clearTasks (event)"

                            label=" Clear Tasks " />

    " < mx:Button id ="btnSaveTasks"click ="saveTasks (event)"

    " label = 'record the tasks to the Shared Object"""/ >

    " < mx:Button id ="btnDeleteSavedTasks"click ="deleteSavedTasks (event)"

    " label = 'delete saved tasks Shared Object"""/ >

                < / mx:HBox >

    < / mx:Panel >

    < / mx:Application >

    If this post answers your question or assistance, please mark it as such.

    Very well. The shared object works correctly now. Only the file from the main application had to change. The AddURL component above is fine as it is:


    http://www.Adobe.com/2006/mxml '.
    layout = "absolute" creationComplete = "initSharedObject (); » >
     
        Import mx.events.ListEvent;
    Import mx.collections.ArrayCollection;
    import flash.net.SharedObject;
    Import mx.managers.PopUpManager;
    import AddURL;

    private var sharedObj:SharedObject;
    [Bindable] public var urls:ArrayCollection;
         
    private function initList (): void {}
    URL = new ArrayCollection();
    }

    private function initSharedObject (): void {}
    initList();
    sharedObj = SharedObject.getLocal ("urls");
    If (sharedObj.size > 0) {}
    var urlList: Array = sharedObj.data.urls.split(",");
    URL = new ArrayCollection();
    for each {(var url: String en urlList)}
    If (url! = "") {}
    var urlObj:Object = {url: url};
    urls.addItem (urlObj);
    }
    }
    }
    }

    private void saveUrls(event:MouseEvent):void {}
    var urlList: String = "";
    for each {(var obj:Object in the URL)
    urlList += obj.url + ",";
    }
    sharedObj.data.urls = urlList;
    sharedObj.flush ();
    }

    private void deleteSavedUrls(event:MouseEvent):void {}
    sharedObj.clear ();
    initList();
    }

    public void gotoURL(evt:MouseEvent):void {}
    navigateToURL (new URLRequest (urlList.selectedItem.url), "_blank");
    }
         
    private function addURLDialog (): void {}
    PopUpManager.createPopUp (this, AddURL, true);
    }
         
    public void addURL (url: String): void{}
    urls.addItemAt ({url: url}, 0);
    }
    ]]>
     
     
    paddingLeft = "20" paddingRight = "20" paddingBottom = "20" paddingTop = "20".
    height = "500" >
       
         
               
       

       
    Low = "20" width = "100%" height = "100%" dataProvider = "{URL}".
    alternatingItemColors = "[0xcee7f6, 0xf4d5f7]" rowHeight = "30" >
         
           
             
               
    Click = "outerDocument.gotoURL (Event); » />
               
               
    Click = "{outerDocument.URLs.removeItemAt (outerDocument.UrlList.SelectedIndex)}" / > "
             

           

         

       
       
         
    label = "URL" clear / >
         
    label = "Save URLs to Shared Object" / >
         
    label = "delete saved Shared Object URLs" / >
         
    label = "reload saved Shared Object URLs" / >
       
     

  • Pop - up Messagebox when the user enters an incorrect value in the TextField

    I want to display a pop-up message box when the user enters an invalid value, or an empty value in the TextField.

    Popup wil Messagebox displays a notification message to the user to enter the correct value in the textfield.

    I want to use c + c++ / qt code cascades.

    Have you made progress on this issue?

  • Get the field to remain Virgin until the user enters the value in the previous field used in the calculation

    I work on a PDF form and am stuck on one of my calculations. There are two fields 'desired Start Date", which is a date entered by the user. The "desired end" date is one year from date entered by the user. I figured out - however, before the user enters a date, I want this field remains empty. Currently, it fills with 01/00/000. How can I get this field to calculate not unless a date is entered by the user? So far, I tried this but can not get the blank to stay:

    If the field 'Desired Start Date' is empty, leave 'to' field blank

    var myStartDate = new Date (this.getField("Desired_Effective_Date").value);

    If (((myStartDate == 0) & & (getField("myStartDate").valueAsString = "")) {event.value = "";})

    If the field "Desired Start Date" is an effective date, use the date to calculate one year after the date of entry.

    }

    else {this.getField("to").value = util.printd ("mm/dd/yyyy", new Date (myStartDate.getFullYear () + 1, myStartDate.getMonth (), myStartDate.getDate ()))}

    Try the following than the calculation script custom field "to".

    Get the value of the date field beginning

    var sStartDate = getField("Desired_Effective_Date").valueAsString;

    If the start date field is not empty...

    If {(sStartDate)

    Converts a date in a date object string

    Kai = util.scand ("mm/dd/yyyy", sStartDate);

    Add a year

    oDate.setFullYear (oDate.getFullYear () + 1);

    Set this field to the calculated date value

    Event.Value = util.printd ("mm/dd/yyyy", anyway);

    } else {}

    This field blank because the input field is empty

    Event.Value = "";

    }

    You may need to change the date format "mm/dd/yyyy", I used to match the formats of date fields.

  • Procedure for the number of working days per month when the user enters to and from everyday

    Hi all

    Can provide you a solution to this - procedure for the number of working days per month when the user enters and days.

    Suppose that the user enters November 18, 2014 start date and date as November 23, 2014.

    The output should display

    Count: 4

    November 18, 2014 Mar

    Sea 19 November 2014

    November 20, 2014 game

    Fri November 21, 2014

    It will exclude Saturday and Sunday.

    Hello

    Here is an example of removing dates Saturday and Sunday:

    with days as(
         select (trunc(sysdate, 'YEAR') + level) as col from dual
         connect by level < 365
    )
    select * from days
    where trim(to_char(col, 'DAY', 'NLS_DATE_LANGUAGE=ENGLISH')) not in ('SATURDAY', 'SUNDAY')
          and col between to_date('18.11.2014', 'DD.MM.YYYY') and to_date('30.11.2014', 'DD.MM.YYYY')
    order by col;
    

    Cheerz,

    Stako

  • How can I make the submit button that is activated after the user enters a digital signature?

    I have a form that contains a digital signature field. Once the user enters their digital signature, my "submit" button is disabled. I wanted that this remains activated for the user can submit the form with their digital signature and the form (in PDF format) as an attachment.

    I'd appreciate any help.

    Kind regards

    Fanny

    You can configure the fields of lock after the signing of the digital signature. In Livecycle Designer across this field properties: object-> TAB Signature properties. Here can exclude the button submit or any other field, if necessary, do not lock after signing.

    -Rambeau.

  • Date field time: make calendar will appear when the user enters form.

    It is possible with JavaScript to make the calendar will appear once the user enters the date/time field (click and activate the date field time)?

    The field default time is really limited and the calendar can hardly be noticed.

    Thanks in advance!

    Hello

    as much as I know there is no to open the widget calendar via script.

  • Current date dynamically entered the field of text that the user enters additional text in the same field.

    Try to have the current date dynamically concluded a textfield of extendable table row when the button is clicked to create each stretch line. The user can then enter additional text in the same text next to the date field.

    Example:

    [25/04/2012] This is the text entered by the user.

    Current date is filled by each line Update created when you click the button "Update a line".

    The following script works but only for the first instance, not the second, third, fourth, etc...

     

    Click event: (JavaScript, client)

    this.resolveNode('Table2._RowB').addInstance (1);

    xfa.resolveNode ("Table2.RowB. #subform. Updated") .rawValue

    Thank you

    ~ Gift

    Hi Don,

    This solution covers the above problem? https://Acrobat.com/#d=VjJ-YsXLKmV6QU84JrAAIw

    Niall

  • Paramerterized Interactive reports - when running or by clicking on a specific page, how can I stop the report from until the user enters the rendering parameters.

    I wasn't able to post a picture in this post

    But it could look like this

    Order type - ALL - (selection list) GO (button)

    When I enter this page - the report is rendered ALL the data because the SQL is as follows

    AND ol.unit_selling_price <>0
    AND(ordertype.transaction_type_id =:P1_TEXT OR:P1_TEXT IS NULL)
    ORDER BY 3

    Its installer in this way because I want that all returned records if the user makes no selection BUT click ON the 'GO' or 'SEARCH' button

    I have just not all records rendered as soon as the initial screen and user selection options... IE launch via a button.

    Thank you

    Create an item hidden on the page and a calculation allows you to set a value for the element that is hidden when the "GO" button is presented.

    Add a line to your SQL to verify that the item is not null:

    ...
    AND :P1_GO_FLAG IS NOT NULL
    ...
    

    Or better yet, if you have valuables parameters in another region define the condition in the area of interactive report to be when the value of the hidden item is not null.

  • How to operate the user enter value query and get the result on the text element

    Hello

    I'm really beginning to JDeveloper and ADF, I want to execute the query below, before with forms, I just add: TEXT_NAME to enhance the users entries, what should I do now with ADF, really unclear question and I would be grateful all help with that.

    Select
    NVL (min (substr (a.StartTime, 1, 8)), 0) Service_Start_Time, nvl (sum (a.sessionvolume), 0) Total_Traffic_KB
    Of
    aaa_bill one
    where
    msid =: TEXT_ITEM
    and starttime > = (select max (fee) FROM aaa_bill
    where msid =: TEXT_ITEM and accountreason = 5);

    You can use a form of parameter ADF for this requirement.
    https://blogs.Oracle.com/Shay/entry/combining_multiple_queries_and

  • "Mandatory filed is not defined ' error occurred before the user enter the stage

    Hello

    After this problem to see if anyone can help.

    I use vRO 5.5. I create a workflow and add three steps for the user to enter.

    In step 1, the user will choose param_1. For step 2, param_2 is defined as entry required and predefined of items list. He'll call an Action for this list. Param_1 will be the parameter of this action. See the image below:

    Now I start this workflow, after I select param_1, Action in step 2 will be called immediately and error "required field is not defined" appeared in step 2. But I do not click even next to step 2.

    I don't think it's a user of good experiences. Does anyone have a solution for this problem?

    Thank you

    Vicky

    Hi Vicky,

    There is no solution for this problem (in the case of the vCO Java client). I couldn't be the best possible UX, but it's how we run presentations.

    On the level of the API, there is no special handling for the steps. Each operation is performed on the entire presentation. That is, consumer API specifies no such thing as 'current' step - the API takes one or more input parameters (possible from different stages) and returns the presentation all re-evaluated.

    Therefore for the API client to track the current step and decide whether to display warnings/errors for fields that do not belong to the current step. client Java vCO has decided to display all steps validation errors; other clients may decide differently and provide the best UX.

  • 'forcing' the user for text input prior to the presentation?

    I want to "force" users to enter text in three fields of text separated on a side box before you click on a click (on the bottom of the slide) box to continue the presentation. There is no "submit" button for each of the text boxes because there are three variables separated on the page, one for each text box, and I don't want a user to click on 'send' three times, once for each text box. I only want the user to fill out all three text fields before continuing with the presentation. As it is now, with three text boxes in a slide, the user can avoid entering any text all and simply click the box click to continue.

    Is there a nice advanced for this action? JavaScript?

    Does anyone have any ideas how to do this?

    Thanking you in advance!

    Can be done with advanced actions, but first I need to know if you can force the sequence for the ETB? You do not want a "submit" button, but the entry in BER must be confirmed by the user, or by a button "submit" a shortcut key. Now you can't use the same shortcut to multiple interactive objects, so if you assign an entry as a shortcut key this is possible only for BER. My workflow, if you can force the sequence, is to put the button submit to the first TEB, made transparent and without any text inside, on top of the second TEB (the field itself), so that when the user clicks this area to the second entrance, at the same time it confirms the entry for the first TEB.

    I've been blogging about multiple submit BER with a button (just remembered it):

    Several TEB with a Submit button

    Like to check if the user has entered something in ETB, you need a tip action and a v_null variable empty user. I blogged about this kind of variable user as well (sorry for all the links, but you can find a lot more explanation here):

    Where there is no

    You can put the button next up, but leave it to trigger a tip action that checks to see if one of the ETB has value = v_null and in this case show a warning text legend. If none is set to = v_null you go to the next page

    Lilybiri

  • How to display wav on a table or chart, if the user enters frequency, amplitude, shape, offset

    Hello

    I have a program (an example of program) where the user can enter the frequency, amplitude, shape as well as the compensation of a wave. How to take these properties and in the wiring diagram to display the waveform on the front panel (in a table or a graph)?

    Frequency, amplitude and offset is a double. Waveform in the wave function of type.

    code attached.

    Please answer. Thank you.

    To see the actual waveform, you obviously have another instrument connected to the output of the Agilent. If you want something simulated as closely as possible, you can wire the wave to a case statement function and set a function of generation of waveform appropriate inside each case.

    Edit - you also posted to the wrong Board. In the future, don't forget to post on the instrument (approximately Agilent) control or Council of LabVIEW (regarding the functions of generation of waveform).

Maybe you are looking for