Change font of text created by createTextField();

Hello!
I am making a little flash game for a project at school. Because for some reason it didn't work with creating a textfield in the design, I created the textfield with this piece of code:
var literWater = 1250;
var gramGraan = 1000;
createTextField("nogDoen", 1,50,50,300,100);
function nog()
nogDoen.text = "Je moet nog "+literWater+" liter water en "+gramGraan+" gram graan verplaatsen.";
nog();
Now what I can't figure out, is how to change the font of this textfield. I would like it to be something like Arial, 30pt. How should I do this?
Thanks in advance!

you must use the textformat class to create a new textformat instance.  you can then assign properties (font and size) to the textformat instance and finally assign the textformat instance to your textfield.  also, you must embed your font in your library which is a several step process.
your actionscript should look something like:
var tfor:TextFormat = new TextFormat();
tfor.font = "ArialID";  // this must match a font's linkage id in your library
tfor.size = 30;
var tf:TextField = this.createTextField("tf",1,0,0,300,40);
tf.embedFonts = true;
tf.setNewTextFormat(tfor);  // or use setTextFormat() if you're assigning text before assiging tfor to tf

Similar Messages

  • Change font in texts

    i was able to change the appearance of the font in my texts with my other blackberry but i got a replacement one and don't remember how to do it..help?

    For device 8530:
    Change font from the location:
    options >>> Screen/keyboard >>> 

  • Crystal Report to PDF change fonts, cut text and change lines

    Post Author: jzwanziger
    CA Forum: Exporting
    Hello all, I am using Crystal Reports v10 and I created my report. The report works fine and the export function works fine in some particular servers. We were developing under Windows Server 2003 Service Pack 2 using Visual Studio 2005 Service Pack 1. We created the deployment and in our testing servers works fine (Windows Server 2003 and Windows XP these machines doesn't have any development tool).
    When we installed the same deployment (MSI) file in the customer Windows Server 2003, the exporting function to PDF or using it the Crystal Reports viewer doesn't work (Same worng thing that is displayed in the viewer is in the PDF). We had detected labels cut in the middle, some fields changed the font size or alignment and some lines move it up, down or growing. Obviously this looks like a environment problem, but we don't have any idea how to fix it, or what is missed.
    We tried to install, Windows Service Pack 2, install Acrobat Reader v8, verified the dll's, try to install the "dbex10win_en.zip" hot fix (we were not able to install it, setup file fail due some registry inconsistencies), Validate that the fonts are the same, and nothing fix the problem.
    Could somebody help us, we are a little desperate.
    thanks in advace for any idea.

    See [this|https://forums.sdn.sap.com/click.jspa?searchID=29094456&messageID=7206473] forum thread for possible clues to a resolution. In a nut shell, as long as the Calibri font is up to date, the other two steps are;
    1) Ensure you are using the latest Service Pack as suggested by Jonathan
    2) See what USP10.dll is loading (use the [Modules|https://smpdl.sap-ag.de/~sapidp/012002523100006252802008E/modules.zip] utility)
    Also, if this is a win app, compile it to an exe and run the exe to see if the issue persists. (when running the app exe, the USP10 loaded should be from the CR bin directory. when running ion the .NET environment, the USP10 will load from win\system or other)
    Ludek
    Edited by: Ludek Uher on Jul 16, 2009 10:57 AM

  • Mail changing fonts and text colour as I type

    I am having a problem with the text changing colour and even the font as i type replys. I have checked the defaults and the fonts and colours are set as the defaults and have never been changed. Can anyone help at all its driving me up the wall!

    2ManyDogs wrote:Do you have a wireless keyboard or mouse? Anything else you changed recently?
    Nothing's changed hardware-wise, I've been experiencing it since a re-install of Arch from the latest install media, both in Openbox and Xfce.
    I just found this thread, and I'm not sure if it's related, but it is similar since text that was not copied was pasted.  I've gone ahead and disabled TapButton 2 and 3.  I sure hope this is the solution
    If I experience it again I'll post, but in the meantime if anybody has had an issue very similar to this and has a solution other than to disable two and three finger tap, please post it.  Also, if you need config or log files, tell me.
    Last edited by Mindstormscreator (2012-08-31 01:29:26)

  • Change  font of text range

    I keep getting an error when I run this script. The error message reads:
    Can't set font of [string] to Verdana
    Here's my code:
    tell application "Adobe InDesign CS3"
    tell front document
    set thisStory to contents of story id 173
    try
    set applied font of thisStory to "Verdana"
    set font style of thisStory to "Bold"
    on error errMsg
    return errMsg
    end try
    end tell
    end tell
    What am I doing wrong here?
    Thanks

    Hi Steve,
    "contents" is a string, and doesn't have an applied font property. Try something like this:
    set applied font of story id 173 to "Verdana"
    or
    set thisStory to object reference of story id 173
    set applied font of thisStory to "Verdana"
    Thanks,
    Ole

  • Change fonts of photoshop text layer via panel developed by Flex Builder

    Hi everyone,
    I am developing  photoshop cs5 plugin which will change font family of text layer. Changeing system font is ok but my embedded font is not loading on text layer.
    syntax used to change font on text layer.
    var AD = activeDocument;
    AD.activeLayer.textItem.font="Verdana";
    I have few webfonts on my local drive. how can i use this font so that it can reflect on text layer in runtime with out installing manually in system font.
    In developed panel, embedded fonts are rendering but I need to change font of text layer on clicking fonts list from panel.
    Does anyone have any idea on it? Please help me.
    Thanks,
    PluginBishnu

    Flash.text.Font.hasGlyphs()

  • I can't change fonts or stroke styles/sizes

    Help!
    I haven't used my InDesign in a long time. I have CS5 and I am on a PC using Windows 7.
    However, today, I tried to do a few very simple things and I can't!
    My stroke menu is greyed out. All I can get is a 1pt black stroke.
    Then I tried to type some text, and it's stuck on Minion Pro. The program will not let me change fonts, unless I go in through the menu. I can't use the drop-down box to change font or text size.
    Edit: Now I've discovered I can't use either selection tool.
    What is happening? Please help!

    Could be this: InDesign tools and panels don't respond to mouse clicks (Windows 7/Vista)
    or you might need to trash your prefs. See Replace Your Preferences

  • How can i modify the text created by create_text FM

    Hi Gurus,
    How can i change a long text created using create_text FM?
    I couldn find any FM to modify the text!
    Thanks.

    Hello Umit,
    Sorry...I mislead you. the function to edit the content of a long text is SAVE_TEXT and not RENAME_TEXT.
    In SAVE_TEXT FM, fill this information.
    In HEADER parameter, enter your TDOBJECT, TDNAME, TDID, TDSPRAS and TDTITLE information.
    In SAVEMODE_DIRECT parameter put an X value
    In LINES table, put your new content.
    Execute it.
    Confirm it after, using READ_TEXT function.
    Regards,
    Bruno

  • How do I change fonts in a Text field ??

    Okay I've tried to implement a JComboBox that allows the user to change fonts in the text field. So far I've tried different methods to do it but to no avail. Could somebodoy here read the programs source code for me and tell me where I went wrong?
    /* * My GUI Client */
    import javax.swing.*;
    import javax.swing.text.*;
    import java.awt.*;
    import javax.swing.event.*;
    //for HTML Headers
    import javax.swing.text.StyledEditorKit.*;
    import javax.swing.text.html.HTMLEditorKit.*;
    import javax.swing.text.html.*;
    import javax.swing.event.HyperlinkListener;
    import javax.swing.event.HyperlinkEvent;
    import javax.swing.event.HyperlinkEvent.EventType;
    import javax.swing.text.html.HTMLFrameHyperlinkEvent;
    //for layout managers
    import java.awt.event.*;
    //for action and window events
    import java.io.*;
    import java.net.*;
    import java.awt.GraphicsEnvironment;
    //for font settings
    import java.lang.Integer;
    import java.util.Vector;
    import java.awt.font.*;
    import java.awt.geom.*;
    public class guiClient extends JFrame implements ActionListener {
    protected static final String textFieldString = "JTextField";
    protected static final String loadgraphicString = "LoadGraphic";
    protected static final String connectString = "Connect";
    static JEditorPane editorPane;
    static JPanel layoutPanel = new JPanel(new BorderLayout());
    static JPanel controlPanel = new JPanel(new BorderLayout());
    static JPanel buttonPanel = new JPanel(new BorderLayout());
    static JPanel fontPanel = new JPanel(new BorderLayout());
    static PrintStream out;
    static DrawPanel dPanel;
    static DrawPanel dPButton;
    static DrawPanel dFonts;
    static DrawControls dControls;
    static DrawButtons dButtons;
    static String userString;
    static String currentFont;
    String fontchoice;
    String fontlist;
    static JTextField userName = new JTextField();
    public static JMenuBar menuBar;
    private static JButton connectbutton = new JButton("Connect");
    static boolean CONNECTFLAG = false;
    //create the gui interface
    public guiClient() {
         super("My Client");
    // Create a ComboBox
    GraphicsEnvironment gEnv = GraphicsEnvironment.getLocalGraphicsEnvironment();
    String envfonts[] = gEnv.getAvailableFontFamilyNames();
    Vector vector = new Vector();
    for ( int i = 1; i < envfonts.length; i++ ) {
    vector.addElement(envfonts);
    JComboBox fontlist = new JComboBox (envfonts);
         fontlist.setSelectedIndex(0);
         fontlist.setEditable(true);
         fontlist.addActionListener(this);
         fontchoice = envfonts[0];     
    //Create a regular text field.
         JTextField textField = new JTextField(10);
         textField.setActionCommand(textFieldString);
         textField.addActionListener(this);          
    //Create an editor pane.
    editorPane = new JEditorPane();
         editorPane.setContentType("text");
         editorPane.setEditable(false);
    //set up HTML editor kit
         HTMLDocument m_doc = new HTMLDocument();
         editorPane.setDocument(m_doc);
         HTMLEditorKit hkit = new HTMLEditorKit();
         editorPane.setEditorKit( hkit );
         editorPane.addHyperlinkListener( new HyperListener());
    //Create whiteboard
    dPanel = new DrawPanel();
    dPButton = new DrawPanel();
    dFonts = new DrawPanel();
    dControls = new DrawControls(dPanel);
    dButtons = new DrawButtons(dPButton);
         //JLable fontLab = new JLabel(fontLable);
    //fontLab.setText("Fonts");
    //Font newFont = getFont().deriveFont(1);
    //fontLab.setFont(newFont);
    //fontLab.setHorizontalAlignment(JLabel.CENTER);
    JPanel whiteboard = new JPanel();
    whiteboard.setLayout(new BorderLayout());
    whiteboard.setPreferredSize(new Dimension(300,300));
    whiteboard.add("Center",dPanel);
    whiteboard.add("South",dControls);
    whiteboard.add("North",dButtons);
         JScrollPane editorScrollPane = new JScrollPane(editorPane);
         editorScrollPane.setVerticalScrollBarPolicy( JScrollPane.VERTICAL_SCROLLBAR_ALWAYS);
         editorScrollPane.setPreferredSize(new Dimension(250, 145));
         editorScrollPane.setMinimumSize(new Dimension(50, 50));
    //put everything in a panel
         JPanel contentPane = new JPanel();
         JPanel fontPane = new JPanel();
         contentPane.setLayout(new BoxLayout(contentPane, BoxLayout.Y_AXIS));
    //add whiteboard
         contentPane.add(whiteboard);
    //add editor box
         contentPane.add(editorScrollPane);
    //add spacer
         contentPane.add(Box.createRigidArea(new Dimension(0,5)));
    //add textfield
         contentPane.add(textField);
    //set up layout pane
         //layoutPanel.add(GridLayout(2,1),fontLab);
         layoutPanel.add( BorderLayout.NORTH, fontlist);     
         layoutPanel.add(BorderLayout.WEST,new Label("Name: ")); //add a label
         layoutPanel.add(BorderLayout.CENTER, userName ); //add textfield for user names
         layoutPanel.add(BorderLayout.SOUTH, connectbutton);//add dropdown box for fonts
         //fontPane.add(BorderLayout.NORTH,fontlist);
         contentPane.add(layoutPanel);
         contentPane.add(controlPanel);
         contentPane.add(buttonPanel);
    //Create the menu bar.
    menuBar = new JMenuBar();
    setJMenuBar(menuBar);
    //Build the first menu.
         JMenu menu = new JMenu("File");
         menu.setMnemonic(KeyEvent.VK_F);
         menuBar.add(menu);
    //a group of JMenuItems
         JMenuItem menuItem = new JMenuItem("Load Graphic", KeyEvent.VK_L);
         menu.add(menuItem);
    menuItem.setActionCommand(loadgraphicString);
         menuItem.addActionListener(this);
    connectbutton.setActionCommand(connectString);
    connectbutton.addActionListener(this);
         setContentPane(contentPane);
    static private void insertTheHTML(JEditorPane editor, String html, int location) throws IOException {
         HTMLEditorKit kit = (HTMLEditorKit) editor.getEditorKit();
         Document doc = editor.getDocument();
         StringReader reader = new StringReader(html);
         try {
              kit.read(reader, doc, location);
         } catch (BadLocationException e) {}
    //listen for actions being performed and process them
    public void actionPerformed(ActionEvent e) {
    //if the action is from the textfield (e.g. user hits enter)
         if (e.getActionCommand().equals(textFieldString)) {
              JTextField fromUser = (JTextField)e.getSource();
         if (fromUser != null){
    //place user text in editor pane
    //send message to server
                   if (userName.getText() != null) {
                        userString = userName.getText().trim();
                   out.println(userString + ": " + fromUser.getText());
              fromUser.setText("");
         } else if(e.getActionCommand().equals(connectString)) {
              CONNECTFLAG = true;
    } else if (e.getActionCommand().equals(loadgraphicString) ) {
              final JFileChooser fc = new JFileChooser();
              int returnVal = fc.showOpenDialog(this);
              if (returnVal == JFileChooser.APPROVE_OPTION) {
                   File file = fc.getSelectedFile();
                   dPanel.loadImage(file.getAbsolutePath());
                   sendImage(file);
         else if (e.getActionCommand().equals(fontlist)){
         JComboBox cb = (JComboBox)e.getSource();
    String newSelection = (String)cb.getSelectedItem();
    currentFont = newSelection;
         userString = currentFont;
    return;
    /*public void itemStateChanged (ItemEvent e) {
    if ( e.getStateChange() != ItemEvent.SELECTED ) {
    return;
    if ( list == fontlist ) {
    fontchoice = (String)fontlist.getSelectedItem();
         userString.changeFont(fontchoice);
    //append text to the editor pane and put it at the bottom
    public static void appendText(String text) {
         if (text.startsWith("ID ") ) {
              userString = text.substring(3);
         } else if (text.startsWith("DRAW ") ) {
              if (text.regionMatches(5,"LINE",0,4)) {
    dPanel.processLine(text);
         }else if (text.regionMatches(5,"POINTS",0,5)) {
         dPanel.processPoint(text);
         } else if (text.startsWith("IMAGE ") ) {
    int len = (new Integer( text.substring(6, text.indexOf(",")))).intValue();
    //get x and y coordinates
         byte[] data = new byte[ (int)len ];
         int read = 0;
    try {
         while (read < len) {
         data = text.getBytes( text.substring(0, len) );
    } catch (Exception e) {}
         Image theImage = null;
         theImage = dPanel.getToolkit().createImage(data);
         dPanel.getToolkit().prepareImage(theImage, -1, -1, dPanel);
         while ((dPanel.getToolkit().checkImage(theImage, -1, -1, dPanel) & dPanel.ALLBITS) == 0) {}
              dPanel.drawPicture(0, 0, theImage);
    } else {
    //set current position in editorPane to the end
              editorPane.setCaretPosition(editorPane.getDocument().getLength());
    //put text into the editorPane
              try {
                   insertTheHTML(editorPane, text, editorPane.getDocument().getLength());
              } catch (IOException e) {}
    } //end of appendText(String)
    public void sendImage(File file) {
    //find length of file
         long len = file.length();
    //read file into byte array
         byte[] byteArray = new byte[(int)len];
         try {
              FileInputStream fstream = new FileInputStream(file);
              if (fstream.read(byteArray) < len) {
    //error could not load file
              } else {
              out.println("IMAGE " + len + ",");
                   out.write(byteArray, 0, (int)len); //write file to stream
         } catch(Exception e){}
    //run the client
    public static void main(String[] args) {
         String ipAddr=null, portNr=null;
              if (args.length != 2) {
                   System.out.println("USAGE: java guiClient IP_Address port_number");
                   System.exit(0);
              } else {
         ipAddr = args[0];
              portNr = args[1];
              JFrame frame = new guiClient();
              frame.addWindowListener(new WindowAdapter() {
                   public void windowClosing(WindowEvent e) { System.exit(0); }
              frame.pack();
              frame.setVisible(true);
              while(CONNECTFLAG == false){}
    //sames as previous client,
    //set up connection and then listen for messages from the Server
              String socketIP = ipAddr;
              int port = Integer.parseInt(portNr);
    //the IP address of the machine where the server is running
              Socket theSocket = null;
    //communication line to the server
              out = null;
    //for message sending
              BufferedReader in = null;
    //for message receiving
              try {
              theSocket = new Socket(socketIP, port );
    //try to connect
              out = new PrintStream(theSocket.getOutputStream());
                   dPanel.out = out;
    //for client to send messages
              in = new BufferedReader(new InputStreamReader(theSocket.getInputStream()));
                   BufferedReader userIn = new BufferedReader(new InputStreamReader(System.in));
                   String fromServer;
                   while ((fromServer = in.readLine()) != null) {
                   appendText(fromServer);
                   if (fromServer.equals("BYE")) {
                        appendText("Connection Closed");
                        break;
              out.close();
    //close all streams
              in.close();
              theSocket.close();
    //close the socket
         } catch (UnknownHostException e) {
    //if the socket cannot be openned
              System.err.println("Cannot find " + socketIP);
              System.exit(1);
              } catch (IOException e) { //if the socket cannot be read or written
              System.err.println("Could not make I/O connection with " + socketIP);
              System.exit(1);
    class HyperListener implements HyperlinkListener {
    public JEditorPane sourcePane;
    public void hyperlinkUpdate(HyperlinkEvent e) {
    if (e.getEventType() == HyperlinkEvent.EventType.ACTIVATED) {
    sourcePane = (JEditorPane) e.getSource();
                   if (e instanceof HTMLFrameHyperlinkEvent) {
    HTMLFrameHyperlinkEvent event = (HTMLFrameHyperlinkEvent) e;
                        System.out.println(event.getTarget());
                        HTMLDocument doc = (HTMLDocument) sourcePane.getDocument();
                        doc.processHTMLFrameHyperlinkEvent(event);
    else {
    try {}
    catch (Exception ev){
         ev.printStackTrace();
    Well sorry the source code takes up the whole forum but I need a good feedback from this.

    All right...
    public class guiClient extends JFrame implements ActionListener {
    static String userString;
    static String currentFont;
    String fontchoice;
    String fontlist;
    static JTextField userName = new JTextField();
    public guiClient() {
         super("My Client");
    public guiClient() {
         super("My Client");
    // Create a ComboBox
    GraphicsEnvironment gEnv = GraphicsEnvironment.getLocalGraphicsEnvironment();
    String envfonts[] = gEnv.getAvailableFontFamilyNames();
    Vector vector = new Vector();
    for ( int i = 1; i < envfonts.length; i++ ) {
    vector.addElement(envfonts);
    JComboBox fontlist = new JComboBox (envfonts);
         fontlist.setSelectedIndex(0);
         fontlist.setEditable(true);
         fontlist.addActionListener(this);
         fontchoice = envfonts[0];     
    //Create a regular text field.
         JTextField textField = new JTextField(10);
         textField.setActionCommand(textFieldString);
         textField.addActionListener(this);
    public void actionPerformed(ActionEvent e) {
    //if the action is from the textfield (e.g. user hits enter)
         if (e.getActionCommand().equals(textFieldString)) {
              JTextField fromUser = (JTextField)e.getSource();
         if (fromUser != null){
    //place user text in editor pane
    //send message to server
                   if (userName.getText() != null) {
                        userString = userName.getText().trim();
                   out.println(userString + ": " + fromUser.getText());
              fromUser.setText("");
         else if (e.getActionCommand().equals(fontlist)){
         JComboBox cb = (JComboBox)e.getSource();
    String newSelection = (String)cb.getSelectedItem();
    currentFont = newSelection;
         userString = currentFont;
    return;

  • I am pulling my hair out! I am using adobe indesign and just want to make a text box 'autofit text' as I change fonts a lot and want the font to automatically re-size as I change it. help help help please - I have latest version of indesign - thanks

    I am pulling my hair out! I am using adobe indesign and just want to make a text box 'autofit text' as I change fonts a lot and want the font to automatically re-size as I change it.
    Is it not possible to create a text box, fill it with dynamic (data driven) text, but make the font size either scale up or down automatically, so that the entire text box is filled? This is a feature in PrintShop Mail Pro called COPY FIT. but no such feature in Indesign??
    help help help please - I have latest version of indesign - thanks, DJ

    lol... it seems to work, but I have another huge problem!
    Apparently .CSV files cannot contain page breaks in the data! The data I am trying to merge is a 'letter', with paragraphs, line breaks, etc.,
    But, after data merging, it ignores page breaks and only merges the first paragraph of each letter. (sigh)
    Solution? Hopefully, an EASY solution. lol as we have thousands of records.
    Is there a third party indesign plugin that will allow .xml, or .xls data merge import??
    Thx,
    DJ

  • End user have ability to change font style in text field of interactive pdf form?

    Does the end user of an interactive pdf form able to change the font style, i.e.: make something bold or underline a word in a text field?
    I am making a form with text fields and the end user would like the ability to make something bold or underline it.. I do not see anywhere in acrobat that allows styles to be changed.
    I have created the form in Indesign > saved it as an interactive pdf and brought it into Acrobat.

    Thank you for the quick response! Do you set this in Indesign before exporting or do you set this in Acrobat? I am in Acrobat 10.1.10 and when I go to properties it doesn't give me  'options' to choose from.

  • I have created a form that contains fields with default text for a user to update/personalize.  Is there a way to style the text so I can quickly identify changes to default text in a field?

    I have created a form that contains fields with default text for a user to update/personalize.  Is there a way to style the text so I can quickly identify changes to default text in a field?

    George - Thanks you so much!  Actually, i'd love for the text color to be red font color.  Could you send me the script for that? And I assume I just copy and paste the script into the field properties (see screenshot)?
    thanks again!
    Seth

  • Imported text formatting disappearing when changing font in character palette.

    Something seems to have changed with my InDesign, and I'm not sure why. Here is what I used to be able to do.
    I could import a word doc into a text box. This text would have bold, regular, italics fonts. I would select the text box, then change the font using the character palette by just changing the top font box. For example, if the font imported in as Helvetica but I wanted it all to be Futura, I would select the box and then just type Futura and all of the Helvetica bolds would become Futura Bold, and the Helvetica Italic would become Futura Italic, etc. I didn't have to select each line.
    Now if I try to do that same thing, when I select Futura, it just changes ALL the text to Futura Regular. I lose all previous formatting that was imported in from the word doc.
    I hope this makes sense.
    How can I go back to the way it was?
    PLEASE HELP! This is maddening! Not a big deal for a single flyer design but when laying out a book, this could add DAYS to the project.
    thanks!

    I believe the issue lies in the font palette. Here is what I used to do.
    - New document.
    - Create text box.
    - Select text box.
    - CMD + D
    - Select word doc
    - Text is imported with bolds, italics, etc.
    At this point, let's say I want font to be Myriad Pro...but I want the bold to remain bold and italic to remain italic.
    - Select text box.
    - Type font name into font palette (No dropdown or popup menu used to appear, now it does). Used to just type Myriad Pro then hit return.
    - Font in text would retain bolds and italics and become Myriad Pro. So if a line in the text imported as Helvetica Bold, it would now be Myriad Pro Bold.
    Now when I do this, it just changed ALL of the text to ONE font. If I type in Myriad Pro, a drop-down menu appears and automatically selects Myriad Pro Condensed.
    I hope that helps. I know I'm not crazy. This is what I have done forever. I use InDesign every day...and have for years. I rebooted my mac two days ago and this problem appeared. It seemed like some sort of awful update. haha. When I rebooted, I lost all of my preferences. InDesign went back to points and picas instead of inches. Smart guides appeared, I had to turn those off again. Stuff like that.
    Any thoughts?

  • How to change a labels text which created at runtime?

    hi,
    i am creating label controls in runtime dynamically and adding them to a group component. this group component is in another custom component and i have lots of custom comp. in my app.
    my question is how can access (via id) and change a labels text whict created at runtime?
    i can change like this but i am setting id's and want to reach via id.
    var lbl:mx.controls.Label = mx.controls.Label(subMenu5.group_subMenu5.getElementAt(1));
    lbl.text = "good job";
    thank you, have a good day.

    First off, if you are already using a Spark Group, I would suggest you use a Spark Label instead of an MX Label. If you want to reference the Labels from the group, loop through the group's elements and check the if the element id matches the Label you want to assign text to.
    var lbl:Label;
    var n:int = myGroup.numElements;
    for (var i:int = 0; i < n; i++)
         lbl = myGroup.getElementAt(i) as Label;
         if (lbl && lbl.id == "myLabel")
              lbl.text = "newText";

  • Acrobat Pro 6.0 - Text Box Properties: How-to change font / default

    Inserting text box into an existing .pdf opened in Acrobat Pro ver. 6.0
    Need to change font size to smallest. Right-clicking on field to open 'properties', clicking on 'Appearance' tab, BUT there is no choice for 'font'.
    HOW DO I...change the font size in a text box?
    HOW DO I...set the default to that font/size/color/border/fill?

    You need to have the Properties Bar open (Ctrl + E), double-click on the text so you can select some of it, and you should see where you can specify the various font properties.
    George

Maybe you are looking for

  • How do I create a drop-down menu in Numbers?

    Just a simple question - wanting to create options in a column I've created (similar to the drop down menu above, when you select font size or font type. Thanks!

  • The new tab behavior is driving me nuts. It keeps re-centering on tabs nearest the start of the list when I move a tab. How do I change this?

    The new tab behavior is driving me nuts. It keeps re-centering on tabs nearest the start of the list when I move a tab. How do I change this? I don't want to download an app. I would rather add a new string in about config or just change of the ones

  • Differences between WLS and WLE

    Can anyone enumerate the differences between weblogic server, and weblogic enterprise? It appears to be a much smaller platform support, and corba/ tuxedo stuff. Is that all? Just trying to nail down some questions as I wait for weblogic sales depart

  • Change the name of an iMac

    Dear All Yet a gain a rather simple question. How can I change the name of my old mac running on 10.4, without having to reinsotre the system? Thanks in advance C

  • OLite compile JSF JSP error

    I'm using Olite 10g. I created a JSF JSP in JDeveloper and compiled and tested in. I packaged the web application into a WAR file and expaned it into the OLite webtogo root. When I use the package wizard to publish the web application, the JSF JSP fa