Change font size of contact form.

Hi,
I have been searching through google and various forums to make a contact form, and I finally have it working. (YAY!) HOWEVER...
There's one problem: I don't know how to change the font size. Help?!
Here's my action script code:
submit_btn.addEventListener(MouseEvent.CLICK, sendMessage);
function sendMessage(e:MouseEvent):void{
var my_vars:URLVariables = new URLVariables();
my_vars.senderName = name_txt.text;
my_vars.senderEmail = email_txt.text;
my_vars.senderMsg = message_txt.text;
var my_url:URLRequest = new URLRequest("http://mydomain.com/mail.php");
my_url.method = URLRequestMethod.POST;
my_url.data = my_vars;
var my_loader:URLLoader = new URLLoader();
my_loader.dataFormat = URLLoaderDataFormat.VARIABLES;
my_loader.load(my_url);
name_txt.text = "";
email_txt.text = "";
message_txt.text = "Message Sent";
Do I need to add something to my action script to modify the text size? If so, what? Or do I modify the text size through other means? I've been looking at tutorials online, forums, and I just couldn't find something that helped me.
Thank you!
-MP

Ahh. Thanks for being patient with a newbie.
So I've got the code in and compiler errors came up:
Scene 1, Layer 'content', Frame 70, Line 3
1119: Access of possibly undefined property defaultTextFormat through a reference with static type fl.controls:TextInput.
Scene 1, Layer 'content', Frame 70, Line 4
1119: Access of possibly undefined property defaultTextFormat through a reference with static type fl.controls:TextInput.
Scene 1, Layer 'content', Frame 70, Line 5
1119: Access of possibly undefined property defaultTextFormat through a reference with static type fl.controls:TextArea.
Below is what I have in action script, did I need to place the code you gave me somewhere else?:
var tfor:TextFormat=new TextFormat();
tfor.size=12;
name_txt.defaultTextFormat=tfor;
email_txt.defaultTextFormat=tfor;
message_txt.defaultTextFormat=tfor;
submit_btn.addEventListener(MouseEvent.CLICK, sendMessage);
function sendMessage(e:MouseEvent):void{
var my_vars:URLVariables = new URLVariables();
my_vars.senderName = name_txt.text;
my_vars.senderEmail = email_txt.text;
my_vars.senderMsg = message_txt.text;
var my_url:URLRequest = new URLRequest("http://mydomain.com/mail.php");
my_url.method = URLRequestMethod.POST;
my_url.data = my_vars;
var my_loader:URLLoader = new URLLoader();
my_loader.dataFormat = URLLoaderDataFormat.VARIABLES;
my_loader.load(my_url);
name_txt.text = "";
email_txt.text = "";
message_txt.text = "Message Sent";

Similar Messages

  • How to change font size in HR Forms Editor

    Hi Experts,
    I am modifiying the pay slip which was created using HR Forms Editor, now i modified the form, is it possible to change the font size ? i am not able to find option to change the font size.
    could any one please tell how to change the font size?
    With Regards,
    Thanesh

    *Default FullZoom Level: https://addons.mozilla.org/firefox/addon/default-fullzoom-level/

  • For Adobe Acrobat X Pro how do you change font size Acrobat in form editing mode?

    For Adobe Acrobat X Pro how do you change the font size when Acrobat is in Form Editing Mode? The fonts are different sizes in the highlighted fields.  I want the font the same size throughout my document...

    Dear Michael:
    The documents do not look professional with the 2 different font sizes.  And it
    is driving me crazy because I cannot figure it out… But I will try the steps you
    gave me to change the font size.  Attached via e-mail is a screanshot of the
    document.
    Sincerely, Lisa

  • How to change font size in smartform and set layout of smartform

    Dear abapers,
                           I want to change font size in smartform and also set the layout of smart form how can we do this.
                                                 Thank you sir.

    Hi,
    you can do it first you need to goto smartforms tcode there click on radiobutton 'Style'.
    Give any name and click on create. Right sideyou can find character format right click on it and create a node .A pop will raise gve a 2 characterlike z1 or a1 etc click on font tab gve size and font style and click on save and activate. Use this style in your smartform you can apply what ever styles created in styles you can use it in your smartform by that smartstyle name.
    When we create text in output options give your smart style name and click on general attributes . Select your text and apply the style what thse size it should be and what the font style it should be.
    Goto smartforms tcode and select formpainter in application bar set layout according to your requirement.
    Thanks,
    venkat

  • How to set up the font size or front form by default when I input textbox with adcrobat 7.0

    Hi all,
       When I input front into textbox with Acrobat 7.0 ,  the default font size is times roman, and defaul front size is 9, but i want to change its defaul attribute, so i press "Ctrl + E" ,and it daps textbox tool bar,  then choose and modify attribute ,let them as my dafault configuration, but when i open a new PDF file ,and insert and edit textbox , the front's attribute return before .How to set up my requisite the font size or front form by default ? 

    This is an old version, so I'm not sure it's available there, but try to
    right-click the field using the Object Selection Tool (after you've set it
    up the way you want it) and then select "Use current properties as new
    defaults".

  • Font size and user form

    Hello,
    I'd like to know if somebody find a solution for the font size issue on user form.
    since BO 2005, the user can change the font size. the application will format all the controls of form with the good size.
    However, the layout does not follow very well for user form.
    If the font size is changed while a user form is open, the aplication will reformat it perfectly, the controls are bigger, and the distance between the controls are ok
    But when the user form is open again, it keeps the distance and control size of the XML file but change the font size, so the layout is very bad, sometime the static text or the caption could not be read, so it's not possible to use the form as is.
    I use XML to create form, I haven't try by code, but in my case, I can't use code because there are a lot of controls in the form.
    Any idea if it's possible to call the Business One procedure to resize the form and its control (not only the font) ?
    Thanks you

    Try resetting the FontSize of all items (and columns) to the one you used for the design after loading the form.
    I use a simple loop over all items and an inner loop for matrixes and grids to set the font size in their columns.
    Now users can have a larger font, but the added forms will use the original design's font size.
    This approach has some drawbacks:
    - Added forms use a different font size
    - Some of the controls will still get their size based on the system default font size
       (checkboxes, drill-down arrays, headercolumns, perhaps more?).
    - Focused item is not resized by this (so far I have been able to work around this).
    - Changing the font size while the form is open, will break the design as the
      font size does not change, but the control sizes do.
    This is not an ideal solution, but it might give some help, until a better one presents itself.
    If the users don't use a dramatically different font size, my form design work quite ok,
    even with the drawbacks or at least it is better than nothing. It is a good idea to test
    the form with different font sizes to make it more flexible.
        Tero

  • 6288 change font size

    hello all,
    how do i change the font size for contact?
    also, can i chnage font size for all menu in phone?
    The changing of font size ibn 6288 only does for
    "Messaging" and "Web" under Settings>Display>Font Size.
    Any help appreciated...

    Me too!!!!.
    No menu appear to select as mention in user manual page 39.
    Because of update firmware to v6.10 or not?
    So that how to rool-back to v5.92?
    Help!!!!

  • Can we change font size in ALV output?

    Hi,
    I would like to know if can change the font size of the output in ALV reports. 
    We did suggest the client to download into excel & change it but they would like to see the fontsize as 10 in ALV output itself. This allows them to fit more columns in a screen.
    I appreciate your response.
    Thanks,
    Ritu

    Hi Ritu,
    In structure of type “LVC_S_LAYO”, there is a field called SMALLTITLE..
    If this field is set, the title size in the grid control is set to the font size of the column header.
    This s the only way i know you can have a control on the font size..
    FORM prepare_layout CHANGING ps_layout TYPE lvc_s_layo.
    ps_layout-zebra = 'X' .
    ps_layout-grid_title = 'Flights' .
    ps_layout-smalltitle = 'X' .
    ENDFORM. " prepare_layout
    hope this helps you..
    regards
    satesh

  • How to change font size for email sent

    Email sent from my 4th generation iPod Touch appears with a tiny font ( 4pt.) on computers screens and printouts. Is there a way to change this on the iPod Touch?  I have not been able to make the font larger in Mail on MBA. I am able to adjust font size of email form iPod Touch on Win 7.  
    Thanks

    Hi, I just tried a few of the other suggestoions on related threads. Adjusting the font in the iPod only enlarges font on screen of iDevice. I set it back to Medium. That was OK.
    In Mail on MBA command + enlarges font on screen only. Printout is still very small.
    Thsi\\is seems to be something related to Mail not the iPod. Email does appear in normal size font on iBook running Panther, XP, Win 7 units. Printouts are normal size too.
    Thanks again for your help. Being able to make the font larger on the MBA screen is good.

  • Nokia Lumina 800 Change Font Size ?

    I just got a new Nokia Lumina 800, and the text font is so small I cant read most it.
    (I've some replies where nokia are claiming itsa 'visually impaired' problem. Nokia take note.... I had an eye test recently and have 20/20 vision).
    Googling I cant believe there is no facility to change font size. YOU CANT CHANGE THE TEXT FONT SIZE ??? Was the device only useability tested on teenagers ?
    Nokia:  so my question is specifically WHEN will there be an update to correct this ? Or do i return the device and switch to android ?
    I'd priortise this a an URGENT issue.

    @ kevgallacher
    You are very lucky to not have an issue with the font size, some of us don’t have perfect vision and it would make life a lot easier to be able to choose a font size and colour that best suits our own visual ability. If you open a contact up and have a look at the headings which are in white against the black background (if you have dark set for back ground) then under that is the details that you enter, they are almost half the size of the heading font and are the same colour as the selected theme so I have chosen the lime green theme as this helps to make them clearer for me. Don’t know if you have heard but some people do suffer from colour blindness so some colour combination mean that they wont see some colours at all. So please this is an issue for me and some other users, I happy to hear your vision is excellent and its not a problem for you but it may not be like that for ever so this might become an issue for yourself one day. Please Nokia have a look at this and update it to either allow us to customize the font or allow pinch to zoom.

  • How to change font size on screen

    how to change font size on screen

    I'm not certain what font sizes you wish to change, when on a page you can use command and the += button to zoom in and make the fonts larger. On the finder desktop you can make what ever is on the desktop larger or smaller from the finder menu click view, custom view options, and adjust the icon size with the slider on the top, and the text using the text size box to select the size that your comfortable with.
    Forgot to add these.
    http://support.apple.com/kb/PH10876
    http://support.apple.com/kb/PH10877
    Hope this helps.

  • How can I change font size in iCal 3.0.8?

    How can I change font size in iCal 3.0.8?

    Julian,
    There is no user option to change the font size in iCal.
    For other posts regarding this topic, read some of the links in "More Like This." box just to the right of your first post in this thread.

  • How to change font size on web page when have no icon in View tool to do so

    menu bar at top of screen does not have icon to change font size of a web page as described in your support information--you show it as between stop and reload in View icon and I do not have it at all in my toolbar.

    See this: <br />
    https://support.mozilla.com/en-US/kb/Page+Zoom

  • How to change Font Size of Object Explorer in "SQL Server Management Studio"

    Dear Team,
    "SQL Server Management Studio" is a fantastic IDE for the database.
    There are so many customization options available but one thing many users missing is that " How to change Font Size of Object Explorer?"
    Can you please accumulate this feature in IDE ASAP?
    Many Thanks,
    Bhavesh

    Its there
    Go to Tools -> Options
    Then under Environment you've fonts and colors tab where you can specify a higher font size.
    Please Mark This As Answer if it solved your issue
    Please Vote This As Helpful if it helps to solve your issue
    Visakh
    My Wiki User Page
    My MSDN Page
    My Personal Blog
    My Facebook Page

  • How to change font size, maximum column size in the result screen ?

    hi All
    That's great when using SQL Dev.
    But I also have a trouble that how to change font size, maximum column size in the result screen ?
    My users think that font in result screen is shown very small, and whenever the data in each colum is long then it's not shown full data in column, they must double click for extend the size. Have the option to default the max size for showing full data in each column ? I try but still not to do that .
    Appreciate for anyone to help us.
    Thanks all.
    Sigmasvn

    You can't change the font for the results screen yet, however you will be able to select an auto-fit option for selected columns, so if some columns have slitghtly wider text you'll be able to set the column widths to handle these wider columns.
    Also, there s the option of switching the layout of a record in the grid.
    Sue

Maybe you are looking for

  • Why can't I use scroll keys on my Mac in Firefox 9?

    Also, I cannot use tab to jump from box to box.

  • Using Ipod as a backup

    I was concerned about backing up my music files when I realized that the Ipod itself was a handy backup. All of my music was on the portable harddrive known as "my Ipod". I went into the Apple store and wanted to talk to the technicians about using t

  • Can't drag pics from email anymore, why not?

    Why won't iphoto let me drag pics from my email into my iphoto library anymore. Pls help. Thanks.

  • Alerts in sccm 2012

    Can we create a custom in console alert ? For example, we have an default alert for backup failure, can we create an alert backup success too ?. Kindly mark as answer/Vote as helpful if a reply from anybody helped you in this forum. Delphin

  • Materials Management: Workflow Scenarios

    Dear Support,    We are going to Implement or configure the Workflow Scenario for PR and PO for releasing the document. So pls help in this regard by providing any usefull document or link so that we can able to configure the workflow. Provide the co