Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    Flash




Changing The Font Of An Input Text Field



hello all. i am stuck...i am working on an engine for a site that will let people choose a pencil color, choose a font, and then choose the color of the type. i've gotten everything to work, but i have one thing that's irritating. the code that i've used to change the font is this:

on (release) {
font2 = "<font face="Times New Roman" >Type here</font>";
}

- on a button targeting the input text field "font2". the problem is, this way whenever the user changes fonts, they have to re-type what they already typed. is there a way to just change the font of what's already there without them having to start over? any help is much appreciated!

here is the source file: http://crimsonmedia.com/images/pencil.zip



Ultrashock Forums > Flash > Flash Newbie
Posted on: 2005-02-15


View Complete Forum Thread with Replies

See Related Forum Messages: Follow the Links Below to View Complete Thread

Changing The Font Of Input Text In A Swf
Hey all, just wondering does anyone know if it is possible to change the font of input text created in a swf. im thinking there maight be a way to script the input text?? if anyone knows of any literature or tutorials, i would be very grateful!thanks in advance

Changing Font Of An Input Text
Hi,

I want help to change the font of an input text through action script.


Eg:

"Input Text"

Arial verdana

Clcking on arial the text should change to arial

Changing Input Text Font
hey guys!

I use this script to make a input field:

Code:
this.createTextField("email_txt", 16, 100, 180, 300, textFieldHeight);
email_txt.border = true;
email_txt.type = "input";
email_text.maxChars = 40;
email_txt.background = false;
email_txt.borderColor = 0x999999;
Does somebody know how to change the font type?
I use as2 and tryed out everything!
It might be a dumb mistake but please help me with this...

Font In Input Text Field...
hey i have made a simple feed back form that links to a php file and is then sent to my email address...

i was just wondering if there was anyway of having the input text in the form a handwriting font... is there anyway i can do this so the font shows up even if the person writing the message doesnt hav the font installed?

because im assuming if i set it to the font, if its not installed it will be substituted with a default

How Do I Set Input Text Field Font?
How do I set the input text field's font?.... like the font I want to show up when the user is typing in the text box.

anyone know?

Changing The Font Size Of Text Field
I've created a dynamic text field (instance = "speech_bubble") within a movie (instance = "bubble"). I want to change the size of the font within speech_bubble using actionscript but can't find the correct code for it.

Can anyone help?

Cheers,

Font Problem In Input Text Field
Hello,
I have created 2 input text fields with the same dimension. When I press Cntr/Enter and I type in these fields, the font in the first field is smaller that the same font in the second field... How come?

Also, I have created a multiline input text field. When I press Cntr/Enter the line does not wrap... Can't find why since I choose the multiline option and not the multiline with no wrap.

Can you help? Thank you for your time.

Cheers

Changing Input Field Text On Click?
Ok so in my flash i have a contact form. It has a name field, and the field already has the word 'Name' in it. As well as the Email field with 'Your Email Address' and a message field with 'Your message' in it.

What I need to happen is that when I click in the message field, or any of them, the label text (ex: Your Email Address) needs to disapear. But, I can't apply a onClick to an Input Text! How else can this be done?

How can i solve this problem!? Help!

The form works fine now and I would rather not change it up by putting it in movies or chainging properties or anything. WHat kind of workaround or solution is there?


THANKS FOR ANY INPUT!!
-nanascalala

Changing Font Colors In A Dynamic Text Field?
Hello,
I have a text field that is getting its content from a text file. I have looked at the Flash documentation and it says that it will suppert the FONTCOLOR html tag. I have tried to no avail to change the color of a particular word in my text field. Has anyone gotten this to work? If so, how?
Thanks,
Damien

Changing Font Size In Dynamic Text Field
I'm trying to change the size of a font in a dynamic text field.

Keep in mind, the text field is not dynamically generated using createTextField.

I've tried the following with no success:
myTextFormat = new TextFormat();
myTextFormat.font = "Verdana";
myTextFormat.size = 40;
newbutton2.myLabel.setTextFormat(myTextFormat);

Where newbutton2.myLabel is the instance name of the text field.

Custom Font Not Working In Input Text Field
Ok guys i am in need some either some hints tips or if u feel like it a walk threw on what ive got to do to make the input text field i got use the custom font i want that is a font i downloaded some where of the net.
Below are the things i have done and tried but havnt worked.

