HTML Text
OK my last question for the day is this:
I have started to use htmlText and use the basic rules but how do I change the colour using the htmlText format, I change the colour of the entire text with the FBInfo.textColor but I want to change just 1 bit how??
cheers
Z
Ultrashock Forums > Flash > Flash Newbie
Posted on: 2003-07-07
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Sending Html Text To Html Dynamic Text Field But It Dosnt Show
code: theNews = "<font color=#FF9900>"+newsRow0newsDate+"</font>"+": "+newsRow0newsStory+newline+"<font color=#FF9900>"+newsRow1newsDate+"</font>"+": "+newsRow1newsStory+newline+"<font color=#FF9900>"+newsRow2newsDate+"</font>"+": "+newsRow2newsStory+newline;
newsArea.textMain.htmlText = theNews;
trace("the news ="+theNews);
The data dosn't display but if i change the textMain.htmlText to .Text then it works, i need the formatted text.
Is ther something wrong with this?
i cant see anything wrong.
Cheers
Paul
Sending Html Text To Html Dynamic Text Field But It Dosnt Show
ActionScript Code:
theNews = "<font color=#FF9900>"+newsRow0newsDate+"</font>"+": "+newsRow0newsStory+newline+"<font color=#FF9900>"+newsRow1newsDate+"</font>"+": "+newsRow1newsStory+newline+"<font color=#FF9900>"+newsRow2newsDate+"</font>"+": "+newsRow2newsStory+newline;
newsArea.textMain.htmlText = theNews;
trace("the news ="+theNews);
The data dosn't display but if i change the textMain.htmlText to .Text then it works, i need the formatted text.
Is ther something wrong with this?
i cant see anything wrong.
Cheers
Paul
[MX04] HTML Tags Needs To Be Disabled In Dynamic Html Enabled Text Fields
Hi Buddies,
Am loading some dynamic text from an xml which has html tags inside dat text. I jus loading dat specified texts into a dynamic text fields where html is enabled and assisgned as a htmlText instead of normal text.
It works fine, but the thing is, i want to disable certain html tags to be rendered but it shud display as it is as a normal texts.
Is there any way to do dat
Dont Want To Render < HTML > Tags In HTML Enabled Dyna Text
Hi All,
Is there any way to display < HTML > tags in the HTML enabled dynamic text field with out actually rendering it ? one constraint is, I want to enable the HTML feature for that text field all the time. because, i want to render some other tags.
The problem is in my text field unable to display msgs having <> characters i.e. even if I say < hello > it is not displaying anything, because, it is treating it as HTML tag and trying to render it. Is there any work around to display this text as it is ??
Thank all in adv,
Scroll Bar For Html Dynamic Text Field Won't Work With Html
Hi:
I'm trying to add a scroll bar to a dynamic text field that is populated with an XML file. (see attached scolltext.zip file).
If I populate the field with plain hard coded text, it works fine. However, in my application, I need the text to contain html formatting codes. When I change the hard coded string to include html, it doesn't appear to work.
Can anyone suggest an alternative way to create a scroll bar for this dynamic text field? I need the html to stay as is because eventually the glossary will be populated via XML through a CF server.
Thanks in advance for any assistance!
Dawnthea
HTML Tag Display In HTML Enabled Text Fields
I have loaded an external text file and displayed it in HTML enabled field so I can use HTML. But I need to display HTML tags for example in a place how can I display HTML tags without flash interpreting it as HTML, I tried using <xmp> tag but it didn't work. Also I tried %3C and %3E for the sake of it but it also interpreted it as HTML. The problem is that the remaining text must be in HTML while I have to display this part as an HTML exmaple.
Embedding Html In Xml Tags, When Rednering Text As Html
Quick question,
I have a site that reads all content from an external xml. The text box that reads this info renders the content as html; does anyone know how to go about putting an html tag in an xml tag so that flash can read it?
So would it be possible to do:
<content>
" Welcome to the site<br>we are happy to have you here<br><img src="logo.jpg"> "
</content>
Xml File Containing Html To Html Text Field
Hi all,
I am currently trying to import some HTML through XML and so far so good however when I import a string of code ie
Code:
some text and <a href="http://www.example.com" target="_blank">a link</a>
using this in XML
Code:
<?xml version="1.0" encoding="UTF-8"?>
<prop amountToShow="6">
<news newsStatus="1">
<date_txt>28 Feb 2004</date_txt>
<headline_txt>headline 4</headline_txt>
<content_txt><![CDATA[some text and <a href="http://www.example.com" target="_blank">a link</a>]]></content_txt>
</news>
</prop>
I get the string
Code:
some text and <a href="http://www.example.com" target="_blank">a link</a>
Where it breaks it down the open square brackets and more into html code.
I want to keep the html code as it is.
Does anyone know how I can do this?
Thanks
Html Text Field Not Parsing Html
hi everyone
another problem. I have a text field marked at html text, and I want to dynamically apply text to it. Works fine and well, but the html (only a href tags) are not being parsed. I've also tried manually putting this into an html text field, and the same thing happens... nothing.
Any help? I'm desperate.
HTML Text Box Not Displaying HTML?
Ok I'm at my wits end with this problem. I've been working on a page for my group's website here at work. The site consists of a few buttons that when clicked, call a function that loads text files containing news and listsings of services into a text box. All the loading works absolutely fine.. no problems. But every now and then when I publish new versions of the swf, the text box just seems to forget that it's supposed to show the text as HTML and displays plain text with the tags around it.
The last few times I published it, it was fine. Today, I added a button (that has no effect on the text box) to the page and POOF the box is broken again. I've tried clicking the "Format as HTML" button for the box as well as trying the textField.html = true; line.. NOTHING makes it display as HTML.
What can I do to fix this?
Getting A Dynamic Text Box's Text From HTML-formatted Text?
Hey! You recognize me yet? I've got (hopefully) one last question for a while. Could somebody please tell me how do to get the text value of a text box with text that's formatted as HTML? ( it was formatted similar to "textBox.htmlText = "...";")
I tried "myVariable = textBox.htmlText", but it just gave me the formatting garbage it's using (<TEXTFORMAT LEADING="2"><P ALIGN="LEFT"><FONT FACE="Verdana" SIZE="12" COLOR="#000000"></FONT></P></TEXTFORMAT>) without the actual text that my users see. I also tried "myVariable = textBox.text;", but it returned a blank variable.
Many thanks, me Flash bruthas
Furry
External Text; Html Text And Embedding Fonts Question - Probably A Quick Solution
I've been reading every post on this that I can find, and so far, I have not stumbled on the solution.
I have a dynamic text box and a text box variable. I load an external text file into the variable and then load the variable into the dynamic text box. The file that gets loaded changes via different buttons pressed. That's working just fine.
The "real" problem is the double line breaks you get when loading in external text. The only way I have found, so far, to solve that is to set the text box to use htmlText and then use the myText.condenseWhite = true; function. That works also. BUT, when set to render text as html, I can no longer embed the fonts. If I try to embed the fonts, the text no longer appears. If the fonts are not embedded, they look bad.
Is there a simple, or not so simple solution? I need very clean looking text that does not have double spaces between lines. Here is a bit of the simple code I'm using. This is attached to a button.
Code:
on (press) {
Spec_txt.autoSize = "left";
Spec_txt.border = true;
Spec_txt.multiline = true;
Spec_txt.wordWrap = false;
Spec_txt.html = true;
Spec_txt.condenseWhite = true;
//Spec_txt.embedFonts = true;
myData = new LoadVars();
myData.onLoad = function(){
Spec_txt.htmlText = this.content;
};
myData.load("parafix.txt");
}
I've had to comment out the embedFonts attribute. When it is enabled, the text does not show.
Thanks for the help.
Dynamic Text From MySQL Problem. Multiline + HTML-rendered Text Wanted...
Hi.
I'm in the process of writing a guestbook using Flash, PHP and a MySQL database. A large part of the Flash-code, is fully functional, but there is one strange problem.
The text i'm echo'ing from the PHP document into Flash, doesnt wrap correctly in my textfield. I've set the textfield to multiline and I've pressed the "Render as HTML"-tab. But the text is displayed with HTML-tags and stays on one line.
This is how it looks: http://www.riminalitet.org/guestbook.swf The buttons below the field are "Next"- and "Back"-buttons for the submissions...(It's danish )
I've experienced that it works if I use
instead of <br> in my HTML-formatted code. But I'd like to use <b>BOLD</b> as well. And if I urlencode my output-code from PHP, nothing changes. Still one line with HTML-tags...
The textfield is embedded in a scrollPane. I'm targeting this field in my LoadVars function. Can this has something to do with the problem?
Should I use the ScrollBar component in stead of the scrollPane to retrieve dynamic text? (This would be a little bugging, since my goal is to display the text nicely with some graphics around it).
Hope some of you guys can help me with this. Bye now...
Loading A Html-tagged Text File Into A Text Field...it's Just Not Working For Me...
hi,
i'm trying to load news.txt into a textfield using loadvars.
news.txt:
-----------------------------------
&news=<p font face="Verdana" size="12"><b>Recent Achievements:</b><br>Congratula etc. etc.
the as:
----------------------------------
loadnews = new LoadVars();
loadnews.load("flash/news.txt");
loadnews.onLoad = function(success) {
newstext = loadnews.news;
trace(newstext);
gotoAndStop(2);
}
the trace is showing that newstext is the text out of news.txt ... in the frame 2 that the onLoad function refers to is a textfield (multiline, with the html as true) which is supposed to display the newstext variable.
If i set newstext to something else ... eg: newstext = "some text" then it works fine ...
what's going on???
Cheers,
Ben
Dynamic Text Box Doesn't Update From External Text/html File
here is my code for a dynamic text box which is reading html from an external text file...problem is the text shows, but when I update it, it doesn't change...unless I empty the cache...I even tried some other suggestions on here such as adding a random # to the end of the file:
ran = math.round(math.random()*1000+1);
LoadVariables("./home.txt?ran="+ran,"")
If(home ne "")
here is a link to the fla file if you want to look at the whole thing:
http://mcc.larrychendesign.com/resou...ntitledmcc.zip
Dynamic Text Box Doesn't Update From External Text/html File
here is my code for a dynamic text box which is reading html from an external text file...problem is the text shows, but when I update it, it doesn't change...unless I empty the cache...I even tried some other suggestions on here such as adding a random # to the end of the file:
ran = math.round(math.random()*1000+1);
LoadVariables("./home.txt?ran="+ran,"")
If(home ne "")
here is a link to the fla file if you want to look at the whole thing:
http://mcc.larrychendesign.com/resou...ntitledmcc.zip
Embed Jpeg In Dynamic Text Using External Text File Html
so I have a website and I am using dynamic html enabled multi-line wrap text boxes and am sourcing the context to fill the dynamic text boxes via text files which contain html...
here are links to my .fla file and .txt file....
http://mcc.larrychendesign.com/untitledmcc.fla
http://mcc.larrychendesign.com/home.txt
I am using flash mx 2004 pro and am exporting/publishing in flash player 7 and actionscript 2.0...
I can't seem to get jpeg's to load, but I can get all the other supported html tags to work...I am using the <img src='untitled.jpeg'> but no image....they are NOT progressive jpegs...but they won't load...why not? I thought embedding non-progressive jpeg images are allowed in flash if publishing in flash player 7 and above and authoring in flash mx 2004 or above...what gives?
any help would be greatly appreciated! and I did stipulate the width and height to try that as well, but it didn't work...this did work back in the day, but I don't remember what I did...
Embed Jpeg In Dynamic Text Using External Text File Html
so I have a website and I am using dynamic html enabled multi-line wrap text boxes and am sourcing the context to fill the dynamic text boxes via text files which contain html...
here are links to my .fla file and .txt file....
http://mcc.larrychendesign.com/untitledmcc.fla
http://mcc.larrychendesign.com/home.txt
I am using flash mx 2004 pro and am exporting/publishing in flash player 7 and actionscript 2.0...
I can't seem to get jpeg's to load, but I can get all the other supported html tags to work...I am using the <img src='untitled.jpeg'> but no image....they are NOT progressive jpegs...but they won't load...why not? I thought embedding non-progressive jpeg images are allowed in flash if publishing in flash player 7 and above and authoring in flash mx 2004 or above...what gives?
any help would be greatly appreciated! and I did stipulate the width and height to try that as well, but it didn't work...this did work back in the day, but I don't remember what I did...
[F8] Displaying HTML Entities In Dynamic Text From External Text Files
I'm pulling content for a dynamic HTML formatted text box from a series of client-editable text files using LoadVars.
Flash 8 allows for the use of HTML entites in HTML text, and my client's text includes copyright and trademark symbols.
If I load some HTML text from within a script, the text box displays entities fine (like &174 to display a ® trademark symbol).
However, when using LoadVars to load the text from an external text file, I can't use ampersands in the text file, because the LoadVars interprets them as indicating the start of another variable.
I tried using Unicode, for example u00ae. Again, this works fine when the text is drawn from within a script, but when the loadVars displays it from the text file, it just displays the Unicode as a literal string. Other HTML formatting in the text files, such as bold or italic, displays fine.
Does anyone know a workaround for this (short of converting all 80 of my text files to XML)?
Embed Jpeg In Dynamic Text Using External Text File Html
so I have a website and I am using dynamic html enabled multi-line wrap text boxes and am sourcing the context to fill the dynamic text boxes via text files which contain html...
here are links to my .fla file and .txt file....
http://mcc.larrychendesign.com/untitledmcc.fla
http://mcc.larrychendesign.com/home.txt
I am using flash mx 2004 pro and am exporting/publishing in flash player 7 and actionscript 2.0...
I can't seem to get jpeg's to load, but I can get all the other supported html tags to work...I am using the <img src='untitled.jpeg'> but no image....they are NOT progressive jpegs...but they won't load...why not? I thought embedding non-progressive jpeg images are allowed in flash if publishing in flash player 7 and above and authoring in flash mx 2004 or above...what gives?
any help would be greatly appreciated! and I did stipulate the width and height to try that as well, but it didn't work...this did work back in the day, but I don't remember what I did...
Embedding Fonts Into HTML Enabled Text Area Component Results In No Text Appearing
I've tried this on both Flash's own text area component and Ghostwire's and have had exactly the same result with both.
Basically, I'm using the text area component to load in an HTML document. The component is supposed to display the Tahoma font but it isn't on all computers as Times might show up. So I went ahead and decided to embed the font. Doesn't matter if I place a dynamic text field off the stage and then select the embed fonts option or make a Font Symbol for Tahoma. If I tell the text area to embed fonts I then render out the .swf and the text disappears. Turn off HTML formatting and the text then appears but the formatting of course, is completely lost. Anyone got an idea of a real fix for this? Or at least an explanation?
Load External Text With Html In Text File...links Possible?
hello forum.....
I loaded an external.txt file into my flash news section so it will be really easy to edit... my problem is when I try to add HTML.. as in ahref tags... the words that are supposed to show up as "links" do not!! I have the html text box checked in the character properties too... is this at all possible ?
Html Text Field Write To Flash Dynamic Text Box
I have a dynamic text field in Flash.
I would like to have users type a message in the HTML text field and have it eventually appear in the Flash dynamic text field.
How can I get text from an HTML text field (on the same page as the swf) to write to the Flash dynamic text field?
Dynamic HTML Text Fields Do Not Display Formatted Text?
Flashkit.com,
In Flash MX I am developing a lot of movies using dynamically populated html text fields. When the user does not have a font I used on their machine swapping happens on all dynamic and input fields. Only static fields display the corrent font. I make sure the text field properties are embedding the fonts. Still all of the dynamic html text fields do not display the formatted text. I have .fla samples I can email to anyone.
I have tried these macromedia solutions with NO success:
http://www.macromedia.com/support/fl...t_outlines.htm
http://www.macromedia.com/support/fl...namic_text.htm
http://www.macromedia.com/support/fl...haredfonts.htm
Does anyone have a working sample .fla they can send me?
-Jimmy
Dynamic HTML Text Fields Do Not Display Formatted Text?
Flashkit.com,
In Flash MX I am developing a lot of movies using dynamically populated html text fields. When the user does not have a font I used on their machine swapping happens on all dynamic and input fields. Only static fields display the corrent font. I make sure the text field properties are embedding the fonts. Still all of the dynamic html text fields do not display the formatted text. I have .fla samples I can email to anyone.
I have tried these macromedia solutions with NO success:
http://www.macromedia.com/support/fl...t_outlines.htm
http://www.macromedia.com/support/fl...namic_text.htm
http://www.macromedia.com/support/fl...haredfonts.htm
Does anyone have a working sample .fla they can send me?
-Jimmy
Loading HTML/Text From External Simple Text File…
To all the Flash Gurus:
Basically how do you do the above? I've gotten very small snipets of text to load from an external text file, but there was probably at maximum 50 characters. This is even after a long load time and a very fast connection (T1/off of the HD).
I'm trying to get this to work so that I don't have to update the flash files to update the text - or rather so that someone else can update them w/o me acting as a middle man except for special occasions. The best example, I think, of what I'm trying to do is www.spartamusic.com
Thanks-
Davin
Putting Text Into Movie Using Dynamic Text And Html Tags?
If i declare a variable name for a text box in flash, then using action script fill in the variable using html tags does it follow all the same rules as straight html as if i were creating a page in notepad or does it need to be formated differently?
HTML Text In A Dynamic Text Box Called From An External .txt File
Hello,
I am trying to get a .txt file containing html text to load into a dynamic text field in flash.
All of the tutorials I have found and the books I have read all do this with a button. I need this to be done without a button.
If anyone knows of a tutorial or could help me out please let me know.
I am using Flash MX 2004 on a mac
Zard
[F8] Load External HTML Text To Use For Text Type Effect
Hi everyone,
I want to use a script which generates a cool text 'type' effect.
But instead of declaring the text where the effect should be applied on, in the actionscript, I want the text to be externally loaded from a textfile.
I got this far: (to test if the text is loaded I made a dynamic textbox called 'thankyou' and that works)
PHP Code:
myData = new LoadVars();
myData.onLoad = function() {
thankyou.html=true;
thankyou.htmlText = this.myVariable;
};
myData.load("thankyou/thankyou.txt");
var txt:String = thankyou;
var i:Number=0;
var format:TextFormat = new TextFormat();
format.color = 0x000000;
format.align = "left";
format.font = "visitor";
format.size = 8;
this.createEmptyMovieClip("conteneur",this.getNextHighestDepth());
this.createEmptyMovieClip("curseur",this.getNextHighestDepth());
this.curseur._y=this.conteneur._y=60;
this.curseur._x=this.conteneur._x=65;
this.curseur.createTextField("zone",this.curseur.getNextHighestDepth(),0,0,20,20);
this.curseur.zone.text="";
this.curseur.zone.autoSize=true;
this.curseur.zone.embedFonts = true;
this.curseur.zone.setTextFormat(format);
tempo = setInterval(placelettre, 100);
tempo2 = setInterval(affiche, 150);
function placelettre(){
conteneur.createTextField("lettre"+i,conteneur.getNextHighestDepth(),conteneur._x+conteneur._width,0,20,20);
conteneur["lettre"+i].text = txt.substr(i,1);
conteneur["lettre"+i].autoSize=true;
conteneur["lettre"+i].embedFonts = true;
conteneur["lettre"+i].setTextFormat(format);
curseur._x=conteneur._x+conteneur._width+conteneur["lettre"+i]._width;
i++;
if (i == txt.length){
clearInterval(tempo);
clearInterval(tempo2);
removeMovieClip(curseur);
}
}
function affiche(){
if (curseur._visible==true){
curseur._visible=false;
}
else{
curseur._visible=true;
}
}
This is my textfile:
PHP Code:
myVariable=Testing testing oh yes I'm testing %26 Flash and actionscripting are great fun!!! etc.
How do I tell the effect script that it should use the loaded text file?
And how do I make the generated texteffect box multiline?
I think it just needs a little adjustment, maybe you could take a quick look?
Thanks for any help!
Rendering External Text File To HTML In Dynamic Text Box?
alright, im having a problem at this site: http://pvcent.com ... the dynamic text box that i created points to a .txt file on my server. is there any way for me to be able to use html tags and what not in this external .txt file and have it be parsed into html for the viewer to see in the dynamic text box?
Rendering External Text File To HTML In Dynamic Text Box?
alright, im having a problem at this site: http://pvcent.com ... the dynamic text box that i created points to a .txt file on my server. is there any way for me to be able to use html tags and what not in this external .txt file and have it be parsed into html for the viewer to see in the dynamic text box?
Mx.transition With _alpha And Html Text Loaded From A Text File
Working on something that is loading html formated text from a text file into a movieclip then applying an _alpha transition to fade in the movie clip.
Problem is, if I embed the font the text does not show up, but if i do not embed the font the text shows up but does not fade in. The text field is set up to render as html. and the data is applied using ".htmltext". Anyone have a solution?
Space In Html Freaks Out Text Format In Text Field
heres the html
<P ALIGN="LEFT"><FONT FACE="Helvetica" SIZE="43" COLOR="#000000"><A HREF="http://www.thelink.com" TARGET=""><U>link1</U></A> <A HREF="http://www.thelink.com" TARGET=""><U>link2</U></A></FONT></P>
The HTML Text Field Won't Center The Text Inside... Why?
Hello there,
The thing is: I have a HTML text field in my movie that loads a variable from a txt file. I set in the text field paragraph option the 'center' mode.
Ok, it should work fine, but it doesn't... The text loads fine, but it starts in the left side of the field and not in the center as wanted.
I tried to put HTML center tags in the txt like:
Code:
&text=<center><a href="http://www.link.com">This is my text</a></center>
and:
Code:
&text=<div align=center><a href="http://www.link.com">This is my text</a></div>
Both options didn't work as well.
Is there a way to do that or I'll just have to let the HTML aside and use regular dynamic text fields?
Thanks in advance and sorry for the 'ingrish'
Justifying Html Text In Dynamic Text Field
i as'ed html text into dynamic text field, but i can only get it to align left, right or center.
is there anyway to justify the html text so that it looks good?
the example i'm talking about is seen here:
http://www.eight.nl/ttb/ttb.html
Dynamic Text Boxes, HTML, Text Files, Oh My
Can you apply HTML formating for text inside a TEXT file, load that into flash, and then have a DYNAMIC TEXTBOX display the text with the proper formatting?
If you can does anyone know of a good resource where this is demonstrated?
Thanks,
Html Text - Dynamic Text Field - Escape?
I am trying to embed a link into a html external text document that I am importing into a dynamic text box.
The url is passing a variable to a cgi script and has a "?" and a "&" in it.
Is there a way to escape these characters or another way to get this url into my text field?
Thanks!
Load Html Text Into Dynamic Text Field
Does anyone know the action script I need in order to load an external html text file (e.g. mytext.htm) into a dynamic text box. The dynamic text box has an instance name of ArticleTxt. Also where do I apply the action script, is it frame based? or do I apply it to the text box?
How To SetClipboard Of HTML Text Filed In Plain Text
Ok I have a text field that is set to html. It displays in plain text which is what I need. For example
----PLAN text example---
aaaa
bbbb
cccc
---Actual HTML ----
<TEXTFORMAT LEADING="2"><P ALIGN="LEFT"><FONT FACE="_sans" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0">Issue: </FONT></P></TEXTFORMAT><TEXTFORMAT LEADING="2"><P
You get the idea. So is there any way to copy that HTML textarea field in plain text to the clipboard?
Thanks for any help
Steve
Sending Text From Html To Dynamic Text In Flash
Hi there.
On my page I want to use a dynamic textbox in flash as my headers to get som effects and certain fonts on them.
That means I want to load my flash like "header.swf?text=This header is great"
Could anyone help me with how I would go about doing this?
Html Text Link Extends Beyound Text
I am using html enabled dynamic text fileds, and when I add an <a href>, it makes the area of the text field after the link active as well.<BR/>see it here, in the blog list on the lower right.
www.fifty2one.com
on a nother site, I an dynamically attaching a movie clip and filling the data for a project. If a link is added to the text box of one of the projects, it seems to make all of the text boxes of the projects before it active as well.
www.daielgoldmusic.com
If you go to music project #8 Hawaii, there is a link there for a qt movie. click back to any of the projects before it, and scroll over the area where the link for #8 is, and you will get an active link area.
I can't figure this out.
Thanks
Russ
Difference Between Button Text And Html Loaded Text
Attached is a flash radio I'm making - the picture and music links won't work as I've omitted them from the .zip file. But the problem is that the text I've used for buttons on the left hand side is very different from the text which appears when you actually click on a button. I want them to look the same and for the button text to look like the description text which appears when you click on a button.
They are both Arial font but the weighting of the button text looks higher than text loaded from an external .txt file and I don't know why.
HTML Text In Dynamically Created Text Fields?
Hi,
I am creating a series of text fields to display data from an xml file.
eventClips[i].createTextField("url_txt",9,0,0,250,30);
eventClips[i].url_txt.htmlText = "<a href=""+child.attributes.url+""></a>";
I can't get the text fields that I am creating dynamically to accept html, why????
I have tried .html = true;
Am I really going to have to create my own button and use getURL?
what's the secret?
I am using flash 8, as2.
HTML Enabled Text Field Not Showing Text... Help.
Last edited by myles724 : 2006-03-29 at 06:47.
I've got a dynamic text field on the stage with the variable name myField. I've clicked the <> button to Render Text as HTML.
I've also attached the code
myField.htmlText = "<b>My Name</b>";
on the first frame...
problem is, nothing shows up in the text field when I preview it. What's the problem?
UPDATE: it seems to work fine when the font isnt embedded... so how do i embed a font and format it using html?
|