Using TextInput boxes to change to small Caps lettering with NO ....

Using two TextInput boxes (fName and lName) which are writting at the same time over to a (fullName) Text box, BUT change the data in here automaticly to 'small Caps' lettering with NO spaces.
I'm finding all sort of things but nothing close enough.Any help would be appriciated!
Thanks in advance aktell

How about this:
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute">
    <mx:Script>
        <![CDATA[
            protected function name_changeHandler(event:Event):void {
                var firstName:String = fName.text.toLowerCase();
                var lastName:String = lName.text.toLowerCase();
                fullName.text = firstName + lastName;
        ]]>
    </mx:Script>
    <mx:Label x="156" y="74" text="first"/>
    <mx:TextInput x="199" y="72" id="fName" change="name_changeHandler(event)"/>
    <mx:Label x="156" y="104" text="last"/>
    <mx:TextInput x="199" y="102" id="lName" change="name_changeHandler(event)"/>
    <mx:Text x="199" y="132" text="Text" id="fullName"/>
</mx:Application>
I think this does what you were asking for.
Chris

Similar Messages

  • Writing small cap letters with caps lock on

    Hi,
    I will like to know how to write small cap letterings with cap locks on.
    In window, just need to hold on to shift while in caps lock, I will be able to write small cap lettering such as "HellO"?
    Any advise from anyone will be deeply appreciated.
    Thank You.

    Normally that's the way it works on the Mac.  Maybe you are using some software that doesn't support it.

  • Do you use Virtual Box VM... Please help with this.

    hey everyone I'm extremely new with all this stuff...
    I have a iMac 10.5.4 with the most current version of Virtual Box.
    When i load Virtual Box everything is rocking and extremely cool... but after an hour or so my network/server connections dies off on the mac side.
    when i go to GO >> Connect to Server >>
    smb://ipaddress
    I get this pop up...
    error connecting to the server >>
    I click OK and i get an error code -36
    the only way for me to connect again to the server is to shut down everything and restart the iMac it works just fine and i load VB back up and than everything works for about another hour or so and than i have to restart everything again.
    any clues to my issue?
    thanks for helping a newbie!
    cp

    ...but since you are learning, and would like to know where was the bug, I tried your code and updated it.
    The only two small problems I found:
    1. You have a while loop that checks if there are more tokens.. it's not needed and this while loop will only run because by the second run, you would have consumed all the tokens in the for loop, check would fail and while loop will be exited. [I have removed this while loop in my version below]
    2. Now, here is the bug:your for loop has a condition that evaluates (i < st.countTokens()).
    Now count tokens will only return "remaining" tokens. Assuming test string "this is a test", countTokens return 4. Then as you consume the first token, it is 3, then 2 then 1. All this while for loop's i is going 1,2...
    i = 0, countTokens = 4
    i = 1, countTokens = 3
    i = 2, countTokens = 2, check fails, and for loop is exited.
    So all you have in your array is first two tokens. Rest of the array is null as it was when you created the array.
    So then when you loop back and check index 3,2,1,0.. 3 and 2 elements are still nill, that's why you get the result you are getting.
    Here is the fixed code:
    String sentence = "this is second test"; //String variable to hold user input
    String output = ""; //String variable to enable display of output
    String buffer = "";//String variable to hold output
    st = new StringTokenizer(sentence);
    int tokenCount = st.countTokens();
    //Array to hold tokens
    String tokenHolder[] = new String[tokenCount];
    //Walk through the tokens
    for (int i = 0; i < tokenCount; i++)
         tokenHolder[i] = st.nextToken();
    String reversedTokens[] = new String[tokenCount];
    //Walk through the array in reverse
    for (int j = tokenCount-1; j >= 0; j--)
    //Add the reversed token to the ouptut string
    output += tokenHolder[j] + " ";
    System.out.println(output);
    }

  • Use Mac to make changes to iWeb Sites created with MacBookPro

    I created two web sites on my MacBook Pro and would like to do additional work on them using my Mac desktop. The sites are saved on my MobileMe account. I launch iWeb on the Mac desktop and can't see the other Sites. How can I work on these with both computers?

    Welcome to the Apple Discussions. You will need to copy the Domain.sites2 file from the your User/Library/Application Support/iWeb folder on your MBP to the same folder on your Mac desktop. If you don't have such a folder on the desktop Mac just create it.
    If you plan on moving between computers frequently for managing the sites put the domain file on a flash drive formatted for OS X Extended (journaled) and open the file on that.
    Or you can try the method described in this online MacWorld article Managing an iWeb site from multiple Macs
    Be sure to read the warnings in the linked page from the article.
    OT

  • How do I change caps of an OpenType font to small caps in my InDesign cc document?

    Greetings, Community. It would be great if I could discover how to change caps of an OpenType font to small caps in my InDesign cc document. That's the simple question.
    To be more exact, I have an 18-page play that contains stage directions in caps in parentheses, which I would like to change to small caps. The font I'm using is an OpenType, Minion Pro, with small caps.
    Another thing is, I'd ideally like to be able to do that without changing all caps in the document, and also, to not have to convert the caps to lower case in order to do it.
    My source document (which I Placed in my InDesign document) is Microsoft Word 2011 for Mac.
    I did go to Microsoft to find out how to do it in Word, but could only find a solution for Word for Windows.
    I did try their solution anyhow (a macro) but it didn't work.
         Thanks a lot. It's great being in InDesign even though I had my good years with QuarkXpress, which eventually became impossible for me.
         Morty Sklar

    Is this what you're talking about, Michael? Where do I paste it? (The whole thing?)
         Morty
    // Change case interactively. Find/change options should be set in InDesign's Find/Change window.
    // Peter Kahrel -- www.kahrel.plus.com
    #targetengine "change_case";
    create_palette().show();
    function create_palette ()
        var w = Window.find ("palette", "Change case");
        if (w === null)
            return create_palette_sub ();
        return w;
    function create_palette_sub ()
        var changetype;
        var w = new Window ("palette", "Change case", undefined, {resizeable: true});
            w.alignChildren = "fill";
            var options = [ChangecaseMode.lowercase, ChangecaseMode.uppercase];
            var rb = w.add ("panel");
                var upper_to_lower = rb.add ("radiobutton", undefined, "A > a");
                var lower_to_upper = rb.add ("radiobutton", undefined, "a > A");
            var smallcaps = w.add ("checkbox", undefined, " Apply SC");
            var b = w.add ("group {orientation: 'column', alignChildren: 'fill'}");
            var find = b.add ("button", undefined, "Find");
                var change = b.add ("button", undefined, "Change");
                var change_all = b.add ("button", undefined, "Change all");
                var change_find = b.add ("button", undefined, "Change/find");
            if (app.findGrepPreferences.findWhat.indexOf ("\\u") > -1)
                upper_to_lower.value = true;
                changetype = ChangecaseMode.lowercase;
            else
                lower_to_upper.value = true;
                changetype = ChangecaseMode.uppercase;
            upper_to_lower.onClick = function () {changetype = ChangecaseMode.lowercase};
            lower_to_upper.onClick = function () {changetype = ChangecaseMode.uppercase};
            var found, found_counter;
            find.onClick = function () {
                if (this.text === 'Find') {
                    found = app.documents[0].findGrep();
                    if (found.length > 0){
                        found_counter = 0;
                        find.text = 'Find next';
                        show_found (found[found_counter]);
                    } else {
                        alert ("No (more) matches found.");
                } else {
                    found_counter++;
                    if (found_counter < found.length){
                        show_found (found[found_counter]);
                    } else {
                        find.text = 'Find';
                        alert ("No (more) matches found.");
            change.onClick = function () {
                found[found_counter].changecase(changetype);
                if (smallcaps.value == true) {
                    found[found_counter].capitalization = Capitalization.smallCaps;
            change_find.onClick = function (){
                if (found_counter < found.length){
                    found[found_counter].changecase(changetype);
                    if (smallcaps.value == true) {
                        found[found_counter].capitalization = Capitalization.smallCaps;
                    found_counter++;
                    if (found_counter < found.length){
                        show_found (found[found_counter]);
                    } else {
                        alert ("No (more) matches found.");
            change_all.onClick = function () {
                for (var i = found_counter; i < found.length; i++) {
                    found[i].changecase(changetype);
                    if (smallcaps.value == true) {
                        found[i].capitalization = Capitalization.smallCaps;
            w.onDeactivate = w.onActivate = function () {find.text = 'Find'}
        return w;
        } // create_palette_sub
    function show_found (f)
        if (f.parentTextFrames.length === 0)  // If in overset text
            app.activeWindow.activePage = find_page(f.parentStory.textContainers[0].endTextFrame);
        else
            f.select();
            app.activeWindow.activePage = find_page (f.parentTextFrames[0]);
    function find_page(o)
        if (o.hasOwnProperty ("parentPage"))  // CS5 and later
            return o.parentPage;
        else
            return find_page_classic(o)
    function find_page_classic (o)
        try
            if (o.constructor.name == "Page")
                return o;
            switch (o.parent.constructor.name)
                case "Character": return find_page_classic (o.parent);
                case "Cell": return find_page_classic (o.parent.texts[0].parentTextFrames[0]);
                case "Table" : return find_page_classic (o.parent);
                case "TextFrame" : return find_page_classic (o.parent);
                case "Group" : return find_page_classic (o.parent);
                case "Story": return find_page_classic (o.parentTextFrames[0]);
                case "Footnote": return find_page_classic (o.parent.storyOffset);
                case "Page" : return o.parent;
            catch (_) {return ""}

  • Change Small Caps Cap Height?

    Is there a way to change the small caps cap height, both when there are no dedicated small caps and when there are?

    No.
    Edit > Preferences > Advanced Type > Small Cap adjusts the *size* (width as well as height) of generated small caps. True small caps are presented the way the font designer intended, not at the size you put in Preferences.
    There's nothing to stop you from making your own small caps character style with the vertical scale (or vertical and horizontal scale) adjusted however you like. PITA, though, applying this to only lower case letters.
    BTW, and you probably know this but I'll mention it anyway: true small caps are drawn for their size. IOW, the letterforms are thicker, proportionately, than their full-caps counterparts. The reason people think true small caps look better than generated small caps is because generated small caps are 70% (or whatever) smaller everywhere. Generated small caps look thin, and the smaller they get the thinner they look. True small caps look appropriately thick. Sizing them differently from the font designer's intent subverts this perfection.
    Ken

  • CS4 small caps size and tracking

    Found something annoying. Maybe someone can confirm it (or explain it?)
    before I file a bug report. I'm using 6.01.532 on Windows XP SP2.
    Set some type in full/small caps using a font that doesn't have true
    small caps. Change the small caps size to something ridiculous (like
    30%) in Preferences and you should be able to see the change when you
    okay Prefs. Now set some tracking on the type and try to change the
    small caps size in Preferences again.
    Does your type show the change, or does it ignore your setting in
    Preferences?
    Kenneth Benson
    Pegasus Type, Inc.
    www.pegtype.com

    Thanks, Peter
    I can't duplicate it today. I did try restarting ID yesterday (and it's
    been restarted again this morning), and it was showing up yesterday only
    hours after trashing prefs due to a different problem (that was fixed by
    trashing prefs). Mystery.
    Kenneth Benson
    Pegasus Type, Inc.
    www.pegtype.com

  • Office 2013 RTM: STILL no true small caps: WHY? WHY? WHY?

    I have just un-installed the Office 2013 Preview, and installed the Office 2013 RTM 60-day trial.
    I had hoped that between the two versions, the issue of missing true small caps in Word had been addressed. But no. Whilst Word 2013 supports OpenType ligatures and OpenType stylistic sets and OpenType old-style numbers and and and, it STILL DOES NOT SUPPORT
    TRUE SMALL CAPS. Yes, it has a small caps function, but this just reduces the size of the font, instead of using the dedicated small caps letters included in a lot of OpenType fonts. What's the difference? The difference is that with true small caps, the stroke
    width of upper case, lower case and small caps letters match, whereas in the cheapy, flimsy, yucky version that Office only offers, the small caps letters are thinner than the normal letters of that font - obviously so, as they are merely shrunken.
    Try it for yourself. Type something like "AaMmXx" in an OpenType font with small caps, say, Calibri or Gabriola, at, say, 24pt, in Word 2013 and in Publisher 2013, and apply small caps in each, and print them. Compare the stroke widths. See what I mean?
    Publisher does true small caps. Word doesn't.
    So, why, Microsoft, why, oh why, oh why, when other typographical features (ligatures, stylistic sets, etc. etc. & so 4th) are supported in Word 2013, are small caps not? I just don't understand it. Why? Are small caps held to be something that only
    professional typesetters should be allowed to use with typesetting programs like Publisher, whereas ordinary folk with Word shouldn't? Or is it trick to boost sales of Puiblisher? Or did no-one think about it? What is it? Because it's very annoying!

    Well, in the second place, inserting characters via Insert Symbol is a pain in the posterior, and, of course, the spell checker doesn't recognise them. But in the first place, that only works if the font author has been thoughtful enough to give the small
    caps glyphs Unicode code points, say, in the Private Use Area (like in Calluna). Normally, however, they don't - the small caps glyphs are only accessible via a small caps function, as lacking in Word. Excel is worse - apparently, Microsoft think that OpenType
    advanced features ought not to be used in spreadsheets.
    So having found fonts with small caps, the only way to use them is to use a font program either to assign the small caps glyphs to PUA code points, or to put them in a separate font (which at least means that other applications and spell checkers can use
    them).

  • In Acrobat, is there a way to have a form field use small caps in place of lower-case text?

    I found java script online that will force a field to be all caps (using it in the format tab > custom format script). But I have not been able to find anything to change the lowercase text to small caps. Anyone know how to do that (or if it just can't be done in Acrobat)?

    But if you use a "small CAPs" font, you need to be sure the font is fully embedded in the PDF. If not, it is likely that users will not be able to use your form.

  • Change small caps to all caps (was: Scripting help)

    Hi All
    I am working with an ID script in CS3 and I am trying to write some script (to add to an exsiting scipt that I am using) that will change small caps to all caps for some ID documents I am converting.
    Sorry it's probably very easy to do but I'm fiarly new to using scipts!
    Thanks for any help with this.

    Hi All
    Sorry as I said I'm new to using and writing scripts!
    The script (Java script) I am using was supplied to me by someone else and I am mainly just tweaking it.
    The script is being used to mainly find character and paragraph styles and change them from one style to another.
    As I have a lot of files with quite a few different styles to change the script is saving heaps of time.
    The small caps that I am trying to change are in a character style and I need to if possible change them to normal caps that isn't a character style in most circumstances although there are places where they need to be a certain bold or italic character style.
    The script is mainly using GREP search to find and change the various character and paragraph styles and the script I have tried so far is:
    grep
    {appliedCharacterStyle:"Chapter Small Caps (A+B)"}
    {appliedStyle:"All Caps"}
    {includeFootnotes:true, includeMasterPages:true, includeHiddenLayers:true, wholeWord:false}
    Apply body Text Indent para Style to all.
    The small caps need to be changed in several different character styles.
    I hope this makes it a bit clearer what I'm trying to do

  • How can small caps be used in Flash CS5?

    Garamond Premier Pro includes small caps. When I select that font in  Flash I can't see a way to select the small caps. An earlier discussion  says that they are not supported in CS4. Are they supported in Flash CS5? How do I select them in Flash  CS5? Thanks.

    Hi,
    Could you please let us know on which text component do you intend to use Squiggly?? Squiggly is a Action Script 3.0 Library which currently supports few UIComponents like:
    MX components: TextArea, TextInput and RichTextEditor
    Spark components: TextArea and TextInput
    In addition it supports TLF TextFlow.
    Thanks
    Utsav

  • My Safari will not allow me to open my Google calendar with Google Apps. I have to open my email with the older version of Google Apps. This happened after I installed 5.1.4. I tried to use the fix of changing to 64 bit by unchecking the 32 bit box no go

    My Safari will not allow me to open my Google calendar with Google Apps. I have to open my email with the older version of Google Apps. This happened after I installed 5.1.4. I tried to use the fix of changing to 64 bit by unchecking the 32 bit box but that didnt help.

    I assume that there are legal restrictions on the way in which iTunes can get artwork automatically from any source apart from the iTunes Store (which is what the right-click > Get Album Artwork function uses).  For example, even though the Gracenote service that iTunes uses to match CDs and retrieve metadata (artist, album, track titles, etc.) also has artwork functions, iTunes does not make use of these.
    For manual addition of artwork, there are three cases where the image you select may not be correctly embedded in your media files:
    your media are in a format that doesn't accommodate embedded artwork - typically WAV files.  To embed artwork you'll need to convert to another format - Apple Lossless or AIFF if you want to preserve lossless quality, AAC or MP3 otherwise.
    your media files are read only - to fix this, use Windows Explorer to find the folder that contains your files, right-click and select Properties.  On the General tab there's a check box labeled "Read-only" - if this is checked, or is grey (sometimes blue), click the box so that the flag is unchecked and the box is white.  Click OK, and then OK again when the "Apply changes to this folder, subfolders and files" option selected.  Now try adding the artwork again.
    Windows permissions issues are preventing iTunes from updating your media files (there's some anecdotal evidence of a change in this behavior in iTunes 12).  See turingtest2's notes on Repair security permissions for iTunes for Windows for advice on fixing this, then try adding the artwork again.

  • Small caps - is there a way to change size ratio of lower to upper case?

    I am using Adobe InDesign CS4 and one problem I've had is that when I select Small Caps on the character styles panel, lower case characters are about 60% the size of upper case characters. I'd like this to be more around 80% in my document.
    I don't see a way to do this, so I'm having to avoid using Small Caps and am having to select various portions of each word and set them to different sizes.
    Is there a setting I am missing for Small Caps that would save me this trouble? My typeface is Minion so I may also see if there's a variant available that uses well-crafted small caps.
    Tim

    Dave,
    >.. adjust the size of the "lowercase" characters by using a GREP style
    Yes ... and no.
    It doesn't have to be an extremely complicated GREP style. You mention Unicode ranges, but it's not even necessary. You could try
    >[a-z]
    to select all lowercase characters, but it leaves out accented ones. Now specifying ranges for these doesn't work very good (to put it mildly), because they do not appear consecutively in the Unicode set.
    Fortunately, GREP has a wildcard
    >\l
    for "lowercase", and this matches
    i every
    lowercase character (even Greek and Russian ones). It's equal to the POSIX expression
    >[[:lower:]]
    As this seems to work just the way you want, then why the "No"? The GREP style will be applied to
    i all
    lowercase characters in the paragraph, not just to the words you wanted.
    [Warning: Dirty trick follows. Do Not Copy Unless Forced To.]
    Of course you can
    i force
    the GREP style pick up 'unique' words by making them unique somehow. If you insert an invisible character
    i before
    and
    i after
    the words you want to mark -- in the case at hand, the ones you want to small-capitalize --, you can include the invisible characters in the GREP style. For example, by specifying
    >~-\l+~-
    you can "mark" words by inserting a soft hyphen before and after certain words. (This example also presumes only lowercase characters inbetween.) You don't have to use the soft hyphen, there are a couple more markers you could (ab)use. I think I'll leave it up to your imagination to wonder where it could possibly go wrong.

  • I'm using firefox 6.0.2 It's making problem with Bangla font ONLY on FACEBOOK others bangli website FORNT SIZE are OK. On the FACEBOOK it shows Bangla font in a very / Too small! I change font SIZE in firefox setting but i can't solve. Pls HELP me

    I'm using firefox 6.0.2 It's making problem with Bangla font ONLY on FACEBOOK others bangli website FORNT SIZE are OK. On the FACEBOOK it shows Bangla font in a very / Too small! I change font SIZE in firefox setting but i can't solve. Pls HELP me ..

    Reset the page zoom on pages that cause problems: <b>View > Zoom > Reset</b> (Ctrl+0 (zero); Cmd+0 on Mac)
    *http://kb.mozillazine.org/Zoom_text_of_web_pages
    You can use an extension to set a default font size and page zoom on web pages.
    *Default FullZoom Level: https://addons.mozilla.org/firefox/addon/default-fullzoom-level/
    *NoSquint: https://addons.mozilla.org/firefox/addon/nosquint/

  • Why is InDesign is using fake small caps instead of the real ones included in the font?

    I was trying to use the small caps in Hoefler Text, which I did by hitting the small caps button. Instead of using real small caps (which should be in proportion to the capitals), InDesign created fake small caps by scaling down the capitals (which is disgustingly ugly). I know Hoefler Text includes real small caps because I can see them in the glyphs palette. How do I get InDesign to use the real small caps instead of creating the fake ones?

    Just checked the font file. "Hoefler Text" comes courtesy of Mac OS X, pre-installed with your system. It's an OpenType font with TrueType outlines (actually a collection of four styles into one single file), and its typographic features, including the Small Caps charrington42 noticed in the Glyphs panel, are guided not by OpenType features but by Apple's AAT features.
    InDesign cannot use AAT features; only Apple's own software can. TextEdit, for example, can access the real small capitals:
    You could submit "Please support AAT" to Adobe using the Feature Request form -- I don't see anything against it. Or perhaps just the fact that it's only applicable to a small amount of fonts, and on Mac OS X only.

Maybe you are looking for

  • Bios 1.9 causes problems

    I installed the Bios 1.9 as recommended by Toshiba.  Immediately, whenever I start my Satellite L305, it bypasses the sign in window and goes directly to my desktop.  I tried system restore, which didn't help.  Toshiba Support wouldn't help me other

  • Updating Quicksilver: Need Help Starting Project

    Hello fellows. Awhile ago I was able to purchase a used PowerPC G4 Quicksilver model from my former University for a very wonderful price of $40. I've finally got around to wanting to updating it. I currently have an iMac which is less than a year ol

  • What to learn (frameworks, patterns, libraries...) to become a pro?

    Hi all I know the Java syntax quite well and I have some experience in OO programming, but I have not done much in Java yet. I know PHP well and I got used to code PHP in OO, but the further I get the less I'm satisfied with PHP. I'm looking for a re

  • I want to access the database with user name and password without con. info/udl

    hi to all, im doing project related with database... normally i'll connect ***.udl file to open database.vi. now what is my question is I want to open the database with the user name with password.... y i need this because once i run the program the

  • Configuring SNMP on Windows Server 2008 Core

    Hi, I'd like to apologize for my english (i'm a french student). I'm starting to use Windows server 2008 Core and i have one problem with snmp service. I installed it but when i want to configure it in a mmc (remotely on a vista), i haven't any tab (