1 = added font BankGothic Md BT to libary and set its identifier name as BankGothic Md BT and also have made it set to export for action scripting and export in first frame.

2 = made a layer called input text, made one input text box on that layer and gave it the instance name of maininput_txt and set the font to the same thing as the one in the libary.

3 = i set the options of that maininput.txt as follows below
textfield type = input
font = BankGothic Md BT
multiline
selectecable
bitmap text (no anti alias)

4 - ive also embeded the following
Uppercase a -z 27 glyphs
Lowercase a- z 27 glyphs
numerals 0 - 9 11 glyphs
punctuations 52 glyphs

5 - and have got auto kern unticked.

6 - added the following action script code to the first frame the input field is in

this.createTextField("mainimput_txt",1,2,2,550,50) ;
mainimput_txt.text="compiler active.....>";
style=new TextFormat();
style.font="BankGothic Md BT";
mainimput_txt.setTextFormat(style);
mainimput_txt.embedFonts=false;

================================================== =
Ok the thing is when i preview it as flash that setup works and it displays the font i want but when i actually have published it it changes the font to times new roman or some other one not the one i want.

I have also tried without that action script code ==== did not work
i have also tried change the embedFonts=flase statement to true - did not work

i have also tried removing that maininput_txt.text= "compiler active...>"
that also did not work

so please guys im at my wits end here, i wanna use this font and im running out of ideas to try.
the reason i made this so detailed post is to help u understand what ive done and what ive tried that hasnt worked so u dont just tell me to do things ive all ready tried which would just be wasting ur time and mine.

Hope someone here can help me cause i cant continue working on this untill i fix this problem.
Many thanks in advanced

Custom Font Not Working In Input Text Field
Ok guys i am in need some either some hints tips or if u feel like it a walk threw on what ive got to do to make the input text field i got use the custom font i want that is a font i downloaded some where of the net.
Below are the things i have done and tried but havnt worked.

1 = added font BankGothic Md BT to libary and set its identifier name as BankGothic Md BT and also have made it set to export for action scripting and export in first frame.

2 = made a layer called input text, made one input text box on that layer and gave it the instance name of maininput_txt and set the font to the same thing as the one in the libary.

3 = i set the options of that maininput.txt as follows below
textfield type = input
font = BankGothic Md BT
multiline
selectecable
bitmap text (no anti alias)

4 - ive also embeded the following
Uppercase a -z 27 glyphs
Lowercase a- z 27 glyphs
numerals 0 - 9 11 glyphs
punctuations 52 glyphs

5 - and have got auto kern unticked.

6 - added the following action script code to the first frame the input field is in

this.createTextField("mainimput_txt",1,2,2,550,50) ;
mainimput_txt.text="compiler active.....>";
style=new TextFormat();
style.font="BankGothic Md BT";
mainimput_txt.setTextFormat(style);
mainimput_txt.embedFonts=false;

================================================== =
Ok the thing is when i preview it as flash that setup works and it displays the font i want but when i actually have published it it changes the font to times new roman or some other one not the one i want.

I have also tried without that action script code ==== did not work
i have also tried change the embedFonts=flase statement to true - did not work

i have also tried removing that maininput_txt.text= "compiler active...>"
that also did not work

so please guys im at my wits end here, i wanna use this font and im running out of ideas to try.
the reason i made this so detailed post is to help u understand what ive done and what ive tried that hasnt worked so u dont just tell me to do things ive all ready tried which would just be wasting ur time and mine.

Hope someone here can help me cause i cant continue working on this untill i fix this problem.
Many thanks in advanced

Custom Font Not Working In Input Text Field
Ok guys i am in need some either some hints tips or if u feel like it a walk threw on what ive got to do to make the input text field i got use the custom font i want that is a font i downloaded some where of the net.
Below are the things i have done and tried but havnt worked.

1 = added font BankGothic Md BT to libary and set its identifier name as BankGothic Md BT and also have made it set to export for action scripting and export in first frame.

2 = made a layer called input text, made one input text box on that layer and gave it the instance name of maininput_txt and set the font to the same thing as the one in the libary.

3 = i set the options of that maininput.txt as follows below
textfield type = input
font = BankGothic Md BT
multiline
selectecable
bitmap text (no anti alias)

4 - ive also embeded the following
Uppercase a -z 27 glyphs
Lowercase a- z 27 glyphs
numerals 0 - 9 11 glyphs
punctuations 52 glyphs

