Text entry to the area of dynamic text with answers

I need to create a demo of an application of "Technical Support".

I have a text entry box, a dynamic text box and "submit" button.

When a user types in the text entry box, then press the submit button that their "issue" appears in the dynamic text box.

It all works as should be outside of a thing. I need to be able to have the user enter several questions. Now if they first enter press and "chicken fried" submit, then enters the 'pizza' and presses to resubmit the text displayed in the dynamic text box should show two lines:

fried chicken
Pizza

but instead, whenever a user presses on submit text is replaced (i.e. 'fried chicken' is replaced by 'pizza' on the same line).

Here is the code so far:
code block
questionTxt.text = "enter your support tech here request.';
questionTxt.onSetFocus = function()
{
This.Text = "";
};

displayTxt.text = "Support: Hello.» How can I help you? « ;
displayTxt.onSetFocus = function() {}
This.Text = "";
};


var i = 1
var responseTxt = "Thank you, one moment please."

this.submitBtn.onRelease = function() {}
output = ' Dr. Smith: "+ input +"\n"+ responseTxt + '\n'; '.
questionTxt.text = "";
}
end code block

So the end result should be:

The user enters "I have a question", press submit
dynamic text box shows "Dr. Smith: I have a question" and below of this "Thank you, one moment please.
-> It's currently the case

The user enters into ANOTHER question "I also need info on...» "and submit presses
Dynamic text box says:

Mr. Smith: I have a question
Thanks, one moment please.

Mr. Smith: I also need information on...
Thanks, one moment please.

--------------------------------------------------------------------

My guess is that I need to use the variable "input" of the box of text for each line, but not too sure how.

Any suggestions would be greatly appreciated. Thank you!

may want to rather like:

var x 1: String = "Dr. Smith: "; "
var responseTxt:String = ' Thank you, one moment please. "
displayTxt.html = true;

this.submitBtn.onRelease = function() {}
displayTxt.htmlText += "\n" + x 1 + questionTxt.text + "\n" + responseTxt;
questionTxt.text = "";
}

Tags: Adobe Animate

