Problem With A Font In Dynamic Text Field
I have made a digital clock for my homepage, the problem is that the font i use for my clock is not available in the server(when i view it on server, default font is displayed). How can i embed the font, so i don't have to install it on server? It's a public server and i don't have administrator acess to it.
FlashKit > Flash Help > Flash MX
Posted on: 05-12-2003, 02:36 PM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
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@
Embedding A Font To A Dynamic Text Field
alrighty, so i have this dynamic text field that reads out from a text file... so even if i set a certain font to the field, people that don't have that specific font installed on their computer will not visualize the field the way it was supposed... this is due to the fact that one cannot convert a dynamic text field to be a symbol so no embedding is possible right?
any ideas/suggestions?
thanks in advance!
Dynamic Text Field - 2 Different Font Sizes
Is there a way to create 2 different font sizes in the same dynamic text file? I want to add text to a dynamic text field at a certain size (say 20) and then add more text at another size (say 12)?
Font Consistency In Dynamic Text Field
It seems simple, but I can't fix it: I have a scrollable text field with some bold text and some regular text (Arial regular). But when I publish it, all the text is boldface. Probably a very simple fix, but very frustrating. Thanx.
[F8] Embedded Font In Dynamic Text Field
This is driving me mad...
I have a dynamic text field in a movie clip - if I don't embed the font the text shows up, when I embed the font it stops working. I've tried making it multiline, single line, html, not html, changing the font etc. but nothing works
Anybody know why? I have to embed the font cos it's an unusual one and anyway I'll be masking the text later...
Blurred Font, Dynamic Text Field
Hi all,
I have a vertical menu created with attached movie Clips that contain dynamic text fields. The names in the textfield are from an xml file, the problem is the text becomes blurred as the buttons go down and the ._y increases
ActionScript Code:
myXml = new XML();
myXml.ignoreWhite = true;
myXml.onLoad = function(success) {
if (success) {
loadFonts();
} else {
trace("XML not loaded");
}
};
var btn_spacing = 24;
myXml.load("places.xml");
loadFonts = function () {
start = myXml.firstChild.childNodes;
for (var i = 0; i<start.length; i++) {
info = start[i];
fontBtn = nav_mc.holder_mc.attachMovie("btn_mc", "btn_mc+i", i+1);
fontBtn.base_mc._alpha = 0;
fontBtn._y = btn_spacing*i;
fontBtn.name = info.attributes.name;
fontBtn.id = info.attributes.id;
fontBtn.name_txt.text = fontBtn.name;
fontBtn.onRollOver = function() {
this.base_mc._alpha = 100;
this.name_txt.textColor = 0x000000
};
fontBtn.onRollOut = fontBtn.onDragOut=function () {
this.base_mc._alpha = 0;
this.name_txt.textColor = 0xffffff
};
};
Embeded Font For Dynamic Text Field
I have 3 font buttons. 1 is Arial, 2 is Brush Script, 3 is Full Block. When someone clicks on one of these buttons it changes the font of a dynamic text field. The problem is that not everyone has these fonts on their computer so it won't display when they view the swf. Does anyone know how to embed multiple fonts into a dynamic text field. Maybe I need to embed the font into the swf and tell the dynamic text field to look there instead of the users system for the font. Any help would be great. I'm not sure how to do this.
This is the script I have been using for my button. As I said though, unless you have this font on you system it won't display in swf.
gothicBlock.onRelease = function(){
_root.fontstyle = "HandelGothic BT";
}
maybe after the "=" it neets to point to where the font is stored and then use it????
Edited: 06/18/2007 at 03:04:54 PM by relief8
Blurred Font Dynamic Text Field
Hi all,
I have a vertical menu created with attached movie Clips that contain dynamic text fields. The names in the textfield are from an xml file, the problem is the text becomes blurred as the buttons go down and the ._y increases
ActionScript Code:
myXml = new XML();myXml.ignoreWhite = true;myXml.onLoad = function(success) { if (success) { loadFonts(); } else { trace("XML not loaded"); }};var btn_spacing = 24;myXml.load("places.xml");loadFonts = function () { start = myXml.firstChild.childNodes; for (var i = 0; i<start.length; i++) { info = start[i]; fontBtn = nav_mc.holder_mc.attachMovie("btn_mc", "btn_mc+i", i+1); fontBtn.base_mc._alpha = 0; fontBtn._y = btn_spacing*i; fontBtn.name = info.attributes.name; fontBtn.id = info.attributes.id; fontBtn.name_txt.text = fontBtn.name; fontBtn.onRollOver = function() { this.base_mc._alpha = 100; this.name_txt.textColor = 0x000000 }; fontBtn.onRollOut = fontBtn.onDragOut=function () { this.base_mc._alpha = 0; this.name_txt.textColor = 0xffffff }; };
Dynamic Text Field Font Change
Hi guys, i need a little help. I need to know how to set a dynamic fields' font (and other properties) with actionScript. Can anyone help?
I thought it could be something like:
Code:
myDynamicTextField.font = "Comic Sans MS";
or at a long shot:
Code:
myDynamicTextField.setStyle("fontFamily", "Comic Sans MS");
(The second one only seems to work with "TextArea" components from the Components menu)
Change Font Of A Dynamic Text Field With As 2.0
Dear Kirupa,
i'm a new user and i found a part of solution of my problem in this your article:
http://www.kirupa.com/developer/acti...nging_font.htm
Now i need another little help. I need to change the text in the text field from an input text and not from the string associated to the button you have done. It is possible?
You associated this to the buttons:
on (release, rollOver) {
font2 = "<font face="Times New Roman" >Times New Roman</font>";
}
And i would like to do something like this :
on (release, rollOver) {
font2 = "<font face="Arial" >"+inputfont2.text+"</font>";
}
Is it possible? what's wrong? cause i have tried to do this but no way.....
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 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.
Re: Shared Font Dynamic Text Field Chesnut :-/
Hello,
I have trawled forums all day and still can't work out if there is a solution to this or not so......please! Any help/advice is greatfully received on this one.
I am creating a site in MX with a non-device font used frequently within it. The site contains multiple swfs loaded into the same level. In order to save file size I wanted to share the font.
I have a font symbol embedded in a shared library, exported at runtime with a url etc.
This font is called creampuff and the site loads multiple swfs which all import the creampuff font at runtime. For all the static text fields, the imported, shared font works fine. But, the dynamic fields' text appear as a device font instead of the creampuff font. I can't work out why.
I don't want to use AS to workaround this problem, I just wanted to know if I am doing something wrong, or if what I am trying to do is not possible?
This is really sucking at the moment so any
advice would be really great :-)
All best
Sam
Re: Shared Font Dynamic Text Field Chesnut :-/
Hello,
I have trawled forums all day and still can't work out if there is a solution to this or not so......please! Any help/advice is greatfully received on this one.
I am creating a site in MX with a non-device font used frequently within it. The site contains multiple swfs loaded into the same level. In order to save file size I wanted to share the font.
I have a font symbol embedded in a shared library, exported at runtime with a url etc.
This font is called creampuff and the site loads multiple swfs which all import the creampuff font at runtime. For all the static text fields, the imported, shared font works fine. But, the dynamic fields' text appear as a device font instead of the creampuff font. I can't work out why.
I don't want to use AS to workaround this problem, I just wanted to know if I am doing something wrong, or if what I am trying to do is not possible?
This is really sucking at the moment so any
advice would be really great :-)
All best
Sam
Superscript Font For Dynamic Html Text Field
Hello Forum
I am loading in a bunch of text and format them in flash into a newspaper-like layout.
The problem I am running into and can't seem to solve are superscript characters. I've used the GG superscript fonts from this website: http://blog.ggshow.com/index.php/reference?cat=121
Tthe example works fine. But once I try to implement it into my application it fails to work or simply doesn't show up.
Here's my code:
--------------------------------------------
External XML file:
--------------------------------------------
[...]
<item type="text"><![CDATA[.This is a sample text <i>Italic Font here shows up right</i><font face="GG Superscript">superscript here doesn't work</font>, ]]>
</item>
</p>
[...]
--------------------------------------------
Reading the Texfield:
--------------------------------------------
[...]
public static function getNodeContent(_xml:XML):String{
return String(_xml.firstChild.nodeValue);
}
[...]
--------------------------------------------------
creating the textfield:
--------------------------------------------------
txtHolder = itemMC.createEmptyMovieClip("txt",1);
Textfield.create(txtHolder,XmlArticleData.getNodeContent(itemNode),"articleText")
--------------------------------------------------
The Textfield class:
-------------------------------------------------
public static function create(_movieClip:MovieClip,_str:String,_type:String){
switch (_type) {
case "articleText":
_movieClip.createTextField("txtMC", 1, 0,0, 1, 1);
_movieClip.txtMC.autoSize = "left";
_movieClip.txtMC.type = "dynamic";
_movieClip.txtMC.border = false;
_movieClip.txtMC.multiline = true;
_movieClip.txtMC.html = true;
_movieClip.txtMC.embedFonts = true;
_movieClip.txtMC.selectable = false;
_movieClip.txtMC.wordWrap = true;
_movieClip.txtMC.antiAliasType = "advanced";
_movieClip.txtMC.thickness = 1.2;
_movieClip.txtMC.sharpness = 0;
var fmt:TextFormat = new TextFormat();
fmt.font = "ArticleTextFont";
fmt.indent = 10;
fmt.bold = false;
fmt.italic = false;
fmt.size = 11.5;
fmt.leading = 10;
fmt.color = 0x000000;
fmt.align = "justify";
}
_movieClip.txtMC.htmlText = _str;
_movieClip.txtMC.setTextFormat(fmt);
-----------------------------------------------------------
Any ideas?
Thanks!
Cheers
StephanK
Inconsistent Font Size In Dynamic Text Field
I am importing XML into a dynamic text field in flash and setting the font size in ActionScript with the code pasted below. This is a question and answer quiz and for some reason on some of the answers the font-size is inconsistent with the rest. Maybe a few sizes smaller. Not sure why this is happening and only on a few of them. Any ideas? and how I can fix??
Attach Code
format = new TextFormat();
format.font = "Arial";
txtSize = 14;
format.size = txtSize;
format.color = 0x000099;
My Dynamic Text Field Is Blank When I Embed Font
Why's my dynamic text field blank when I embed the font chosen?
The text field loads text from an external .txt file with html codes.
There's no problem when I mark "No charaters" but when "All" or "Only" is marked the text field is blank?!?!?
I've tried to remove the html codes from the external file, but it makes no difference!
Poor Font Quality In Flash - Dynamic Text Field?
Refering to the attached images:
Dynamic text fonts are found to have poor quality. They can get suddenly BOLD at certain font size!
Embedding the font will resolve the issue but I do not have that file size luxury.
This problem is bugging my website because I am adjusting the text field font size dynamically, therefore at certain point all text will suddenly become BOLD,
Is this is a bug or a limitation in dynamic text field? p/s:flash player 10 is also showing the same behaviour...
Dynamic Text Field Displaying Wrong Font When Published
The header says it all..
When I publish anything set to dynamic text it displays some sort of Times New Roman font, but when it's set to static it displays fine. The font I'm using is plain Verdana, no html formatting or anything fancy. The problem occured shortly after I imported some text from illustraor.
Mer
Html-formatting Of Dynamic Text Field With Embedded Font
If you're creating a htmlText field via the createTextField method, is there a way to get html formatting like <b></b> to show up if you are also embedding a font?
I'm guessing not, since you can only embed a single font in a TextFormat, and you would have to embed both italic and bold variants too to make it work. Is this true?
Maybe I'm better off creating a generic text field on the stage with both bold and italics embedded, and use the attachMovie method instead?
This is my code:
ActionScript Code:
myformat = new TextFormat();
myformat.font = "Akzidenz_Grotesk_BE_Light";
myformat.size = 20;
curr_image = curr_top.createTextField("largetext", 401, 242, 32, 682, 254);
curr_image.selectable = true;
curr_image.multiline = true;
curr_image.html = true;
curr_image.embedFonts = true;
curr_image.htmlText = "Hello <i>this</i> is a <b>text</b> field";
curr_image.setTextFormat(myformat);
My Dynamic Text Field Wont Display Some Font Characters
I have a dynamic text box that loads text from an external file... mmy problem is that the chatcters æ, ø and å (and the right part af the word they appear in) are displayed as cute little rectangles...
What to do, what to do??
I've tried to "embed to font outlines" (don't knows what it means, but why not try??), but then the text just disapears
heeeeeee(eeeeeeeeeee)lp
Increase/decrease Font Loaded In Dynamic Text Field?
Hello, is there a way to add a plus and a minus button to increase/decrease font that is being loaded into a dynamic text field? The pixel font is set to 8 so I'd increase it to 16 if the user is having trouble reading the small text.
Dynamic Text Field Displaying Wrong Font When Published
The header says it all..
When I publish anything set to dynamic text it displays some sort of Times New Roman font, but when it's set to static it displays fine. The font I'm using is plain Verdana, no html formatting or anything fancy. The problem occured shortly after I imported some text from illustraor.
Mer
Dynamic Text Field Uses Style Sheet, 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;
}
Embedded Font In Dynamic Txt Field
After reading allot of posts about embeded fonts in dynamic AND static text fields, I am fully aware of the problems regarding these issues. Still, I haven't read about the problem I'm currently having...
I made a text field with HTML content in it, and had to use a dynamic text field, otherwise, my scrollbar I had added would not work. I embedded the font into the swf file, otherwise it would show up totally different on other systems. So far so good... I thought... once I embedded the font in Flash MX (Character ----> All characters) it showed my HTML text just fine... except for the BOLD headers.. these headers disappeared!
I was surprised, but I was hoping one of you gurus out there would recognize the problem and maybe he or she could help me out?
Mojokin out
Shared Font & Dynamic Field, HELP
Hey all,
So what is up with shared fonts and dynamic fields. I have been reading for hours through the search results of the forum but only find people with the same issues and no answers.
The macromedia tech notes don't help as i've tried many times on this issue and each time a system font is displayed.
It really sucks as my whole site is xml driven and all the fields are dynamic, i will be really upset if i can't sort this out.
Any help? i'm using Flash mx.
Thanx
Problem Embedding Font For Dynamic Field
Is it just me or does flash sometimes give problems in regards to embedding fonts. Basically I have an external CSS file and an external html file. The CSS file is as follows:
Code:
p{
font-family: kartika;
font-size: 17px;
color: #FF0000;
}
.heading{
font-size: 22px;
color: #0000FF;
}
The html file is as follows:
Code:
<html>
<span class="heading">Learning Actionscript</span>
<p>
This is some text. This is some text.This is some text.This is some text.This is some text.This is some text.This is some text.This is some text.This is some text.This is some text.This is some text.This is some text.This is some text.This is some text.This is some text.This is some text.This is some text.This is some text.This is some text.This is some text.This is some text.This is some text.This is some text.This is some text.This is some text.This is some text.This is some text.This is some text.This is some text.This is some text.
</p>
</html>
And the Actionscript is as follows:
Code:
information_txt.multiline = true;
information_txt.wordWrap = true;
information_txt.condenseWhite = true;
information_txt.html = true;
var nInterval:Number;
var htmlLoader_lv:LoadVars = new LoadVars();
var cssStyles:TextField.StyleSheet = new TextField.StyleSheet();
cssStyles.load("styles.css");
cssStyles.onLoad = function(bSuccess:Boolean):Void{
if(bSuccess){
trace("css loaded successfully");
information_txt.styleSheet = this;
htmlLoader_lv.load("info.html");
}else{
trace("error loading css file");
}
};
htmlLoader_lv.onData = function(htmlPage:String):Void{
information_txt.text = htmlPage;
};
Now all the text etc loads properly and even the CSS displays in the correct font i.e Kartika (because i have Kartika installed).
Now what ive tried to do to embed the Kartika font is this:
(1) made a dynamic text field OFF stage and selected Kartika font for it and embedded it using the character button in the properties inspector.
I then published the movie. Then what i did was remove the Kartika font from my fonts folder(to simulate a computer without the font).
However when i then run the swf by itself(NOT in flash) ... the font is NOT displayed as Kartika....
I then reinstalled the font and instead made a STATIC text field off stage using the Kartika font and then repeated the above procedure but again the font does nto seem to have embedded...
Does anyone have any idea what the problem could be? Any advice, comments appreciated....thanks in advance.
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
Trying To Pass Text From Form Text Field To A Flash Dynamic Text Field
Hi, I was hoping someone might enlighten me as to how/if I can do this...
Currently I'm using javascript which works fine to pass text from textfield A to textfield B:
Code:
window.onload=function()
{
document.forms.form1.shirtText.value=document.forms.form1.KitGroupID_16_TextOption_38.value
}
Is there a way to pass the textfield A text to a dynamic text input (flash) as I'd like to use the font embedding flash offers. I can make it work when loading a value from a txt file but I'm not sure how to access the value identified above as KitGroupID_16_TextOption_38 and make it appear in a dynamic input box. Eventually I might want to have 3 font choices for the user but I'd like to just see if I can get this working properly first.
Your help/advice would be greatly appreciated,
-Scott
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.
Embedding Font And Dynamic Html Text -> Font Is Gone
Hi there ,
I've been searching all over this forum and searched on Google for an answer to this question but can't find an answer that works to me.
I have some dynamic textfields and I retrieve the data from a databases. Each textfield has a handwritten font which I embed using Character Options in the Text Properties. That works fine.
The problem is, when I check the 'Render as HTML' checkbox and send simple HTML-tags to it, the html-tags still work but the handwritten font is gone! I really tried lot of things but it really doesn't work to me.
I really hope someone can help me. I really appreciate it!
Kind regards,
forcer
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
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
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
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.
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
Embedded Font Text Field's .text Not Replacing
Is there any special trick to replacing the text in a dynamic text field that has a font embedded via AS? I have a textfield that I 'd like to replace the txt in on a mouse click, but the text just stays the same. I've put traces all around, and after the step where the text should be replaced, flash traces teh field as hacing no text.
|