5 - and have got auto kern unticked.

6 - added the following action script code to the first frame the input field is in

this.createTextField("mainimput_txt",1,2,2,550,50) ;
mainimput_txt.text="compiler active.....>";
style=new TextFormat();
style.font="BankGothic Md BT";
mainimput_txt.setTextFormat(style);
mainimput_txt.embedFonts=false;

================================================== =
Ok the thing is when i preview it as flash that setup works and it displays the font i want but when i actually have published it it changes the font to times new roman or some other one not the one i want.

I have also tried without that action script code ==== did not work
i have also tried change the embedFonts=flase statement to true - did not work

i have also tried removing that maininput_txt.text= "compiler active...>"
that also did not work

so please guys im at my wits end here, i wanna use this font and im running out of ideas to try.
the reason i made this so detailed post is to help u understand what ive done and what ive tried that hasnt worked so u dont just tell me to do things ive all ready tried which would just be wasting ur time and mine.

Hope someone here can help me cause i cant continue working on this untill i fix this problem.
Many thanks in advanced

[F8] Dynamically Created Input Text Field With Embedded Font
I'm creating a high score table for my game and I'm trying to mimic those arcade style high score tables with the scores on the right and the three letter names on the left. Everything works fine except for the line where you input your three letter acronym. If I try and get it to use the embedded font it wont work. If I comment out those lines it does work. If I don't comment them out you can't type into the text field, the I beam cursor shows but you can't type. I know the font is embedded properly because all of the dynamic text boxes are using it just fine.

In addition to this I was wondering if it was possible to replace the standard vertical bar text cursor with a horizontal bar kind of like would you would see at a dos prompt.

Here's my code:

code:
mc_HS.createTextField("name"+i,_root.mc_HS.getNext HighestDepth(), 153, 50+count, 50, 20);
mc_HS["name"+i].type = "input";
mc_HS["name"+i].maxChars = 3;
//mc_HS["name"+i].setTextFormat(lvltxtformat);
//mc_HS["name"+i].embedFonts = true;


It works with those two lines commented but doesn't if I uncomment them.

Changing Text With A Input Text Field
Not sure if this is possible. Can I change text that is within a symbol, with an input text field which is outside of that symbol. Basicly I want the user to be able to change the text in my movie on the fly. Any suggestions would be greatly appreciated...

[F8] My Font In A Input Field
is it possable to have my font on a input or dynamic text field
thanks

Changing Input Field Color
Is there a relatively easy way to change the color of my text input field to green...??? Not the text...the Field itself.....!

I can't find a property for that...and if a wrong input is enetered, I want to chane the field to red to highlight it...any idea how I can accomplish this without a ton of code...


thanks...

D...

Font In Dynamicly Created Input Field
hwn i use the code below. everything works fine. i set the text and the font shows up.

BUT when i try to type in the my created inputfeild the nothing happens.

the strange thing is that if i put the marker inside "test text"
and start typing, the font appears.

anyone else had this problem?

// my code
_root.createTextField("text0", 1, 50, 60, 300, 30);
with(text0){
embedFonts = true;
background = true;
type = "input"
}
idleStyle = new TextFormat();
with(idleStyle){
font = "Unicorn"
textColor = 0xff2222
type = "input"
size = 20
bold = true;
}
_root.text0.text = "test text" // this is just for testing
_root.text0.setTextFormat(idleStyle);

_root.text0.onChanged = function(){
_root.text0.setTextFormat(idleStyle);
}
//

cheers TOYOTOTA

Dynamic Embed Font On Input Field
I posted this in another thread but it's burried and this problem is slightly different so I think it deserves its own

I've read a bunch of threads on embedFonts but most of them have text fields that are placed on stage. I'm creating a bunch of input text fields via a loop and some of the text fields have different fonts, sizes etc... I'm attaching the fonts via shared library.

This code here is within a for loop. It works when I remove the embedFonts=true but when I leave it in I can't see any fonts.


Code:
// text format
var my_fmt:TextFormat = new TextFormat();
my_fmt.font = FieldArray[eObj.target.selectedIndex][i].fontFace;
my_fmt.size = FieldArray[eObj.target.selectedIndex][i].fontSize;
my_fmt.align = FieldArray[eObj.target.selectedIndex][i].align;
my_fmt.color = FieldArray[eObj.target.selectedIndex][i].color;