Similar Questions

  • Targeting the area of dynamic text inside the moviecip to the variable

    Hello

    How we don't target a dynamic text box to change the color of the border within a clip? Example below is not working

    theName = ("answerPrint" + arryCount);
    boxName = ("box" (arryCount + 1));

    _root.pagePrintPartA [theName] [boxName]. Border = true;
    _root.pagePrintPartA [theName] [boxName]. BorderColor = 0x00cc66;

    Thanks for the backup, but I should of stated what was that that:

    theName = ("answerPrint" + arryCount) ;// Variable name within the area of dynamic text inside MovieClip
    boxName = ("box" + (arryCount + 1)) ;// Instance name of real dynamic text box inside MovieClip
    _root.pagePrintPartA [theName] [boxName]. Border = true;
    _root.pagePrintPartA [theName] [boxName]. BorderColor = 0xFF0000;

    In certifying this script you showed me where I went wron (do not see the forest for the trees). The last two lines should be:

    _root.pagePrintPartA [boxName]. Border = true;
    _root.pagePrintPartA [boxName]. BorderColor = 0xFF0000;

    I was aiming for back. Thank you very much DazFaz.

  • characters available in the area of dynamic text through XML

    Hello

    I'm working on an application with Flash and AS3. I am dynamic import text with XML through PHP MySQL database. So far, I had all this work.

    Although the available character set appears to be very low. I have to be able to use characters such as e (HTML eacute) and o (ouml HTML) and others that are widespread in the Netherlands. Anyone know how to get these characters working?

    Any help is greatly appreciated

    It's Arial should be the incorporation. Thank you very much I'll try to fix this.

  • AutoFill form making inappropriate entry in the areas of the company?

    Addon to Autofill Forms of DL in FF7 on Windows 7. It seems to work fine except for one outlier entry. Although I did not all entries in the 'Company' field profile, and I have disabled this field, when you fill out a form, my full name is displayed in the field "company".

    I don't know if Firefox saves the URL of the page where you enter the data in forms, but simply records the name (id) of a field and if the same input field name on another web page so the data can get offered as a suggestion of filling. If a web site uses a common name you could get this problem.

  • How can I get the area of a balloon with video analysis

    Hallo
    If I have a video analysis for a ball, how can I get the box?

    Vision Wizard as follows:

    First clean up your image to maximize the contrast between your ball and the background.  It is usually a combination of blurring/smoothing/cleaning.

    Then, run a threshold to generate a binary image that ideally contains only your ball.

    The use of the particle analysis for information on the ball.  One of the results of the stage of the analysis of the particle is the area.

    Most of the difficulties for this type of analysis is to get a clean enough to work with image.  If you can put a picture of the sample, I might be able to generate a Vision Assistant Script that performs the steps described above.

  • Select the list with the list of dynamic values with more than 4000 tank of query

    Hello

    I have no application where users can store SQL queries in a CLOB column. This query is then used to populate the list, select a dynamic element through LOV. Following the code returns the query for dynamic LOV used to populate the select list. It works fine except when the length of the lv_sqlStatement becomes more than 4000 characters. Then application crashes with "ORA-06502: PL/SQL: digital or value error: character string buffer too small" when Select the list item rendering.

    Any ideas how to get around this problem? Any help is appreciated. Do not say to them to write shorter than 4000 queries because I can't (it's operational requirements).

    DECLARE
    lv_sqlStatement end_user_set.sql_statement%type;
    BEGIN
    lv_sqlStatement: =: P2_SQL_STATEMENT;
    return ' select the label, value of (' | lv_sql_statement | t ')
    To_char (t.value) if not in (select value from end_user_set_member eusm)
    where eusm. EUSRSET_ID = ' | : P2_EUSRSET_ID | ')';
    END;

    I just blogged about this problem and posted a solution. See this announcement:

    http://www.deneskubicek.blogspot.de/2013/03/select-list-with-dynamic-lov-and-Ora.html

    Denes Kubicek
    -------------------------------------------------------------------
    http://deneskubicek.blogspot.com/
    http://www.Apress.com/9781430235125
    http://Apex.Oracle.com/pls/Apex/f?p=31517:1
    http://www.Amazon.de/Oracle-Apex-XE-Praxis/DP/3826655494
    -------------------------------------------------------------------

  • Display number in the area of dynamic text without rounding

    Hello

    I use AS3 and try to place the extracted value of an OC in 2 dynamic text boxes. I use a couple of numbers of test (2.25 and 1.25). Strangely when I run the following script, I have trouble getting my test numbers in areas of 2 text (T1, T2). (Before the numbers stopped show altogether, they have been rounded up and that he seemed to be 10 x greater than they actually are, without my something like that.) Note: The script also displays the text (T3, T4, T5, and T6) boxes with messages like "above average" based on the scores don't know if these screens are correct, since I can't show 2 numbers inspired by the poster.

    Here's the code. I have to do something wrong:

    Btn1.addEventListener (MouseEvent.MOUSE_DOWN, mouseDownHandler);
    function mouseDownHandler(event:MouseEvent):void {}
    var so: SharedObject = SharedObject.getLocal ("G1", "/"); using ' / ' as a local path should work to pick up the SO created by the SWF quiz
    var read1:Number = so.data.value1
    var read2:Number = so.data.value2
    var read3:Number = so.data.value3
    var read4:Number = so.data.value4
    T1. Text = String (read1);
    T2. Text = String Read (2);
    T3. Visible = false
    T4. Visible = false
    T5. Visible = false
    T6. Visible = false
    male
    If ((read1 > = 1,95) & &(read1<2.65))
    {
    T3. Visible = true
    T4. Visible = false
    T5. Visible = false
    T6. Visible = false
    }
    ElseIf (read1 > = 2.65)
    {
    T5. Visible = true
    }
    otherwise if ((read1 < 1.95) & & (read1 > = 1.25))
    {
    T4. Visible = true
    }
    ElseIf (read1 < 1.25)
    {
    T6. Visible = true
    }
    }

    Any help appreciated.

    Try just the text assignment clear ole to the textfields.

    T1. Text = "ole plain text."

    If you're not yet see anything, my inclination is first ask you to check if the font for the textfield color could match the background.  If this isn't the case, then are hide you, rotation, or animate these textfields - in which case you should join the police for them.

  • Any success with the creation of dynamic content with the api?

    My company is looking to build a dynamic newsletter and we usually have a lot of articles, but we want to connect with elequa auto generate dynamic content. Then we can use this content to build the newsletter in a model. ? Someone at - it do something similar to this?

    This is an old issue, but for someone who comes here looking for answers:

    Your best bet in the future is to create a content Service AppCloud (develop a content AppCloud Service) under the new Framework Developer Eloqua AppCloud (Introducing Eloqua of AppCloud Developer Framework).  This will allow you to insert dynamically content in landing pages and emails.

  • Can I create a dynamic url target for an entry in the Navigation bar.

    Hello
    I am building a new application and I need easy access from the app to our help wiki.

    I created an entry in the Navigation bar to 'Help' with a target Type "URL" and a target something like 'http://www.wikihelp.com '.

    I would change the target url based on the page, so that I have something like "http://www.wikihelp.com/ < Page title > ' or, preferably" http://www.wikihelp.com/:P0_HELP_TARGET'

    Any help / thoughts appreciated.

    Martin

    Hello

    You can do it, but you will need to use javascript and change the link of URL entry type. Then put something like this:

    javascript:popupURL('http://www.wikihelp.com/&P0_HELP_TARGET.');
    

    I hope this helps.

    --
    Paulo Vale
    http://Apex-notes.blogspot.com

  • Effects of lightsaber using the dynamic link with Premiere pro and After Effects CS4

    Hi all

    I'm working on a video project and that you want to add a lightsaber effect, but a layer which is suppose to be transparent isn't using dynamic links.

    I shot the video in my head, and everything else hidden.  I made a flash body to put my head on.  Now I know how to make a lightsaber in After Effects CS4. (starting with comp 1 with videos making a white solid layer, and then using the tool pen to make the sword.  Then copy the sequences video and place it in comp 2.  Then to return to comp 1 and remove the video sequences. then on comp 1 making a SOLID BLACK LAYER {that's the problem} and place it under the layer of white.  Then duplicate the white layer 3 times.  Changing each feather white layer mask to make the glow.  so going to comp 2 and take the 1 model and her nest to model 2...  Then change the blending mode of the model nested 1 to the screen.

    The main timeline in Premiere Pro CS4 and I have the video layer 1 to Photoshop file which is pink and the background of this project.  I made a dynamic link to After Effects and copied and pasted the video images and flash to the comp.  Here, I made the lightsaber.

    That is the problem.  The model of dynamic links with video, flash and the lightsaber will not show my pink background in Premiere Pro shows him my video, flash and lightsaber but the background is black.  In case of problems, I noticed if I turn off the LAYER BLACK for the lightsaber effect, I see my pink background with video and flash sequences and the glow of sabre, but my blue lightsaber color will not appear.

    Do more problems I set photoshop to lightsaber model file and I see the video, the flash, the lightsaber but I think because the background is pink I don't get a color glow to the sword (vilot color)

    If the layer of black is supposed to be transparent, so why can't see my background in Premiere Pro using dynamic links?

    appreciate any help I can get,

    Thanks in advance.

    Mr. PETER K

    P. S. - one-way I kinda had this work was I took one of the masks of white and copied and pasted layers in nested layer comp 1.  Adjusted to the width of the mask and the pen and I got a glow of blue ok.  You just can't mask width too because it shows a lot of black.  It is not as good as I want and I hope someone can help...

    Thank you again...

    Well, blend modes don't create transparency, so the behavior is correct - because technically, the background of the model is ignored for the mix of operations, in areas where there are no content below for the mix, only the layer of black color is used. You create transparency good, real luminance based on unmultiplying, that can be done with the Knoll Unmult plugin Red Giant Software (free) or the effect of changing the channel of the AE monitoring bey a color delete effect.

    Mylenium

  • The use of dynamic text with Actionscript

    I have a variable called "managername. My film requires data in a text document. The problem is that my flash variable name is also part of the name of the entry in the text document. Like this:

    myText_district = 109
    & myText_Ian = 189
    & myText_Dave = 8
    & myText_Ray = 14

    Y at - it a syntax that I can use in the field of the Var of the property Panel to get the variable equivalent to something like "myText"+ _root.managername? ".

    OR

    Is there an example somone can show me how to load variables from a text file in a dynamic text field SPECIFIC completely into the action script?

    Any help is greatly appreciated.

    Well, you will have to wait until the content of districtmanager.txt load in. All about the right time for the file to load interent. Flash is not wait until what the code load, it just not the loadVariablsNum and then continues on the trace that there no variables (again) with the name myText_Ian or what you have.

    If you are publishing for Flash 6 or higher, you should probably use the LoadVars class. This gives you the onLoad event so you can then put your code in there and make sure that variables are loaded before you try to use them.

    Another question, is what happens when you get a new Manager? You should put in another variable and make the entire file again. That's why I think you should consider possibly develop this with XML or another way of not having to hard-code these things.

  • creation of an area of dynamic text inside a movieclip using a loop for

    I'm having issues creating several areas of dynamic text inside a movieclip using a loop for.  I use 2 ACEs.  Here is the code I've created so far

    var leading: Number = 0;

    function drawClip (): Void

    {

    this.createEmptyMovieClip ("mc", 10);

    for (i = 0; i < 5; i ++)

    {

    mc.createTextField ('text areas' + i, this.getNextHighestDepth (), 0, leading, 200, 200)

    MC ["text boxes" + i] .text = i;

    leader + a = 20;

    }

    }

    drawClip();

    Create a mc but she only display the number 5

    Any thoughts?

    You are cionstantly, crushing the textfield created previously due to the use of the wrong depth define.  You point to 'this' to get a depth value, but he planted inside 'mc', so it's always at the same depth since "this" index of depth does not change.  Use...

    mc.createTextField ('text areas' + i, mc.getNextHighestDepth (), 0, leading, 200, 200)

  • Can I create a book, whose pages are dynamically filled with text, images?

    Can I create a book, whose pages are dynamically filled with text, photos, videos?

    And then want to give these pages a curl effect when activated. Pls. note I want to build these pages on the fly.

    If it is possible, what are the possible technologies that I can use?

    See you soon,.

    Samantray

    Flash can read data from several sources (XML files, text files, on the web, on-site, etc.) and you can use these data to populate your address dynamically. He can do the same thing with the pictures and any other active flash can use (images, video, etc).

    The effect of curvature of page can be done in different ways. Just google for flash page flip effect and tons of resources and tutorials will appear laboriously explaining how to do it.

  • How do i: fill automatically the area other sections of the text field form?

    Hello. Need help please!

    I need a script, I guess that for a field text entered by the user automatically fill the area in the headers in the form of entry.  The header is identified by all that will enter the name of the user on the cover page.

    ID be very grateful.

    Stephanie.

    If you name the field in the header exactly as the text field, then you just need to set the binding at the global level and no script is needed. You can set the binding in the object palette in the binding tab. Then in the drop-down default choose global binding.

    Paul

  • Problem of text selection in the text field for entry in the emulator

    I'm having a problem of text selection in a text field when I run my application in the emulator Playbook. Let me see if I can expose the problem here:

    1. The field in question is a classic text, text with an integrated in police entry field. The domain is in a SWC and referenced in another FILE.
    2. The code is set up such that when a user clicks the field function is called to highlight all the text. The code is more or less as follows:
    thisField.addEventListener(MouseEvent.CLICK, onFieldClick);
    
    private function onFieldClick(event:MouseEvent):void
    {
       var selectedField:TextField = event.target as TextField;
       selectedField.setSelection(0, selectedField.text.length);
    }
    

    The problem I'm having is that when I try clicking on the emulator, the text field in 'domain' is sometimes selected as expected, sometimes not. When the text is not selected as expected the cursor always appears in the field and the Playbook keyboard slides up by below. What is particularly problematic, that's what often happens, is that the whole scene moves upward on 10px when it is clicked on the ground. If I try to click on the same ground once again, another change to the top of 10px or so, etc..

    So why the text not properly selected and why the scene evolves upwards?

    I realize that more information may be required from me to correctly solve this problem, but if someone has all understand why this may be the case, I would be happy to learn from him.

    Thank you

    David

    I can answer the question of displacement.  This is a bug in BB and supposed to be fixed in version «next» SDK

    The question of the selection, I'll guess has to do with the fileld with focus, selection is not possible.  Try to set the focus outside of maybe the text field?

Maybe you are looking for

  • Java script app and syntex error with Firefox 17... can not solve it

    Since I downloaded Firefox 17 I get the above error.

  • Windows 7 update is no longer available?

    When we bought this laptop there is a Toshiba coupon for an upgrade to Windows 7 (it was shipped with Vista). However, the web address www.toshiba.eu/windows7-upgrade no longer works. I have no use for Toshiba coordinates - how can we get the Windows

  • You still have the UK update? Tell the rest of us!

    Basically the idea of this thread is when the UK update comes to the first person to get that it can post here. That leave the rest of us who comment or subscribe to this thread to know by email, so we can all get. YAY! In addition, the first poster

  • type 'whitenoisesignal' is undefined

    Hi all I am learning the use of controls of mstudio in vb.net.i has presented a request to learn the work of grapg the form of wave and evaluate. to do this, I followed all the steps perfectly as shown in this video "https://ni.adobeconnect.com/_a568

  • image on my screen

    my computer won't give me full screen when I play the games and then I have to change the zoom on the page and I can't read it.