How to make a text entry for the user to type the name in?

I do a game in which the user can type in their name, and later in the game, it will say something like:

"Oh, Kaitlyn, how was your day? But what I really know how to do is make sure the name will be, but NOT all in a sentence in fact. The problem with this is the spacing and punctuation. I tried following a tutorial that gave me this to put in the ActionScript for the output area:

output_txt. Text = "Hello" + myText + "!";

Here is the tutorial:

http://www.danfergusdesign.com/classfiles/oldClasses/VCB331-richMedia1/exercises/inputOutp utText.php

I think it's because it's for as3 that it doesn't, but I'm kinda new to Flash and it does not seem too difficult. Please give very descriptive instructions.

What you show will work in AS2 and AS3.  Do you have assigned an instance name textfield (it indicates 'output_txt' in your example)?  Instance names are assigned by selecting the object on the stage and entering the name in the properties panel.

You must store the name that the user enters in a variable.  This can be done in two different ways.  Do you have something in place for that?

Tags: Adobe Animate

Similar Questions

  • How to make a dialog box for a user to choose a file to disk

    Hello

    Is it possible to make a dialog box for a user of photoshop, choose a txt, process of my javascript file?

    I have a txt file with all the names and locations of the psd files, I want to treat by photoshop. I have e.g. 100 out of a folder with 250 images.

    If anyone has a shot "sample code" how to select a file - I will be happy.

    / T

    Here is an example of selection of a text file...

    var dlg=
    "dialog{text:'Script Interface',bounds:[100,100,500,220],"+
    "testFile:EditText{bounds:[10,40,310,60] , text:'' ,properties:{multiline:false,noecho:false,readonly:false}},"+
    "Browse:Button{bounds:[320,40,390,61] , text:'<<' },"+
    "statictext0:StaticText{bounds:[10,10,240,27] , text:'Please select Text File' ,properties:{scrolling:undefined,multiline:undefined}},"+
    "Process:Button{bounds:[10,80,190,101] , text:'Process' },"+
    "button2:Button{bounds:[210,80,390,101] , text:'Cancel' }};"
    var win = new Window(dlg,'test');
    win.center();
    win.testFile.enabled=false;
    win.Browse.onClick = function() {
     selectedFile = File.openDialog("Please select TEXT file.","TEXT File:*.txt");
      if(selectedFile != null) win.testFile.text =  decodeURI(selectedFile.fsName);
    }
    win.Process.onClick = function() {
     if(win.testFile.text == '') {
      alert("No text file has been selected!");
      return;
      }
     win.close(1);
     selectedFile.execute();
    }
    win.show();
    
  • How to make readable text fields after the filling of data

    Hello

    Once we get the data in the message text entry fields, we have a few only readable areas.
    I tried to make these fields as readable as follows:

    In the property inspector Table RN, I changed the functional property of 'Read' only True value
    But in the custom OAF page, text box is missing for this field.
    Could someone help me how to do this?

    Thanks in advance
    Nanoo

    Hi Nanoo

    Here's the modified code, you can use

    public void setReadonly()
    {
    XXIDVOImpl vo=getXXVO1();
    Row poRow = vo.first();
    for(int i=0;i
    

    I hope that helps!

    Thank you
    AJ

  • How to make a good UI for the selection of the channels with DAQmx

    A lot of my Labview programming accompanied verisons them previous LabVIEW (pre Labview 7), and there are a ton of new features I am digesting (currently using Labview 8.2).

    My question is (in general), how people schedule their user interface for the selection of channels and others when using hardware DAQmx?  What I have in mind is a system compacDAQ with a number of modules.  The user would be able to choose which channels to watch.  With the help of MAX as part of this process seems counter intuative and somewhat static (yes I know you can change out there, but it feels more like something you would use for something that doesn't really change much).  I wish that all the UI within the VI.

    Programmers use the task of creating screw for this or something else?

    Thanks in advance.

    ChuckNRC,

    I tend to avoid using MAX and create all my channels/tasks using the DAQmx functions.  There are also having some DAQmx features that allow you to save/remove channels, tasks and scales to MAX.

  • How to make a great show for the photos

    I want pictures to appear in a great show if you klick on them.

    But I can't find an instruction for what he...

    Can someone help me?

    You can do this with Widgets, for example with the blank publication (Windows > library Widgets > Compositions)

    1. Drag and drop the blank publication to your page.
    2. Then select the thumbnails (triggers) and fill it with content, you can change the color of background and outline of the people. You can move the triggers by double-clicking on them and then dragging them into position.
    3. Whenever you select a trigger of the larger target area is visible, you can insert larger images in this area and change the color background and outline of it.
    4. To hide larger images and do only appear when you click the small triggers, select the Widge on the page, and then click the blue arrow. This will display the options for the widget.

    I hope this helps. For more information on the use of Widgets, also see:

    Using widgets | Adobe Muse CC tutorials

    Good luck, hope this helps.

    CARI

  • How to make a text box in the scroll bar custom FlashCC HTML5 Canvas?

    Hello

    I need to make a scroll for a long text box bar. I wonder how can I achieve this with HTML5 canvas in Flash CC2014?

    Thank you

    Rodrigo

    No, the code is exactly the same except instead of changing the property y of a textfield object, you change the property y of a movieclip (which contains an image of the text your want to display).

  • How to make a text field for view-only / editable based on a user of APEX

    Hello

    I have a form with fields of 10-20 to assume.
    When the user - Admin logs, I want to field1 as editable, but when another user... User1 connects, I want to do this Field1 as display only... how I can do.

    Thank you
    Deepak

    Deepak

    You can remove the "View only" condition on the field and add this piece of javascript in the "foot" of the definition of the page

    
    

    CITY

    Published by: city has 12 August 2009 15:41

  • Tips on how to make a business case for partitioning

    Hello world

    I am the architect of a team of business intelligence/data warehouse. We have grown to the point where I think that we need database partitioning. I believe that we are at approximately 1.5 TB of data. Our larger tables are the counts of 100 million lines with relatively large lengths Records (~ 100 columns). Our just a sort of large tables are of the order of 10 million to 50 million, however, they have very long line lengths (~ 300 columns). Based on the plans of our future source system, our data will become even more granular, and it is always necessary to maintain our historical data.

    Those who are not the only reasons, but are some conduct issues that make most of our team members think it's time we purchased database partitioning. Our team is fairly unanimous for partitioning, many of our partners from the source system also deem an 'evidence', however, we get a push back of our CIO saying that 1.5 TB and 100 million records is not only the large amount of data compared to other 'big Data' businesses and that it requires no partitioning.

    Anyone has any advice on how to make a business case for the purchase of partitioning? Is there a good way to demonstrate the value of profitability-vs?

    Thanks for your comments.

    -= Joe

    The best cost c. analysis of benefits is that you put together based on points regardless of the pain you feel.

    For example, you have pain around your evening of meeting load ALS? If you do, you can watch how (and if) partitioning would allow you to streamline your loading process and how much time you would save probably every night. If you have no problem hitting your evening load ALS today, however, this probably isn't something you want to focus on.

    You have pain around query response time? If Yes, you can watch how (and if) partitioning would improve some of the queries and most important reports. Or, perhaps, he would have you to allow users to do an ad hoc analysis more than you can't afford today because the cost would be prohibitive.

    Although you will find no doubt generic cost v. benefit whitepapers, it tends to make a much better case if you focus on what causes the pain of the company and what you as the application developers are willing to commit to. It is easy for a CIO watch a generic white paper saying "partitioning reduces ETL time up to 99%" and the question of what improvements he or she would have actually see and how this is marketing hype. It is much more difficult to look at a document put in place by the data warehouse team saying "partitioning would allow us to reduce the load of X of Y hours on Z hours every night. "That would allow us to hit our SLA w % more often without adding hardware / additional treatment for A project that we have been postpone / let Department B start to work with the data more early every morning / what causes the pain of the IOC. Of course, this means that he must be willing to make such commitments (and, of course, to meet).

    Justin

  • Obsolete devices in the AutoPlay list & several entries for the same devices II (how to remove Iphone in Autoplay device)

    I read the article "obsolete devices in the AutoPlay list & multiple entries for the same features" and did what they said on the registry change, but I can't seem to find what I'm looking for.

    I had an iphone and he sold on ebay, now in my autoplay menu, there is my iphone device listed in DEVICES. I would like to remove it, but there is no option to do this. I looked everywhere in the 'managers' and 'eventhandlers' regedit, but I can't find the name of my iphone or whatever it is about the iphone in particular. So I hope that someone could lead me in the right direction and it would be very appreciated. Is there a specific code or name for the iphone in regedit?

    Hi arande1a,

    I would like to know what article you're talking about, please give the link for the same.

    I suggest you try the following steps:

    Step 1: Disable Autorun

     

    (1) open AutoPlay by clicking the Start button, clicking Control Panel, on material and audio and then click AutoPlay.

    (2) turn off the AutoPlay use for all media and devices check box, and then click Save.

    Restart the computer and check.

    Turn on AutoPlay

     

    (1) open AutoPlay by clicking the Start button, clicking Control Panel, on material and audio and then click AutoPlay.

    (2) select the game to use automatic for all media and devices check box, and then click Save.

     

    http://Windows.Microsoft.com/en-us/Windows-Vista/Change-AutoPlay-settings

    Let us know if you find iPhone mentioned in the following registry key location.

     

    HKEY_LOCAL_MACHINE
    \CurrentVersion\Explorer\AutoplayHandlers\
    device management

    Important This section, method, or task contains steps that tell you how to modify the registry. However, serious problems can occur if you modify the registry incorrectly. Therefore, make sure that you proceed with caution. For added protection, back up the registry before you edit it. Then you can restore the registry if a problem occurs. For more information about how to back up and restore the registry, click on the number below to view the article in the Microsoft Knowledge Base:

    How to back up and restore the registry in Windows:

    http://support.Microsoft.com/kb/322756

    Thank you, and in what concerns:

    Ajay K

    Microsoft Answers Support Engineer

    Visit our Microsoft answers feedback Forum and let us know what you think.

  • How to set remote spaced further icon to display more text for the name below?

    Windows 7 desktop has many icons with similar names. I want that name under the icon. How to set remote spaced further icon to display more text for the name below?

    Right-click on the desktop and select Personalize.

    Select the color of the window

    Select the appearance settings advanced.

    Select the drop down next to the element

    Go down and select icon spacing (Vertical)

    change spacing next to size according to the needs.

  • Hi, PDF form of the guru. How to make a text box become a required field IF a drop-down list is selected as the "Yes"?

    Hi, PDF form of the guru.

    How to make a text box becomes a "required field", IF a drop-down list is selected as the "Yes"?

    and 'not required' if the drop down menu selected as 'No' or left blank.

    Any help would be greatly appreciated

    see you soon

    Use this code in the custom drop-down list field validation script:

    this.getField("Text1").required = (event.value == "Yes");

    (Change "Text1" to the actual name of your text field, of course)

  • Hi, how can I find my serial number. Information transferred by time capsule of MAC, unfortunately ex recording was fake email, no entry for the adobe ID

    Hi, how can I find my serial number. Information transferred by time capsule of MAC, unfortunately ex recording was fake email, no entry for the adobe ID

    I sent you the details required in private message.

    Please use link below to download Lightroom 6:

    Download Photoshop Lightroom

    Let me know if it helps.

    ~ UL

  • How can I make my default program for the Adobe Downloads?

    How can I make my default program for the Adobe Downloads?

    Set up the default program depends on the type of file you download, Ex:-PDF file open in Adobe Reader or Acrobat.

    The downloaded file is opened in the default program set on your computer for this file type.

    The steps may vary for Windows and Mac.

    Windows

    Right click on any file with the file type that you want to change the default program Ex:-Pdf,.

    Select 'open with '.

    and from the list select your application that you want to set default Ex: Acrobat

    Check the option on the bottom, "always choose this application to open this file type.

    Mac

    CTRL + click on any file with the file type

    Go to 'Get Info '.

    Modify the Application in the 'open with '.

    Select 'change everything '.

    Close window 'Get info '.

  • How to group by field derived for the field value below?

    Hi all

    I class field with the name of CLASS_FLD data item, I want to group by on left(CLASS_FLD,2).

    How to write him group by for the left(class_FLD,2) of expression above?

    I used earlier messages based on the syntax below but I am unable to make the Group

    <? for-each - group: row; xdoxslt:left(./CLASS_FLD,2)? > <? type: xdoxslt:left (current-group () / CLASS_FLD, 2); ' ascending '; data-type = "text"? >

    Thank you and best regards,

    1157496 wrote:

    Give me the syntax for the first group of lines BY expression counts.

    and also how the syntax would be if he is Businessunit group then group by expression (left(account,2)

    Mean you nested groups, first group BUSINESSUNIT and then other group ACCOUNT

    If yes then the internal group based on the ACCOUNT, we could watch as below

    for-each - Group: Current - Group (); xdoxslt:Left(./Account,2)? >

    For example

    . . . .

  • How can I exclude a level for the table of contents, but this amount as a bookmark?

    I know how to exclude a level for the table of contents (or rather include only levels I want to be included) and also how to create bookmarks from the table of contents entries, but how can I exclude a level for the table of contents, but always include it as a bookmark?

    Make 2 toc styles. One for the entries in the Bookmarks panel, you can generate a table of contents on the side of any page, and you must score in its definition to create bookmarks and other things that you use to build the table of contents for the visible part of your document to print. This should have unchecked the option create a bookmark in its definition.

Maybe you are looking for