// text field
fields_mc.createTextField(FieldArray[eObj.target.selectedIndex][i].name,fields_mc.getNextHighestDepth(),xcoord,ycoord,100,25);

//
fields_mc[FieldArray[eObj.target.selectedIndex][i].name].embedFonts = true;
fields_mc[FieldArray[eObj.target.selectedIndex][i].name].type = "input";
fields_mc[FieldArray[eObj.target.selectedIndex][i].name].selectable = true;
fields_mc[FieldArray[eObj.target.selectedIndex][i].name].border = true;

// set text format
fields_mc[FieldArray[eObj.target.selectedIndex][i].name].setNewTextFormat(my_fmt);

// set text
fields_mc[FieldArray[eObj.target.selectedIndex][i].name].text = bcInfo_so.data[FieldArray[templates_lb.selectedIndex][i].name];
Can someone help me out?

Also when I use autoSize=true, I lose my textfield alignment. So if I have a textfield aligned to the right and I use autoSize=true, it gets aligned to the left, even if I reset the text format. Ay ideas on this as well?

Thanks

Embedded Font (input Field) From LoadMovie
I"ve embedded fonts b/f and have never had a problem. I'm using an input text field in an externally loaded .swf and can't get the font to embed...defaults to Times. Do I need to initialize the font by using a character on load? and if so, will a space " " work?

p.s. it's not bold.

Problems Using Bold And Italic In An Embedded-font Dynamic Input Field
I'm using text format to provide the user with a toolset for changing the format an input text field.

Most things work - underline, links, indent changes, size changes, etc...but changing the bold or italic property on part of the text is producing no visible change at all. If you select a huge chunk of text and set it all to bold, you can see a -SLIGHT- change in the space it takes up, but it still doesn't look bold, and otherwise doesn't look any different whatsoever. Not sure why there should be problems with those two properties while all of the others work fine.

I'm using a library font (verdana) with linkage set. If I set the library font to bold and italic in the properties, the whole input field goes bold and italic, and setting the bold/italic properties on the text format object still has no effect one way or another.

What am I doing wrong?

Thanks,
pH

Input Field & Font Issue - Some Special Characters Displaying Different Glyphs
Hi all.

I'm redesigning my website now. I have a contact form that works the way it should, except I have a strange problem with non-standard-latin characters like ı, İ, ş, Ş and ğ (specific characters Turkish uses other than the shared ones like ç, Ç, ö and Ö).

I have a container movie that shares fonts with a fonts-only movie called "fonts.fla". All the fonts are appropriately exported & imported so they show up the way they are supposed to. However, when I input, say "ı" it displays a strange character, "¦" but when I copy the right character from another application and paste it, it shows the right glyph. Same happens for other characters listed above ("ş" becomes "§", "ğ" becomes "©"). It is like, there's a problem with the glyph-mapping of the keyboard (but there is not, with any application or website but this).

I thought maybe setting the System.useCodePage to true or something might fix it but in fact it didn't. I have no idea what is going on with the file.

What I have tried so far...
- embedding these special characters in the text fields
- using a system font (that has these glyphs) without embedding
- using (and embedding via symbol) another font that I know has these characters
but the same result.

Does anybody have a slightest idea what might be causing this, or what the solution might be?

Thanks in advance.

Calculating Input Text Field To Dynamic Field (easy Action Script)
hi. i'm trying to learn action script and i need help with this bit. i'm trying to use action script to calculate my brothers ages based on my own.

using flash MX. i have an input field called "my_age" and two dynamic fields called "eli_age" and "jacob_age". eli is 4 years younger and jacob is 6 years younger. i want to be able to enter my age in the "my_age" input field and then click a button that will calculate their respective ages.

here's the fla if i haven't been clear.

thanks for any/all help,
josh

What Are The Best Ways To Capture Input From An Input Text Field?
Hi,
I don't know ASP, CGI, PHP etc. I do, however, have a flash form with two input text fields named “E-mail” and “Name”, and a submit button.

How can I set this up so a user can input the info in these two fields and click the submit button to some how send me the data - Via Email? txt on the server? Anything...

Also, if this is not possible, what is the simplest way to learn PHP or whatever is most appropriate to get these goals accomplished.

Thanks,
Stephen

