Using a button to check an input text field

I am an educator and I am designing an interactive activity for my students. I created two buttons named button_B and button_G, and an input textfield named in_Text.  When a student presses button_B, the letter "B" is entered into the input text field; if a student presses button_G, the letter "G" is entered into the input text field. More than one letter entry is acceptable as a student's answer: for exmple the entry BBB, BGB within the input field is okay.  I have no trouble writing AS3 to accomplish this task, however:
For a student's solution to the input text field to be correct, it has to contain the four values BBB, GGG, BGB, and GBG in any order. I created an array named solution_S with these values. I also have an enter the solution button named enter_btn. The student can check their solution by pressing the enter_btn button; if the input textfield is correct, the quiz moves on to the next frame in my timeline; if it is incorrect, it moves to a different frame in my timeline. How would I enter this actionscript to accomplish this? Thanks much!

var check:Boolean=false;
for(var i:uint=0;i<solution_S.length;i++)
  if( solution_S[i].toString()==in_Text.Text)
check=true;}
if(check)
gotoAndStop(...);
else
gotoAndStop(...);

Similar Messages

  • HT5392 How can I use an Action List to re-order my layers in iAd Producer?  It looks like there's a tool for this, but I can't figure out how to use it.  I want to use a button to switch between a text field and a drawing pad layer.

    I am working on an iBooks Author Widget and want to allow the user to switch between drawing-pad functions and a text field on screen.  I'd like to create an action that will automatically re-order the layers so that the text field is accessible when typing but covered when writing by hand.  Then, I'd like the opposite to be available, so that the text field is accessible when typing, but the drawing pad is left alone.

    Have you tried using the selections in the Encore menu viewer that show you selected and activated states?

  • Error checking input text fields.

    Hi
    Just wondering where I find a list of what can be error checked in input text fields?
    I'm looking for things like...
    - checking that letters and not numbers are entered
    - checking that an entered number is in a certain range
    etc...
    Thanks guys
    Shaun

    To restrict input for a text field, use the following AS3 codes:
    myInput.restrict = "A-Z, a-z, ., ,'"; //myInput is the instance name of your text area
    To check the range of the numbers, use the following code:
    myInput.restrict = "0-9";
    myInput.maxChars = 3;
    myBtn.addEventListener(MouseEvent.CLICK, chk);
    function chk(e:MouseEvent):void
        var myString:String = myInput.text;
        var i:Number = Number(myString); //Converting the string to a number variable
        var max:Number = 100; //Maximum range
        var min:Number = 30; //Minimum range
        if (i < max && i > min) //Condition to indicate the range
            trace("Within range");
        else
            trace("Out of range");
    Hope this helps.

  • Subscript & Superscript in dynamic and input text field in Flash

    Yes, <sub> & <sup> tags are not supported by
    Flash but you can
    use Subscript & Superscript in dynamic and input text
    field in Flash:
    Download & install Subscript & Superscript fonts
    from
    http://www.subscriptfont.com
    or
    http://www.superscriptfont.com
    You will need to restart Flash software after installed
    fonts.
    Create a dynamic text field with Arial font embeded. Set the
    HTML property to true.
    Create a dynamic text field with Subscript font embeded.
    Create a dynamic text field with Superscript font embeded.
    Use HTML tag to set text to subscript or superscript like
    below:
    Some text<font face="Superscript">©</font>
    If you are using ActionScript to test the htmlText, use
    script like below:
    my_txt.htmlText = "Some text<font
    face='Superscript'>TM</font>";
    They are better than CG since it goes lower than the baseline
    and it's real subscript..

    Hi Nirnalatha,
    I have newly joined this forum and while going through the
    posts I came across your post which I thought I could help out. But
    I think I am too late for the reply.
    I am also into Flashlite development couple of months from
    now. Coming to your questions:
    1. Textbox problem: I am surprised to know that E70 mobiles
    (Device central list has E70-1 only) does not show input text box
    when cursor is in input box. Anyways its a good thing that you dont
    get an additonal input box. Like all J2ME applications you will be
    able to type the text inline. Infact we had reverse problem where I
    was told to create inline edit input box instead of flashlite input
    box. I think this is the mobile setting. Check the device features
    in the Adobe Device Central under Flash - Standalone player - Text
    and Fonts features. It will be mentioned whether inline text is
    allowed or not.
    2. Soft keys issues: You need to use
    fscommand2("SetSoftKeys", "Previous", "Next");
    and use a key listener in order to override the Mobile
    Softkey commands. Check out the flashlite help which clearly
    explains this.
    Hope I have given youa way to solve ur problem.

  • How to code a button to check all input fields at once?

    I have made an interactive math problem that has the user go through about a dozen steps.  One of the steps requires the user to complete the problem on their own.  In order to fill out the problem, I have created multiple input text fields so that they can be filled with the correct answers.  In this problem, there are about 23 of these text fields.  After all of these inputs are filled in, I would like to find a way to display the correct answes with the click of a button.  Once, the button is clicked, I would like to have the correct answers to have a highlight of green or some other indicator behind it to indicate to the user that it is correct.  I have tried to find an if statement to statsify these conditions but I have not been successful at doing so.  In other words, I know what I want to do but I do not know how to tell actionscript 3.0 and flash to do so.  Could someone please help me in figuring this out?

    I added my code that I am using now but obviously I do not want to go this certain route to check all the answers at once.  If you could please explain to me how some of your code would work as I only have basic experience with ActionScript. Also can I just Google how to create a glow filter?  I would appreciate your help.  Thank you
    Code:
    /*-------------show correct answers---------*/
    fourteenthreset_btn.addEventListener(MouseEvent.CLICK, onehundredo);
    function onehundredo(e:Event):void {
           if (fourteenthinput.text == "0") {
        gotoAndStop("label100") ;
    } else {
      fourteenthresponse_txt.text = "Incorrect. Please try again.";
    function fourteenthfocusInListener(e:FocusEvent) {
    fourteenthinput.text = "";
    fourteenthresponse_txt.text = "";
    fourteenthreset_btn.addEventListener(MouseEvent.CLICK, onehundredone);
    function onehundredone(e:Event):void {
           if (fifteenthinput.text == "40.25") {
        gotoAndStop("label101") ;
    } else {
      fourteenthresponse_txt.text = "Incorrect. Please try again.";
    function fourteenthfocusInListener(e:FocusEvent) {
    fourteenthinput.text = "";
    fourteenthresponse_txt.text = "";
    fourteenthreset_btn.addEventListener(MouseEvent.CLICK, onehundredtwo);
    function onehundredtwo(e:Event):void {
           if (sixteenthinput.text == "0") {
        gotoAndStop("label102") ;
    } else {
      fourteenthresponse_txt.text = "Incorrect. Please try again.";
    function fourteenthfocusInListener(e:FocusEvent) {
    fourteenthinput.text = "";
    fourteenthresponse_txt.text = "";
    fourteenthreset_btn.addEventListener(MouseEvent.CLICK, onehundredthree);
    function onehundredthree(e:Event):void {
           if (seventeenthinput.text == "-52.5") {
        gotoAndStop("label103") ;
    } else {
      fourteenthresponse_txt.text = "Incorrect. Please try again.";
    function fourteenthfocusInListener(e:FocusEvent) {
    fourteenthinput.text = "";
    fourteenthresponse_txt.text = "";
    fourteenthreset_btn.addEventListener(MouseEvent.CLICK, onehundredfour);
    function onehundredfour(e:Event):void {
           if (eighteenthinput.text == "26.25") {
        gotoAndStop("label104") ;
    } else {
      fourteenthresponse_txt.text = "Incorrect. Please try again.";
    function fourteenthfocusInListener(e:FocusEvent) {
    fourteenthinput.text = "";
    fourteenthresponse_txt.text = "";
    fourteenthreset_btn.addEventListener(MouseEvent.CLICK, onehundredfive);
    function onehundredfive(e:Event):void {
           if (nineteenthinput.text == "-78.75") {
        gotoAndStop("label105") ;
    } else {
      fourteenthresponse_txt.text = "Incorrect. Please try again.";
    function fourteenthfocusInListener(e:FocusEvent) {
    fourteenthinput.text = "";
    fourteenthresponse_txt.text = "";
    }fourteenthreset_btn.addEventListener(MouseEvent.CLICK, onehundredsix);
    function onehundredsix(e:Event):void {
           if (twentyinput.text == "0") {
        gotoAndStop("label106") ;
    } else {
      fourteenthresponse_txt.text = "Incorrect. Please try again.";
    function fourteenthfocusInListener(e:FocusEvent) {
    fourteenthinput.text = "";
    fourteenthresponse_txt.text = "";
    }fourteenthreset_btn.addEventListener(MouseEvent.CLICK, onehundredseven);
    function onehundredseven(e:Event):void {
           if (twentyoneinput.text == "0") {
        gotoAndStop("label107") ;
    } else {
      fourteenthresponse_txt.text = "Incorrect. Please try again.";
    function fourteenthfocusInListener(e:FocusEvent) {
    fourteenthinput.text = "";
    fourteenthresponse_txt.text = "";
    }fourteenthreset_btn.addEventListener(MouseEvent.CLICK, onehundredeight);
    function onehundredeight(e:Event):void {
           if (twentytwoinput.text == "0") {
        gotoAndStop("label108") ;
    } else {
      fourteenthresponse_txt.text = "Incorrect. Please try again.";
    function fourteenthfocusInListener(e:FocusEvent) {
    fourteenthinput.text = "";
    fourteenthresponse_txt.text = "";
    }fourteenthreset_btn.addEventListener(MouseEvent.CLICK, onehundrednine);
    function onehundrednine(e:Event):void {
           if (twentythreeinput.text == "40.25") {
        gotoAndStop("label109") ;
    } else {
      fourteenthresponse_txt.text = "Incorrect. Please try again.";
    function fourteenthfocusInListener(e:FocusEvent) {
    fourteenthinput.text = "";
    fourteenthresponse_txt.text = "";
    }fourteenthreset_btn.addEventListener(MouseEvent.CLICK, onehundredten);
    function onehundredten(e:Event):void {
           if (twentyfourinput.text == "0") {
        gotoAndStop("label110") ;
    } else {
      fourteenthresponse_txt.text = "Incorrect. Please try again.";
    function fourteenthfocusInListener(e:FocusEvent) {
    fourteenthinput.text = "";
    fourteenthresponse_txt.text = "";
    }fourteenthreset_btn.addEventListener(MouseEvent.CLICK, onehundredeleven);
    function onehundredeleven(e:Event):void {
           if (twentyfiveinput.text == "0") {
        gotoAndStop("label111") ;
    } else {
      fourteenthresponse_txt.text = "Incorrect. Please try again.";
    function fourteenthfocusInListener(e:FocusEvent) {
    fourteenthinput.text = "";
    fourteenthresponse_txt.text = "";
    }fourteenthreset_btn.addEventListener(MouseEvent.CLICK, onehundredtwelve);
    function onehundredtwelve(e:Event):void {
           if (twentysixinput.text == "-385") {
        gotoAndStop("label112") ;
    } else {
      fourteenthresponse_txt.text = "Incorrect. Please try again.";
    function fourteenthfocusInListener(e:FocusEvent) {
    fourteenthinput.text = "";
    fourteenthresponse_txt.text = "";
    }fourteenthreset_btn.addEventListener(MouseEvent.CLICK, onehundredthirteen);
    function onehundredthirteen(e:Event):void {
           if (twentyseveninput.text == "-8.75") {
        gotoAndStop("label113") ;
    } else {
      fourteenthresponse_txt.text = "Incorrect. Please try again.";
    function fourteenthfocusInListener(e:FocusEvent) {
    fourteenthinput.text = "";
    fourteenthresponse_txt.text = "";
    }fourteenthreset_btn.addEventListener(MouseEvent.CLICK, onehundredfourteen);
    function onehundredfourteen(e:Event):void {
           if (twentyeightinput.text == "227.5") {
        gotoAndStop("label114") ;
    } else {
      fourteenthresponse_txt.text = "Incorrect. Please try again.";
    function fourteenthfocusInListener(e:FocusEvent) {
    fourteenthinput.text = "";
    fourteenthresponse_txt.text = "";
    }fourteenthreset_btn.addEventListener(MouseEvent.CLICK, onehundredfifteen);
    function onehundredfifteen(e:Event):void {
           if (twentynineinput.text == "-175") {
        gotoAndStop("label115") ;
    } else {
      fourteenthresponse_txt.text = "Incorrect. Please try again.";
    function fourteenthfocusInListener(e:FocusEvent) {
    fourteenthinput.text = "";
    fourteenthresponse_txt.text = "";
    }fourteenthreset_btn.addEventListener(MouseEvent.CLICK, onehundredsixteen);
    function onehundredsixteen(e:Event):void {
           if (thirtyinput.text == "7") {
        gotoAndStop("label116") ;
    } else {
      fourteenthresponse_txt.text = "Incorrect. Please try again.";
    function fourteenthfocusInListener(e:FocusEvent) {
    fourteenthinput.text = "";
    fourteenthresponse_txt.text = "";
    }fourteenthreset_btn.addEventListener(MouseEvent.CLICK, onehundredseventeen);
    function onehundredseventeen(e:Event):void {
           if (thirtyoneinput.text == "140") {
        gotoAndStop("label117") ;
    } else {
      fourteenthresponse_txt.text = "Incorrect. Please try again.";
    function fourteenthfocusInListener(e:FocusEvent) {
    fourteenthinput.text = "";
    fourteenthresponse_txt.text = "";
    }fourteenthreset_btn.addEventListener(MouseEvent.CLICK, onehundredeighteen);
    function onehundredeighteen(e:Event):void {
           if (thirtytwoinput.text == "0") {
        gotoAndStop("label118") ;
    } else {
      fourteenthresponse_txt.text = "Incorrect. Please try again.";
    function fourteenthfocusInListener(e:FocusEvent) {
    fourteenthinput.text = "";
    fourteenthresponse_txt.text = "";
    }fourteenthreset_btn.addEventListener(MouseEvent.CLICK, onehundrednineteen);
    function onehundrednineteen(e:Event):void {
           if (thirtythreeinput.text == "0") {
        gotoAndStop("label119") ;
    } else {
      fourteenthresponse_txt.text = "Incorrect. Please try again.";
    function fourteenthfocusInListener(e:FocusEvent) {
    fourteenthinput.text = "";
    fourteenthresponse_txt.text = "";
    }fourteenthreset_btn.addEventListener(MouseEvent.CLICK, onehundredtwenty);
    function onehundredtwenty(e:Event):void {
           if (thirtyfourinput.text == "40.25") {
        gotoAndStop("label120") ;
    } else {
      fourteenthresponse_txt.text = "Incorrect. Please try again.";
    function fourteenthfocusInListener(e:FocusEvent) {
    fourteenthinput.text = "";
    fourteenthresponse_txt.text = "";
    }fourteenthreset_btn.addEventListener(MouseEvent.CLICK, onehundredtwentyone);
    function onehundredtwentyone(e:Event):void {
           if (thirtyfiveinput.text == "268800") {
        gotoAndStop("label121") ;
    } else {
      fourteenthresponse_txt.text = "Incorrect. Please try again.";
    function fourteenthfocusInListener(e:FocusEvent) {
    fourteenthinput.text = "";
    fourteenthresponse_txt.text = "";
    }fourteenthreset_btn.addEventListener(MouseEvent.CLICK, onehundredtwentytwo);
    function onehundredtwentytwo(e:Event):void {
           if (thirtysixinput.text == "2450") {
        gotoAndStop("label122") ;
    } else {
      fourteenthresponse_txt.text = "Incorrect. Please try again.";
    function fourteenthfocusInListener(e:FocusEvent) {
    fourteenthinput.text = "";
    fourteenthresponse_txt.text = "";
    }fourteenthreset_btn.addEventListener(MouseEvent.CLICK, onehundredtwentythree);
    function onehundredtwentythree(e:Event):void {
           if (thirtyseveninput.text == "97300") {
        gotoAndStop("label123") ;
    } else {
      fourteenthresponse_txt.text = "Incorrect. Please try again.";
    function fourteenthfocusInListener(e:FocusEvent) {
    fourteenthinput.text = "";
    fourteenthresponse_txt.text = "";

  • Use E-commerce Attributes to create an input text field

    Hey BC Community,
    Wondering if anyone has been able to create any specialized code to use an e-commerce attribute field as a input text field?
    I have a clients that needs to capture various input fields from the customer on the Large Product view.  Unfortunately I have no more open slots (yup - used up all 4 custom slots, unit type, product meta, etc.) so I can use the "How to Set Up Special Instructions Box" idea, as I need to put the <input> fields in a Content Holder, as not all of these products have this required input fields.
    Long story short, does anyone know how to use the {tag_attributes} area of the e-commerce platform to create user input fields, which will of course, populate into the Shopping Cart as well?
    Thanks,
    Aaron

    Your the third person to ask about this today:
    Open Field Attribute

  • I am creating a request for proposal form and I need to add a commission structure field.  I created a table using the ranking field and now I need to delete the "dots/buttons" and turn them into text fields, is this possible?

      I created a table using the ranking field and now I need to delete the "dots/buttons" and turn them into text fields, is this possible?

    It sounds like what you are trying to do is edit the choices in a likert field to something other than the default radio button. This is not something that you can do in Formscentral at this time.
    Andrew

  • How can i validate current row input text field like required.

    Hi All,
    jdev 11.1.2.1.0
    in my use case i have drag drop one viewobject as a adf table. and in table i have also add one extra input text field which is not based on
    vo.
    now i want to validate current row input text field not null when i commit row.
    but when i using required property true. it worked for all row in table. problem is that i want only current row input text field validate not all
    thanks,
    Manish

    When the user tries commit the data by clicking on the button -- For that button, have the logic in the actionlistener method to check if the additional input field is NULL or NOT.
    If it is NULL, show an error message using FacesContext.addMessage() API.
    Thanks,
    Navaneeth

  • Calculations in input text fields

    Hello,
    I'm making an engineering game. Students need to input force
    equations and to check the equation is right it has to add up to
    zero. There are two input text fields, one the student sees with
    the force values expressed in letters like HA, VA, and MA, and one
    hidden field where the values are expressed as numbers. They also
    input operators as part of the equation. I need to make it so when
    they click a button to check if their equation is correct, the
    contents of the text field are calculated to see if the equation
    adds up to zero. I know you can express the contents as a number
    with say Number (this.my_hidden_text.text), but how do I get the
    operators in the equation, which are +, -, *, /, (, ), and ^ to
    mean something and do what they're supposed to?
    Any assistance would be most welcome.
    Thank you for your time,
    Beatie3

    Thank you for your quick response. Would you mind explaining
    more how to use the strings method to find the operators, please?
    It's a bit messy but my code currently looks like this:
    stop();
    //hide stuff
    this.tickb._visible = false;
    this.crossb._visible = false;
    //declare the variables
    var check1:Number = parseInt(display_secret.text);
    var display1 = "";
    var display_secret = "";
    //function for the calculation
    function onCalculate() {
    if(this.display_secret = 0){
    this._parent.tickb._visible = true;
    this._parent.crossb._visible = false;
    } else {
    this._parent.crossb._visible = true;
    this._parent.tickb._visible = false;
    check02_btn.onRelease = function():Void {
    trace(display1);
    trace(check1);
    if(check1 == 0){
    this._parent.tickb._visible = true;
    this._parent.crossb._visible = false;
    } else {
    this._parent.crossb._visible = true;
    this._parent.tickb._visible = false;
    //load external images
    pic04_container.loadMovie("fig_3_1a.gif");
    //takes you back to the previous scene
    back02_btn.onRelease = function() {
    gotoAndStop("Scene 2", 1);
    //Takes you home
    home02_btn.onRelease = function() {
    gotoAndStop("Scene 1", 1);
    //moves to the next scene
    next02_btn.onRelease = function() {
    gotoAndStop("Scene 3a", 1);
    //calculator buttons workings
    left_btn.onRelease = function() {
    display1 = display1+ "(";
    display_secret = display_secret + "(";
    plus_btn.onRelease = function() {
    display1 = display1+"+";
    display_secret = display_secret +"+";
    times_btn.onRelease = function() {
    display1 = display1+"*";
    display_secret = display_secret +"*";
    right_btn.onRelease = function() {
    display1 = display1+")";
    display_secret = display_secret +")";
    minus_btn.onRelease = function() {
    display1 = display1+"-";
    display_secret = display_secret +"-";
    peek_btn.onRelease = function() {
    display1 = display1+"^";
    display_secret = display_secret +"^";
    slash_btn.onRelease = function() {
    display1 = display1+"/";
    display_secret = display_secret +"/";
    ha_btn.onRelease = function() {
    display1 = display1+"HA";
    display_secret = display_secret +"108";
    va_btn.onRelease = function() {
    display1 = display1+"VA";
    display_secret = display_secret +"0";
    ma_btn.onRelease = function() {
    display1 = display1+"MA";
    display_secret = display_secret +"1296";
    c_btn.onRelease = function() {
    display1 = "";
    display_secret = "";
    vd_btn.onRelease = function() {
    display1 = display1+"VD";
    display_secret = display_secret +"0";
    w_btn.onRelease = function() {
    display1 = display1+"w";
    display_secret = display_secret +"12";
    a_btn.onRelease = function() {
    display1 = display1+"a";
    display_secret = display_secret +"18";
    b_btn.onRelease = function() {
    display1 = display1+"b";
    display_secret = display_secret +"9";
    thank you very much for your help,
    Beatie3

  • Regarding Input text fields

    This is about fill in the blanks in flash 8 as2. In this i used input  text fields and three buttons.In first frame i used multiple input text  fields and a submit button. After filling all the blanks we click on  submit button then in the second frame we will show the result like if  the blank is correct it should change the color to green and if it is  wrong it should change to red.and in the frame i have check button when  we click on it will display all the answers. And when we click on  analyse button we have to display the answer which the user types and  the correct answers.
    And my problem is when we click on submit there is no difference in the blanks color all are in black only and i have assigned red to the wrong answer and green to the correct answer.
    and script on submit button is
    on (release) {
        gotoAndStop("Bl1");
        if ((_root.Bl.txt1 == "abc1") && (_root.Bl.txt2 == "abc2") && (_root.Bl.txt3 == "abc3") && (_root.Bl.txt4 == "abc4")) {
            _root.Bl.txt1.textColor = 0x006600;
            _root.Bl.txt2.textColor = 0x006600;
            _root.Bl.txt3.textColor = 0x006600;
            _root.Bl.txt4.textColor = 0x006600;
        } else {
            _root.Bl.txt1.textColor = 0xFF0000;
            _root.Bl.txt2.textColor = 0xFF0000;
            _root.Bl.txt3.textColor = 0xFF0000;
            _root.Bl.txt4.textColor = 0xFF0000;
    where "Bl" is the movie clip name and "txt1","txt2","txt3","txt4" are the var names for input text fields
    Please help........

    You are concatenating the conditions it will only work if all are true or  all are false
    on (release)
        gotoAndStop("Bl1");
        if (_root.Bl.txt1 == "abc1")
            _root.Bl.txt1.textColor = 0x006600;
        else
            _root.Bl.txt1.textColor = 0xFF0000;
        if (_root.Bl.txt2 == "abc2")
            _root.Bl.txt2.textColor = 0x006600;
        else
            _root.Bl.txt2.textColor = 0xFF0000;
        if (_root.Bl.txt3 == "abc3")
            _root.Bl.txt3.textColor = 0x006600;
        else
            _root.Bl.txt3.textColor = 0xFF0000;
        if (_root.Bl.txt4 == "abc4")
            _root.Bl.txt4.textColor = 0x006600;
        else
            _root.Bl.txt4.textColor = 0xFF0000;
    You can also run a for loop for optimizing the code further.
    www.darshanrane.com

  • Input text field problem

    I am VERY new at this...I'm following directions in "Hands On
    Training Flash 8 book...
    When creating an input text field the book instructs me to
    embed the font using the embed button that is in the Property
    Inspector...When I do this and test the movie there is no cursor in
    the text box and I am not allowed to type in it..
    If I do not embed the font then when I test the movie the
    input field works. I click on it and get a cursor and am able to
    enter information.
    Is the book I'm using wrong here or is there something I'm
    missing? Thank you.

    Hi Nirnalatha,
    I have newly joined this forum and while going through the
    posts I came across your post which I thought I could help out. But
    I think I am too late for the reply.
    I am also into Flashlite development couple of months from
    now. Coming to your questions:
    1. Textbox problem: I am surprised to know that E70 mobiles
    (Device central list has E70-1 only) does not show input text box
    when cursor is in input box. Anyways its a good thing that you dont
    get an additonal input box. Like all J2ME applications you will be
    able to type the text inline. Infact we had reverse problem where I
    was told to create inline edit input box instead of flashlite input
    box. I think this is the mobile setting. Check the device features
    in the Adobe Device Central under Flash - Standalone player - Text
    and Fonts features. It will be mentioned whether inline text is
    allowed or not.
    2. Soft keys issues: You need to use
    fscommand2("SetSoftKeys", "Previous", "Next");
    and use a key listener in order to override the Mobile
    Softkey commands. Check out the flashlite help which clearly
    explains this.
    Hope I have given youa way to solve ur problem.

  • Input text field displays U.S. keyboard layout

    Hi,
    I've got a Flash Player 9 / AS3 animation which has a input
    text field where a user enters their email address.
    Now my PC is setup to use the UK keyboard layout so when I
    click the buttons Shift+@ then I get the @ symbol displayed.
    But for some reason the moment I try typing in the @ symbol
    (using Shift+@ keys) then up pops the " symbol which is a U.S.
    keyboard layout if I'm not mistaken?
    And so checking this, if I use the Shift+number 2(") key then
    I get the @ symbol (which again is a U.S. keyboard layout if I'm
    not mistaken?).
    Obviously I can't expect my UK users to know this and so need
    to work out how to change the keyboard layout for the text input
    fields so when I click the shortcut buttons Shift+@ I should see
    the @ symbol appear.
    Hope that all makes sense.
    Any help is greatly appreciated as this is a live project
    that the client is racing to get fixed.
    Many thanks and kind regards,
    Mark

    Hi,
    I have found some other weird things happening regarding this
    issue which are very odd?
    To recap....
    If I type into the search bar at the top of this page Shift+@
    then I get the correct character displayed which is @ (so my
    keyboard is definitely UK layout).
    If I create a new Flash movie with nothing but a text field
    set to INPUT and type Shift+@ then again I get the correct
    character!
    But if I type Shift+@ into my Flash movie I get the wrong
    character " appear!?
    I then checked both text fields and found there were
    absolutely no differences (except for colour/font size), so I
    copied the new text field into my Flash movie and the moment I
    played my Flash movie the new text field (which was working) then
    started doing the same and displaying the wrong character???
    Any ideas?
    Thanks.
    Kind regards,
    Mark

  • How Can i send the data entered in Input text fields to e-mail?

    Iam Jennifer, Iam having a doubt in Flash, I hope that you
    are going to solve my problem, Iam taking 3 Static text fields as
    Name, Age and Country and besides each and every static text fields
    i have taken 3 input text fields with different instance names,
    when i enter my Name, Age and Country details in the input text
    fields and after entering those details if user clicks the submit
    button the data should be send to some mail address, is it possible
    Im not so good at action script, but i hope that any one can
    help me...
    Iam attaching the action script code also, please find the
    attachment below, the actions are given to button.
    Attach Code
    Btn.onPress = function ()
    mail_lv = new LoadVars();
    mail_lv.dummy1 = "";
    mail_lv.subject = "Details";
    mail_lv.message = "hi";
    mail_lv.username = "name_txt".text;
    mail_lv.age = "age_txt".text;
    mail_lv.country = "country_txt".text;
    mail_lv.onLoad = function ()
    trace("Sent successfully...");
    trace("mail_lv.subject = " + mail_lv.subject);
    trace("mail_lv.message = " + mail_lv.message);
    mail_lv.send("mailto:[email protected]", "_blank");

    The names of your variables, "name_txt", for instance, should
    NOT have quotes around them. Use:
    mail_lv.username = name_txt.text;
    mail_lv.age = age_txt.text;
    mail_lv.country = country_txt.text;

  • How to add comma and dollar sign that places automatically in input text field

    I have this ROI calculator which has several text input field
    on frame one with calculate and reset buttons. When a user enters
    numerical values in the text field, and jumping to the next field,
    I want the input text filed be updated with dollar sign and with
    comma.
    Next when they hit "ENTER" key or click "Calculate ROI"
    button, all the input text fields on frame 2 as a result of
    calculations be updated with dollar sign and comma. I also need
    that once the comma sign is assigned then it would not add any more
    even if user presses the button. Can someone help me in
    this?

    If you want to Set the Comma when you Switch to next Text
    Field
    Use onKillFocus / onSetFocus Functions.
    to restrict multiple comma, Before Adding comma use
    myText.text =
    myText.text.split(",").join("").split("$").join("");
    So this will give you the value without Comma and Dollar
    symbol, Now add the Comma and dollar.
    or you need to use a Flag for onChange Event.

  • How to insert a date picker input text field in a JSF Jsp page

    Hi,
    I have to develop an application using generic facets, unfortunately I am not supposed to use ADF Faces components given by Oracle.
    Now my requirement is, on JSP page an input text field which holds a DATE value is required, it should also have a Date Picker Calendar adjacent to it.
    Could you pls shed some light on this issue and help me out.
    Thanks
    ~Siva(ji)

    <HTML>
    <script language="JavaScript" type="text/javascript">
    <!--
    var pUpWidthc = 300; //Change the pUpWidthc to your requirements.
    var scrAvailc = 400;     //Change to your available screen width. You see in
    //this eBooks' middle frame, the frame width is
                                                                //equal to 410 . So whether your using frames or
                                                                //or a full 800 pixel screen, you must calculate
                                                                //your available screen width.
    var PopUpC = document.getElementById("pUpc");
    document.write('<div id="pUpc" style="visibility:hidden;z-index:4;width:'+pUpWidthc+';position:absolute;"></div>');
    function cstmPup(objC,c){
    popUpC = document.getElementById("pUpc");
    popUpC.innerHTML = c.innerHTML
    popUpC.style.left = getPos(objC,"Left");
    var scrNeedc = getPos(objC,"Left") + pUpWidthc;
    if (scrNeedc > scrAvailc){
    //The number 10 below is an extra offset x value applied when the
    //definitional popup box positions beyond your screen width. You
    //can change this number to fine tune your "beyond screenwidth" positioning.
    var scrOffsetC = getPos(objC,"Left") + pUpWidthc - (scrAvailc);
    popUpC.style.left = getPos(objC,"Left") - (scrOffsetC - 0);
    popUpC.style.top = getPos(objC,"Top") + objC.offsetHeight;
    popUpC.style.visibility = 'visible';
    fill();
    function fill()
         var noOfRows=7,noOfCols=7,i=0,j=0,day=1,x;
    var d1=FirstDayOfWeek(7,2008);
    //40     
         for(i=1;i<noOfRows;i++)
              x=document.getElementById('myTable').insertRow(i);
              for(j=0;j<noOfCols;j++)
                   var y=x.insertCell(j);
                   if( ( i==1 && j<d1))
                   y.innerHTML="";
                   else if(day<=DaysInMonth(7,2008)){
                   y.innerHTML=day;
                   day++;
    //document.write(FirstDayOfWeek(7,2008));
    function FirstDayOfWeek(m,y)
    var i;
    var dow = 6;
    //document.write("Hello");
    for (i=1583; i<y; i++)
    dow += (LeapYear(i)) ? 2 : 1;
    for (i=1; i<m; i++)
    dow += DaysInMonth(i,y);
    return dow % 7;
    function DaysInMonth(m,y)
    // m is the month number (1,2,3,...12), y is the year number (four digits)
    switch (m)
    case 1:
    case 3:
    case 5:
    case 7:
    case 8:
    case 10:
    case 12: return 31;
    case 2: if (LeapYear(y))
    return 29;
    else
    return 28;
    default: return 30;
    function LeapYear(y)
    return (y % 4==0) && ((y % 100!=0) || (y % 400==0));
    function getPos(objC,sPos){
    var iPos = 0;
    while (objC != null) {
    iPos += objC["offset" + sPos];
    objC = objC.offsetParent;}
    return iPos;
    function hPopUpc(){
    popUpC = document.getElementById("pUpc");
    popUpC.style.visibility = 'hidden';
    //-->
    </script>
    <BODY
    <button id="c1" onclick="cstmPup(c1,pUpCstm)">Custom PopUp</button>
    <'div' id="pUpCstm" style="display:none;">
    <'div' id="myid" align="left" style=" width:100%; height:100%; background:#cccccb; border:1px solid black; border-top:1px solid white; border-left:1px solid white; padding:10px; font:normal 10pt tahoma; padding-left:18px "> <b>Rich Message Boxes</b>
    <hr size="1" style="border:1px solid black;">
         <div style="width:220px; font-family:tahoma; font-size:80%; line-height:1.5em"><br>
              <table border ="1" id="myTable">
                   <TR>
                        <TD> SUN </TD>
                        <TD> MON </TD>
                        <TD> TUE </TD>
                        <TD> WED </TD>
                        <TD> THU </TD>
                        <TD> FRI </TD>
                        <TD> SAT </TD>
                   </TR>
              </table>
         <br><br>
         </div>
         <br>
         <div>
    <button tabindex="-1" onclick="hPopUpc()" style="border:1px solid black; border-left:1px solid white; border-top:1px solid white; background:#cccccc ">Close Message</button>
    </div>
    <?BODY
    </HTML>
    Message was edited by:
    mchepuri
    Message was edited by:
    mchepuri
    Message was edited by:
    mchepuri

Maybe you are looking for

  • How can I create a materialized view based on hierarchical cube query?

    Hi, database version 10gR2. When i try to create MV for sql below, i got error . I tried creating MV log in several ways, but still, keep getting the same error. SQL Error: ORA-12015: cannot create a fast refresh materialized view from a complex quer

  • Linksys WRT150N

    I currently have my Linksys WRT150N wireless router and DSL modem hooked into my desktop computer. I also have set up a wireless network so I can access the internet on two laptops. I now want to get rid of my desktop pc...can I do this, or does my r

  • Problems Export/Import on Windows x64 with SQL2005 x64

    Hi All: After successful export with R3Load of a ECC5.00 (Kernel 6.40 Patch level 171) when we import the data into SQL2005 SP1 and after successful import into the target database, we have some inconsistencies in several DYNPROS, we got errors like

  • Running a remote class with Daemon

    If i have a daemon running on one computer. Is it possible to make that daemon run another class on a different computer or internet ect.

  • Itunes art work doesnt sync to ipad, but it does to ipod  classic

    hey guys,   just noticed today that some of the artwork wont sync to the ipad3, but it is all their in itunes.  the wierd part, is that when i use my ipod classic in the car, my uconnect system shows the artwork on the touchscreen on the dash, or on