With the help of text boxes and radio buttons

Hello!

I tried to make a small Manager application where the user writes his name is on a TextBox and selects her sex between the two options in radio buttons (female or male). These information apears inside a text on another screen. I tried desperately to organize the code to make this work, but I haven´t successful.  Anyone of you Director community could help me with this give me an idea of how do to solve this problem?

Thank you very much!!!

Philippa

I have downloaded a file that shows what you are trying to do - feel free to use all or part of it. Sorry, but I was not taking the time to comment the code for you - if you have any questions, ask at your

Tags: Director

Similar Questions

  • I have problems with the resizing of text box. I can only display width or height not both

    I'm new to Flash, I was able to create the text box and adjust the width and height, but now can only set the width. The box height is unusable. Did turn something off? I use the horizontal mode.

    Steve

    If you have the textfield value "Static Text", then the text space extends vertically so that it contains the text that you type in. You can adjust the width and height will change to accommodate the text content.

    If you change the "Input" or "Dynamic" textfield, then you will be able to resize the textfield that you want.

  • With the help of Master pages and blocks of text

    Hello

    I created a text frame on a master page and you have specified a style

    Can I add my custom text on the text block by pressing ctrl + Maj + text block.

    If I change the style, it applies to all pages.  But if I move or resize the text block on the page master it does not apply to all pages because it has become its own layer on this page.

    What do you do before you can change the text block and the master page and still be able to add your own content in pages that depend on the master page.

    Thanks a lot for your help

    Why do you need to replace the title of the page?

    Use either a text variable, a section marker or create another master page based on this master page with a different text in the placeholder. Only the content will appear on the pages, everything else, like running headers or page numbers or artifacts have a place on the master page without replacing them.

    When you later create accessible PDF or EPUB this difference is important. You can read high voice content in Acrobat for accessibility, that text on the page, not the master is used for this, and when you export an EPUB page only elements, not the master are included as it should.

    If you need text to expand, when something changes, create your page with margins and borders that will help to make changes later.

  • EXTRACT DATES WITH THE HELP OF TWO DATES AND THE BOX

    Hello

    I HAVE 2 DATE PICKER ITEMS
    : P1_ARRIVAL_DATE AND: P1_DEPARTURE_DATE

    AND I HAVE 7 ITEMS in BOXES DAY it return values are 'Y '.

    : P1_MON
    : P1_TUE
    : P1_WED
    : P1_THU
    : P1_FRI
    : P1_SAT
    : P1_SUN

    as I choose date: P1_ARRIVAL_DATE AND: P1_DEPARTURE_DATE
    AND THE DAY, AS: P1_MON, ONLY THE DATES HAVE TO RETURN WHO HAVE MONDAY AS DAY BETWEEN: P1_ARRIVAL_DATE AND: P1_DEPARTURE_DATE.


    FOR EXAMPLE IF I CHOOSE THE DATE: P1_ARRIVAL_DATE AS 07_NOV_2011 AND: P1_DEPARTUE_DATE AS: P22_NOV_2011 AND IT HAS 3 MONDAY BETWEEN THESE DATES
    RESULT SHOULD BE DISPLAY AS
    ======================================
     ARRIVAL DATE-------ARRIVAL DATE+6
    ============================
     07_NOV_2011 ---     13_NOV_2011       // THESE ARE MONDAY DATES
    14_NOV_2011 ---     20_NOV_2011     
    21_NOV_2011 --      28_NOV_2011 
    CAN I CHOOSE MORE THAN ONE CHECK BOX AT THE SAME TIME
    FOR EXAMPLE IF I CHOOSE: P1_MON AND: P1_TUE, THE RESULT SHOULD BE

    ARRIVAL DATE-------ARRIVAL DATE+6
    ============================
     07_NOV_2011 ---     13_NOV_2011   
     08_NOV_2011 ---     14_NOV_2011      
    14_NOV_2011 ---     20_NOV_2011      // MONDAY AND TUESDAY DATES
    15_NOV_2011 ---     21_NOV_2011  
    21_NOV_2011 --      27_NOV_2011
    22_NOV_2011 ---     28_NOV_2011 
    HOW CAN I DO THIS? PLEASE HELP SOLVE THE PROBLEM.



    THANKS and GREETINGS
    CORINE

    X the problem you see is a misunderstanding on my part about what is the date of arrival date of departure... it's inverse reasoning: at your arrival is before departure (and I got it on the other hand, the departure before arrival (:-))

    But there is also a flaw in the code (instead of the Date of arrival by using the select sysdate).

    Please run the code like this:

    with dates as
    (select to_date(:P1_ARRIVAL_DATE,'DD-MON-YYYY')+level-1 as day from dual
     connect by level <= to_date(:P1_DEPARTURE_DATE,'DD-MON-YYYY') - to_date(:P1_ARRIVAL_DATE,'DD-MON-YYYY')  +1
     )
    select day, to_char(day,'Dy') from dates
    where to_char(day,'Dy') = 'Mon' and :P1_MON = 'Y'
    union
    select day, to_char(day,'Dy') from dates
    where to_char(day,'Dy') = 'Tue' and :P1_TUE = 'Y'
    union
    select day, to_char(day,'Dy') from dates
    where to_char(day,'Dy') = 'Wed' and :P1_WED = 'Y'
    union
    select day, to_char(day,'Dy') from dates
    where to_char(day,'Dy') = 'Thu' and :P1_THU = 'Y'
    union
    select day, to_char(day,'Dy') from dates
    where to_char(day,'Dy') = 'Fri' and :P1_FRI = 'Y'
    union
    select day, to_char(day,'Dy') from dates
    where to_char(day,'Dy') = 'Sat' and :P1_SAT = 'Y'
    union
    select day, to_char(day,'Dy') from dates
    where to_char(day,'Dy') = 'Sun' and :P1_SUN = 'Y'
    

    for the period from 01 to 15 November 2011, with P1_TUE and P1_FRI, flag in there, I got this result:

    DAY      TO_CHAR(DAY,'DY')
    11/01/2011     Tue
    11/04/2011     Fri
    11/08/2011     Tue
    11/11/2011     Fri
    11/15/2011     Tue
    

    To simplify (can only test inside the apex report, could not run code in SQL Wkshop):

    with dates as
    (select to_date(:P1_ARRIVAL_DATE,'DD-MON-YYYY')+level-1 as day from dual
     connect by level <= to_date(:P1_DEPARTURE_DATE,'DD-MON-YYYY') - to_date(:P1_ARRIVAL_DATE,'DD-MON-YYYY') +1
     )
    select day, to_char(day,'Dy') from dates
    where v('P1_'||to_char(day,'DY')) = 'Y'
    

    Published by: Kléber M on November 14, 2011 05:06

  • With the help of text and buttons movieclips as buttons to point to the same layered framework?

    I'll have a terrible time with the 3.0 AS and animating CC 2015.2 in this project.  I was given a suggestion, but now I'm so confused output errors that I hope to get answers from you advanced people.

    The project is similar to this:

    Identify the Structure of the trees

    Framework 1 - nothing selected, visible instructions

    Frame 2 - Select sheets by clicking on the image (tree top or bottom) or text, leaves description becomes visible

    Frame 3 - branches select by clicking on the image (tree top or bottom) or text, description branches becomes visible

    Frame 4 - trunk select by clicking on the image (tree top or bottom) or text, description of trunk becomes visible


    Suggestion is:

    Do the video clip of each region of image tree and drop it on the layer smaller on top with alpha 0%

    Create a badge of the clip, and then tap on timeline with each framework has put in evidence and description

    Make the text button, then tap chronology framework with each has put in evidence and description

    Trunk frame – more small area place top layer

    Branches Frame - smaller than the leaves but superior to the place of the trunk between the two

    Framework of leaves - most square of the area on the layer under the Branches

    Can anyone offer any suggestions?  I used to program 5.5 Flash with Actionscript 2.0, but difficulties with Animate and Actionscript 3.0.  I don't know if I have to use swaps or specific images, but when viewing, he travels all frames without stopping even if each image as the AS command stop ();

    Thanks in advance!


    Rick

    Tree-Example.png

    Yes, if your buttons or movieclips, overlap one on top Gets the default click event. So, if you decide to create separate movieClips or separate buttons, be sure to give everyone an exclusive space.

    One approach I've used in the past for such things is to open the work, the tree in Photoshop then "cut" art into segments and put each segment in a different layer in Photoshop. Then you can import that art directly in to animate and each layer will import under a separate post. Then you can combine them into a movieClip to a work of art on the stage. From there, you can select each segment and each a movieClip or button you want.

  • Please help with the creation of text box

    Hi all

    I'm new in FLEX 4, embarrassed so please excuse my questions.

    What I want to do is to create a button that inserts a text box on my canvas, whenever it locks.

    How would I do that?

    Thank you very much

    Tried your code. Got a popup saying:

    Error: addChild() is not available in this category. Instead, use addElement(), or change the skin, if you have a.

    MyCanvas.addChild (myRichEditableText) has changed; at myCanvas.addElement (myRichEditableText); and it worked.

    But you must use a HGroup, a VGroup or a TileGroup instead of a BorderContainer... You wouldn't have the x value and y the text manually box.

  • With the help of several classes and create an object of a class and calling its method in a different class.

    Creating a new class, I need to move my main method class SaveDate DynamicTest class. Below I've listed the code of both classes. The goal is to be able to run my class DynamicTest program. I need help to understand the process of moving my main method of a different class and creating an object of a class and calling its method.

    public class {SaveData

    private public static final map < String, Object > myCachedTreeMap = new TreeMap < String, Object > ();

    public static final List < String > getLines (final String resourceParam, final Charset charset) throws IOException {}

    System.out.println ("please:" + resourceParam);

    If {(myCachedTreeMap.containsKey (resourceParam))

    Use the file cached, to avoid a further reading.

    System.out.println ("found in memory:" + resourceParam);

    }

    else {}

    Load the file from the disk

    System.out.println ("found in memory:" + resourceParam);

    }

    Returns a null value.

    }

    Public Shared Sub main (String [] args) throws IOException {}

    String target_dir = "C:\\myfiles\\config\\en";

    Line = "C:\\myfiles\\config\\en\\output.txt";

    File dir = new File (target_dir);

    File files [] = dir.listFiles ();

    If (file == null: files.length < 1) {}

    System.out.println ("file list is empty...");

    return;

    }

    Open the Printwriter

    PrintWriter OutputStream = new PrintWriter (output);

    try {}

    for (textFile file: files) {}

    If (textFile.isFile () & & textFile.getName () .endsWith (".txt")) {}

    readFromDisk (textFile);

    }

    }

    }

    {Finally

    outputStream.close ();

    }

    String fileNameFromCache = "en_synonyms.txt";

    Sheet1 = myCachedTreeMap.get (fileNameFromCache) object;

    System.out.println (fileNameFromCache + ": \n" + "Sheet1");

    }

    @SuppressWarnings ("resource")

    private static Sub readFromDisk(File textFile) throws FileNotFoundException, IOException {}

    BufferedReader InputStream;

    inputStream = null;

    String content = "";

    try {}

    inputStream = new BufferedReader (new FileReader (textFile));

    content = readFile (textFile);

    System.out.println ("bytes read =" + content.length ());

    Save the content

    FileContentsObject Sheet1 = new FileContentsObject (System.currentTimeMillis (),

    textFile.lastModified (), content,

    textFile.getName (),

    getLines (null, null));

    Add to the map

    myCachedTreeMap.put (textFile.getName (), Sheet1);

    }

    {Finally

    If (inputStream! = null) {}

    inputStream.close ();

    }

    }

    }

    private static String readFile(File f) throws FileNotFoundException, IOException, UnsupportedEncodingException {}

    Text of StringBuilder = new StringBuilder (1024);

    read int, N = 1024 * 1024;

    char [] buffer = new char [N];

    BufferedReader br = null;

    try {}

    BR = new BufferedReader)

    (new) InputStreamReader

    (new FileInputStream (f), 'UTF8'));

    While (true) {}

    read = br.read (buffer, 0, N);

    If (read > 0)

    Text.Append (new String (buffer, 0, read));

    if(Read < N) {}

    break;

    }

    }

    }

    {Finally

    If (br! = null)

    Br. Close();

    }

    Return text.toString ();

    }

    private static final class FileContentsObject {}

    private long cachedTime; currentTime

    private long lastModifiedTimestamp;

    private string content

    List < String > lines;

    private String fileName;

    public FileContentsObject (long cachedTime, long lastModifiedTimestamp,

    Content string, String fileName, List < String > lines) {}

    this.cachedTime = cachedTime;

    this.lastModifiedTimestamp = lastModifiedTimestamp;

    This.contents = content;

    this.fileName = filename;

    This.Lines = lines;

    SimpleDateFormat sdf = new SimpleDateFormat ("MM/dd/yy hh: mm :"); ")

    System.out.println ("time & Date:" + sdf.format (cachedTime));

    System.out.println ("' last modification timestamp:" ")

    + sdf.format (lastModifiedTimestamp));

    }

    /**

    *

    * @return the lines of the file

    */

    List < String > getLines() {}

    Return this.lines;

    }

    public String toString() {}

    "return"Sheet1 {}"+" fileName =' ' + filename + '------"+", content = "" "

    + content + "\"+ ", lastModifiedTimestamp ="

    + lastModifiedTimestamp + ', CurrentTime & Date ='

    {+ cachedTime + '}';

    }

    }

    }

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

    public class DynamicTest {}

    Public Shared Sub main (String [] args) {}

    Game characters charset = Charset.forName("UTF-8");

    try {}

    List < String > = CacheData.getLines lines ("en_synonyms", character set);

    If (rows! = null) {}

    System.out.println ("number of rows:" + lines.size ());

    for {(String ligne: lines)}

    System.out.println ("DynamicTest:" + line);

    }

    }

    } catch (IOException e) {}

    e.printStackTrace ();

    }

    try {}

    List < String > = CacheData.getLines lines ("en_stopwords", character set);

    If (rows! = null) {}

    System.out.println ("number of rows:" + lines.size ());

    for {(String ligne: lines)}

    System.out.println ("DynamicTest:" + line);

    }

    }

    } catch (IOException e) {}

    e.printStackTrace ();

    }

    }

    }

    I have read and watched videos about the creation of an object of a class and calling its method in a different class. I'm still confused on how to do it properly. By using the code below if someone can explain how to properly call the method of objects from my hand.

    Huh? You have NOT posted any 'hand' or any 'method of objects '.

    If you need help with the code, you need to view the code.

    The Java tutorials has dozens of trails "Classes and objects": what they are, how to create and how to use them.

    https://docs.Oracle.com/javase/tutorial/Java/javaOO/classes.html

    1. create an instance of a class

    2. call to one or more of the public methods of this class

    If the class has public static methods, you don't need to create an instance first.

    I suggest that you work your way through these tutorials. They include the WORKING example code.

  • With the help of RIGHT, LEFT and replace it and get really strange results!  Help!

    Hi all -

    I need help with this one.  I am writing a script that analyzes the header and the footer of a HTML document saved well enough, so I have only the middle of it (this is a quote from folder) and then re-recorded it in a new file.  The header parsing (left) works perfectly, but when I get to the foot of the page (to the right), it rips everything except the header for some reason any!  So I end up getting a file that is more or less the header and the footer, but not meat the citation record.

    Here is my code:

    <! - read file - >
    < cffile action = "read" line = "" #filestoragelocation #/ #cffile.serverFile # "variable ="quotecontent">"
    <!--delete header - >
    < cffile action = "read" line = "" #templatelocation #/ remove1.html ' variable = "bannerold" > "
    <! - Add new header - >
    < cffile action = "read" file = ' #templatelocation #/ add1 - 1.html "variable ="bannernew">
    <! - replace data - >
    < cfset quoteedit = Replace (quotecontent, (quotecontent, (bannerold, quotecontent) find) LEFT, bannernew) >
    <! - bannerdone - >

    <! - update footer - >
    < cffile action = "read" line = "" #templatelocation #/ remove2.html ' variable = "oldfooter" > "
    < cffile action = "read" line = "" #templatelocation #/ add2w.html ' variable = "newfooter" > "

    < cfset quoteedit = Replace (quoteedit, (quoteedit, (oldfooter, quoteedit) find) RIGHT, newfooter) >
    <!-< cfset quoteedit = Replace (quoteedit, oldfooter, newfooter) - > >
    <!--> write file
    < cffile action = "Write" line = "" #filestoragelocation # / m #cffile.serverFile # "output =" #quoteedit #">"

    Pretty much what I've done with BannerOld and OldFooter is a tag in the code that is in the document once (with the banner, its an image, with the footer, text ("the terms of the CO")... and hypothetically, to the left, I should be selecting the banner image and its replacement) , and entitled, I should be select all after the text and its replacement.

    For some reason, instead, I just get the new banner and footer in the final document.  If I remove the code to the footer, it works perfectly (with, of course, the old foot to still be here).

    I'll probably just have some silent monitoring here... but little help would be amazing.  Thanks as always guys!

    I

    You say that the first part works so I'll take your Word for that, although it does not look good.

    The second need party probably does not work because youre calculate the right of X characters, but you count tanks by finding the index of your discovery early on.  So imagine you replace the first 10 characters of your new head.  Your doc is total 100 characters.  You want to replace the last 10 characters. Your search returned 90 because you started from the beginning.  You take the right 90 tanks, taking you at the end of the header, and you replace it with the footer.

    What you want is replace (quoteedit, RIGHT (quoteedit,Len (quoteedit)- find (oldfooter, quoteedit)), newfooter).  It should work.

  • With the help of check box in number to add/subtract a value of 0.5

    Hello

    I use a formula that calculates working hours daily and then subtract a half hour for lunch if a check box is selected. The formula applies with the exception of the time 0.5 being added or subtracted. Any ideas? The box strives to subtract the Boolean value (0 or 1), I just need this value to be represented as 0.5 If you get my drift...

    Thanks in advance!

    Tender Hello,

    Formula in D2 (fill down)

    = B2−a2−if(C2,"0.5H","0h")

    Kind regards

    Ian.

  • Problems with the help of text results in a table

    I am trying to create a script that returns a value based on a persons in a field name, but it does not work for me.

    This is the document level script:

    Here is the script I am trying to use it to get the variables (with the '0', I'm trying to shoot the first number in the table which is the age):

    event.value = personStats(getField("PersonName1").valueAsString)[0];
    

    Where "PersonName1" is the field that contains the name.

    This is the document level script that I use:

    var personStats = { 
        "Jim Bean" : [45, brown, 70, 175], 
        "Nancy Cardashian" : [36, black, 68, 122], 
        "Bobby Gentry" : [72, grey, 71, 165], 
        "Megan Foxx" : [28, black, 67, 126] 
    }
    

    and here is the error I get:

    personStats is not a function

    1:acroform:fumble Range 0:Calculate.

    TypeError: personStats is not a function

    1:acroform:age Range 0:Calculate.

    I hope someone can help. George?...

    Bruce

    Acrobat forms use a variant of JavaScript and adds a few objects, properties and methods added.

    You use is not the correct syntax to remove the element of the personStats object.

    Get the element that corresponds to the name of the person the subject form;

    Event.Value = personStats [this.getField("PersonName1").valueAsString];

  • Problem with the pdf export: text box becomes visible

    When I export to pdf format, sometimes a text box lines become visible. In Indesign, I put them in transparent, so you don't see them here. But after an export to PDF, they are visible in the form of thin white lines. I tried to export to EPS and also here it gives white lines: the borders of a text box. Seems not all the text boxes. But sometimes one or two.

    So let me assure you... it will DESTROY the quality.

    Bob

  • With the help of QuickBooks 2011 and having installation problems.

    After working for 3 hours was advised to run sfc/scannow. Same message re:cbs.log-> corrupted files found but impossible to access and read the CBS.log newspaper

    Looks like your system is quite incoherent - and given the details to date...

    Backup your stuff (anything you want to keep/need to keep) and all have the installation media you'll need * loan * and restore to the factory settings.  Then update Windows Vista with the latest service pack.  Then update the drivers of the hardware device to the manufacturers of your hardware.  Then install your software.  Then all the other updates.

  • With the help of linux deepin and Thunderbird does not pick up time correct system.

    The system time is set correctly for my time zone, but it turns out that no matter what I put the time system; Thunderbird ignores and default time is GMT. I am fully updated both deepin and Thunderbird.

    that shows the TZ environment variable you Linux distro?

  • With the help of a page and write to two tables?

    Request Express 3.1.0.00.32


    I have 2 pages each point at their own separate table. All things considered, the two pages can be combined into a single, but the structure of the table must remain intact.

    I copied the region of page 2 on page 1, them flowing properly so that the user does not have a problem, enter the information in the form.

    However I'm unable to have the information entered to engage in two different tables.

    All the information in table 1 (page 1) will save however will not be the information in the region on the page 2 (table 2). I've referenced the source as the page element (P3_EMP_ID), as well as the name of table.column and have had no luck.

    Is this possible and how?

    Hi Leland,

    You should look into the clause of the insert statement VOTE: http://download.oracle.com/docs/cd/B19306_01/server.102/b14200/statements_9014.htm#i2171131

    Or, on a line of the XXX process on a form, you also have a key to return to the setting of the article - if you have this process, you can enter P23_PK_PROJ_MASTER_ID
    in there.

    Andy

  • OfficeJet 4630: brand new officejet 4630 with the problem of black ink and ok button does not work

    Hello! Today, I bought a new printer, officejet 4630 and it included ink cartridges in the box.

    ISET it upward as the sheet in the box said. After I had filled in date etc, I put in the ink (and Yes, remember to check it was compatible and take the Ribbon), then this message showed on the screen and still doesn't work:

    "Problem of ink cartridges. The following ink cartridges need to be replaced"and a black dot.

    The cartridges were brand new and came in the same area as the printer.

    I tried a reset (taking the power cord, wait 60 s etc) I saw in the Hp support you need to press 'ok' to get rid of the message before restarting. I can't press ok. It sounds right. I press any button.

    Suggestions? Of course, I can try it with a new cartridge, but to pay $20 for a new cartridge, when it was included in the box and should work is not correct.

    Hi @Candykuma,

    Welcome to the HP Forums!

    I understand that you ar get the error, the "problem of ink cartridges. The following ink cartridges need to be replaced"with your black cartridge on your printer HP Officejet 4630. I am pleased to address this error of cartridge for you!

    Please, try the steps in this guide, a "missing cartridge", 'cartridge problem,' or 'not compatible ink cartridges' Message error for HP Officejet 4630 and HP Deskjet Ink Advantage 4640 e-all-in-one printer series.

    If this guide does not solve your problem, please Contact HPtelephone support for further assistance, as the ink cartridges are under warranty. (After you fill out the information, you will receive a phone number.) If you do not live in the United States / Canada region, please click the link below to get help from your region number. Language-country selector.

    Good luck!

    "Please click the Thumbs up icon below to thank me for having responded."

Maybe you are looking for

  • Can I set up sync on a computer that is used by others and not share my information?

    I use a computer which I share with others. Any one elses action will appear on my sync account. Can I connect if you use Firefox sync on this computer?

  • Unknwn Device device ACPI\HPQ6007\3 &amp; 11583659 &amp; 0

    Hello I have this laptop of HP ENVY 17 TS Serial number is [redacted] product no is F5D55EA #ABU I have lost my windows recovery disk and managed to reinstall windows 8.1 but I have a missing driver Unknwn Device Device ACPI\HPQ6007\3 & 11583659 & 0

  • update BIOS - f019wm

    Hello Today, I received a prompt of the bios update but kind of fear go through with it after having already past the first few days with this phone call is supported on an update of bios and wifi problem. It is absolutely necessary, or if I wait a w

  • Question about the use of the ABR program to activate a downloaded Windows 7

    Dell Inspiron N7110.  Hard drive failure.   Recovery disks did not actually home.  Download Windows 7 Home Premium Digital River.  Everything works fine.  Tried to install Microsoft Office 2010 Microsoft also downloaded without success.  I guess this

  • Cannot burn DVD in Windows DVD Maker

    Hello I'm burning a couple of files wmv to a DVD. The two files together last about 5 minutes on a 120 minute DVD - RW. When I open Windows DVD Maker and import the two files, DVD Maker goes through the burning process, but towards the end DVD Maker