Input Text Field To Dynamic Text Field
Ok, I have an input text field with a variable name of "enter", and a dynamic text field with a variable name of "display". I also have a button on the stage. I want it so that when you press the button, it checks what the user has put into the input text field, and if it is valid it will display a certain message in the dynamic text field.
For example:
If the user types in "hydrogen" and then clicks the button, I want the dynamic text field to display the letter H. Likewise, if the user types in "oxygen" and then clicks the button, I want the dynamic text field to display the letter O. And finally, if the user types in something that is not specified in the code, it will just display "Not Valid".
I tried doing this with an on(release) action and then some if statements, but nomatter what I typed in it would always display H. I'm probably overlooking something simple, but nonetheless, I need help. Thanks

Input Text Field Into Dynamic Text Field
Hey guys,

I'm really new to AS 3.0. I would like to transmit information from an input text field into a dynamic text field once a submit button is clicked.

Any help would be greatly appreciated.

I'm using CS3 AS 3.0. Thanks!

Input Text Field Won't Allow Input
We are having a really strange and stupid sounding problem with a text input box. It appears but won't allow any input. Before you shout 'stupid newbie' yes the properties are correctly defined as input text etc.

The input field is in a movie clip i.e. _root.myClip but we have never had this problem before. It is probably something obvious to to prevent us pulling out all of our hair has anyone got any idea why this is happening. We have tried forcing the text box focus etc but to no avail.

Help us!!!!!!!

Changing Font And Size Of Text Added To Dynamically Created Text Fields
Whew.. That long-winded subject line pretty much covers it.

Link

In the galleries, I have text I am adding to a movieClip. I have been able to add the description text, change it's colour, but the font and size are not responding. I'm using FlashMX2004. Can anyone show me what I'm doing wrong? Here's the pertinent code:

_parent.Gallery.createTextField(["Txt_" + CVar], _parent.LevelCount + 1000, 175, _parent.EntryY, 325, 110);
_parent.Gallery["Txt_" + CVar].font = "Arial";
_parent.Gallery["Txt_" + CVar].text = _parent.Description[AVar];
_parent.Gallery["Txt_" + CVar].textColor = 0xFFFFFF;
_parent.Gallery["Txt_" + CVar].textSize = 25;


Thanks so much!

Dynamic Text Field Loads Text, Font Not Showing Properly
I have a flash 8 movie in which there is a dynamic text field loading data from the server. The data loads beautifully and appears in a text field formatted as html.

This html-formatted text field uses a stylesheet as well which works great for everything except the font. Using Flash, I have specified a font of DIN-Medium for the dynamic text box on my stage and yet the text that appears when I publish to my hosting provider appears to be Times New Roman. WTF?

My stylesheet does not specify any font family.

Can anyone tell me how I might get the dynamic text box to show the text using the DIN font? Do I need to export the font in the library of my flash movie or something?

Here's my actionscript:

PHP Code:




stop();

import TextField.StyleSheet;
var myStyleSheet:StyleSheet = new StyleSheet();
myStyleSheet.onLoad = function(success:Boolean) {
    if (success) {
//        trace("Styles loaded:");
    } else {
//        trace("Error loading CSS");
    }
};
myStyleSheet.load("styles.css");
txtFilmNews.html = true;
txtFilmNews.styleSheet = myStyleSheet;
txtFilmNews.width = 295;
txtFilmNews.autoSize = true;
txtFilmNews.selectable = false;

var lvFilmNews:LoadVars = new LoadVars();
lvFilmNews.onLoad = function(success) {
    if (success) {
        txtFilmNews.htmlText = lvFilmNews.html;
    } else {
        trace('load failure!');
    }
}
lvFilmNews.load('getHTML.php?q=filmNews');







Here is my stylesheet:

Code:

p {
color: #53301A;
font-size: 12px;
margin-bottom: 0px;
padding-bottom: 0px;
border:none;
}

.title {
font-size: 15px;
text-transform: uppercase;
color: #D06F1A;
font-weight:bold;
}

a {
color: #D06F1A;
font-weight:bold;
}
a:hover {
color: #53301A;
}

Resizing Dynamic Text Field & Maintaining Text Font Properties
I have created a dynamic text field and have specified the height and width in the property inspector. The font is set at Verdana, 12, multiline. After searching these forums I also clicked the Character button and set it to embed font outlines for all characters.

My problem is that when I try to type or paste text into the field it is stretched to fit the field dimensions. I just want to preserve the Verdana 12.

Any help is greatly appreciated.

Dynamic Text Field Loads Text, Font Not Showing Properly
I have a flash 8 movie in which there is a dynamic text field loading data from the server. The data loads beautifully and appears in a text field formatted as html.

This html-formatted text field uses a stylesheet as well which works great for everything except the font. Using Flash, I have specified a font of DIN-Medium for the dynamic text box on my stage and yet the text that appears when I publish to my hosting provider appears to be Times New Roman. WTF?

My stylesheet does not specify any font family.

Can anyone tell me how I might get the dynamic text box to show the text using the DIN font? Do I need to export the font in the library of my flash movie or something?









Attach Code

//Here's my actionscript:
stop();

import TextField.StyleSheet;
var myStyleSheet:StyleSheet = new StyleSheet();
myStyleSheet.onLoad = function(success:Boolean) {
if (success) {
// trace("Styles loaded:");
} else {
// trace("Error loading CSS");
}
};
myStyleSheet.load("styles.css");
txtFilmNews.html = true;
txtFilmNews.styleSheet = myStyleSheet;
txtFilmNews.width = 295;
txtFilmNews.autoSize = true;
txtFilmNews.selectable = false;

var lvFilmNews:LoadVars = new LoadVars();
lvFilmNews.onLoad = function(success) {
if (success) {
txtFilmNews.htmlText = lvFilmNews.html;
} else {
trace('load failure!');
}
}
lvFilmNews.load('getHTML.php?q=filmNews');

//Here is my stylesheet:
p {
color: #53301A;
font-size: 12px;
margin-bottom: 0px;
padding-bottom: 0px;
border:none;
}

.title {
font-size: 15px;
text-transform: uppercase;
color: #D06F1A;
font-weight:bold;
}

a {
color: #D06F1A;
font-weight:bold;
}
a:hover {
color: #53301A;
}

Changing Text Font On The Fly
I am trying to change the font of text within a dynamic textbox based on the user clicking a button or making a selection.

Is there a way to do this with actionscript?

Any guidance or tips would be appreciated!

Thanks,

nvdesigns

Text Field Font
hey guys,

im trying to create a input text field dynamically... however, i can't seem to get the font to stay verdana... when i start typing, the font become times new roman... heres the code i was playing around with....


Code:
_root.createTextField("myOutputText",1,0,0,300,100);
myOutputText.type = "input";
myOutputText.multiline = true;
myOutputText.wordWrap = true;
myOutputText.border = true;

var myformat = new TextFormat();
myformat.color = 0xcccccc;
myformat.font = "verdana";
myformat.bullet = false;

myOutputText.setTextFormat(myformat);


i dont understand why the font keeps change back to the default font... any suggestions will be great!

thanks in advance

justin

Font Changes In Text Field
I have a problem with text formatting in a text field with loaded with an external text file. The text in the text field, as you can see in the swf changes font even though it is properly formatted in the fla (and the txt file).

http://www.disfasia.net/test.zip

Can anyone suggest why this is happening and how to fix it?

Thanks

Text Field Font
these are the only text field commands I know:

myTextField = new TextField();
myTextField.text = 'hello';
myTextField.x = stage.width / 2;
myTextField.y = stage.height / 2;
addChild(myTextField);

I would like to know how to change the font, size, style, color, alignment.

Changing Text Inside A Text Field, Bold/Italic/Underline Ect ...
Is it possible to change the appearance of text inside a text field, like say to bold, italic, underline, color and even a type of font if need be ... ?

Example:

Like say you have text field, and you have some option buttons, (bold/italic/underline/color/type-of-font) that when clicked on will dynamicaly change the text/font appearance in the text field.

Any tutorials on this matter, anyone know ?

Inputed Text Font Changing
Alright, i just read the tutorial on how to change the font text, but is there a way to have some one type any words, then click a button for what font they want that text to be?

Changing Font Of A Text Window
How would I dynamically change the font / size / bold of a text box? I made a script that would work, but the font/size/bolding would have to be entered first.. check it out

http://members.lycos.co.uk/dudeman26/pop up test.fla

Inputed Text Font Changing
Alright, i just read the tutorial on how to change the font text, but is there a way to have some one type any words, then click a button for what font they want that text to be?

Long Text Doesn't Fit Inside Single-line Input Text Field
Hi, I've been browsing these forums for a long time but this is my first post.

I'm creating an interface by which a user can design and order their own customized decal. Please see my example (I've added my script at the bottom of this post):
http://www3.sympatico.ca/sin.young/decaldesigner.html

My issues are:

1. I've set the character limit to 21, but if you were to type in 21 "W"s into the input field for whatever reason, or choose a wider font, the text shifts to the left and some of the characters become hidden as they don't all fit. I'd like to make the width of the text to always fit inside of the width of the white area. I can't figure out how to make this work.

Here's an example that does pretty much what I'm trying to describe: www.stickerjunkie.com.


2. I have the Standard Colors combo box working perfectly but can't seem to get the Fonts combo box working.

Any hints or links to actionscript tutorials/help that might be useful to my predicament is extremely appreciated.

// display colors and formatting
decalColor = new Color(decal);
color1 = new Color(decalColor);
//
function changeColor(comp) {
decalColor.setRGB(comp.getSelectedItem().data);
}
//Standard Colors array
standardcolors = [{label:'STANDARD COLORS'},
{label:'White', data:0xffffff},
{label:'Black', data:0x000000},
{label:'Silver', data:0x9c9c9c},
{label:'Gray', data:0x636b73}];

collistStandard.setDataProvider(standardcolors);
collistStandard.setSelectedIndex(0);
collistStandard.setChangeHandler('changeColor');
//
//Fonts array
myfonts = [{label:'FONTS'},
{label:'Arial', data:'Arial'},
{label:'Serpentine', data:'Serpentine'},
{label:'Enviro', data:'Enviro'},
{label:'Forte', data:'Forte'}];

fontlist.setDataProvider(myfonts);
fontlist.setSelectedIndex(0);
fontlist.setChangeHandler('');

2 Font Face In One Text Field
Hi there,
Can anyone tell me how to embed fonts or create a font symbol (don’t get me wrong). I have a Dynamic textbox that changes value everytime the user click a button obviously i used variables and in my text box I enabled the HTML by putting a check on the text tab for me to be able to include HTML tags on my variables. My problem is this every text value of my variables uses 2 different fonts let say one is Square721 Ex BT and the other one is Verdana so the user will see a series of text (the heading text font is Square721 Ex BT and the body text font is Verdana). I already did that thing but whenever I browse it on another PC the font is different compared to those that I used therefore how will make my selected fonts the fonts that will be seen by any surfer of my site.

My variables are something like this
Txt=<B><font face="Square721 Ex BT" color="#84B0DD">Hello</font></B>
The big brown fox jump over the lazy dog <B><font color="#FF9900"> dog </font></B>.

Hope somebody can help me!!!

Ciao, ods

Dynamic Text Field Font
Hi, I am trying to set a font in the code that gets put in a text field. I've read the instructions, but it doesn't seam to be happy.

I'm using:

contenttext=" < f o n t f a c e = "FFF Alias Bold Condensed">Who we are< / f o n t> the rest of the text.";

Is this right? It doesn't work--

M@

[F8] How To Get Text Field Font Size
Is there a way to dynamically get the font size assigned to a manually created text field?
Thanks,
~S

Static Text Field Font
Hello,

Quick question please: If I choose to use a font (Century Gothic) in a movie, is this font exported in the static text fields as part of the movie? If a visitor to the site doesn't have the font installed on his machine, would he see a default font, or does Flash export the outlines?

I understand you have to specifically embed fonts in dynamic text fields but I'm not sure if this happens automatically for static text. I have no wish to break apart these fields.

Thanks in advance
Karen

Static Text Field Font
Hello,

Quick question please: If I choose to use a font (Century Gothic) in a movie, is this font exported in the static text fields as part of the movie? If a visitor to the site doesn't have the font installed on his machine, would he see a default font, or does Flash export the outlines?

I understand you have to specifically embed fonts in dynamic text fields but I'm not sure if this happens automatically for static text. I have no wish to break apart these fields.

Thanks in advance
Karen

Using Css With Text Field Font Not Working
I'm trying to apply css to a textField for the first time. Everything works groovily except the font? How do you use an embebbed font inside a textfield whose format is controlled via an externally loaded style sheet?

Thanks.

How Do You Set Size And Font To A Dyn Text Field?
How can I change the font and size of a dynamic text field by using actionscript?

Input Text Font Sizing
Alright, I made a big box where a message could go, i set arial font to 14 and it was huge, i set it to 8 and it was big but skinny, my name and email inputs are not as big so the font looks fine in them, why is it making it bigger and how do u fix it?

Copyright © 2005-08 www.BigResource.com, All rights reserved