How Do You Render An ' In Text File As HTML
When I load my txt files into my dynamic text field, which is rendered as HTML it turns all of my can'ts into can[]ts. It doesn't recognize the " ' " symbol.
Anything that I can do about this?
Thanks, David
FlashKit > Flash Help > Flash Newbies
Posted on: 08-20-2003, 10:49 PM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Render Text From An External File As HTML?
Okay, this should be pretty straight forward. I've read a couple articles and it seems all you should have to do is make sure "Render text as HTML" is selected, right?
Well, it doesn't work for me. I see the actual HTML tags in the text when I test the movie.
Could it be something to do with the code (below) for reading the external file?
loadText = new LoadVars();
loadText.load("newstext.txt");
//creating the loadVarsText function
loadText.onLoad = function() {
scroller.text = this.contenttext;
};
Thanks in advance for the help!
Why Won't Flash Render HTML To A Text Field From A Loaded File?
Im loading a news.txt file for my website and would like to render the textfield as HTML so that I can post links and breaks (w/ the carraige return code) in my text file, that are then loaded in. It will read HTML if I do it w/ in flash, but not from a file. WHY?!?
-Tyler
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,
How Do I Render Html Tags Within A Cdata Section Of An Xml File Correcetly?
Hi guys
I've got an xml file which uses <![CDATA[ ]]> tags. I've got simple html code within these tags like <b> and <p>
when I read the content of these nodes into flash it is displaying the tags like this:
hi<br/>my<br/>name<br/>is<br/>Joe<br/>
and not
hi
my
name
is
Joe
Can anyone tell me what i'm doing wrong?
Thanks
Render Text As HTML
When I have a dynamic text field and check the 'Render Text as HTML' box, it renders simple carriage returns as <br> statements. I have t be very careful in my database not to place the returns in there to not have them rendered. Any idea why it is doing this or how to avoid it?
Render Text As HTML
is it possible to dynamicly change the color of the text..
I have a dynamic textField named "output", but for some reason the <font color> tag doesn't work..
_root.output = "<font color=red>HelloWorld</font>" has no effect, it doesn't show anything..
_root.output = "<b>Hello</b><i>World</i>" works perfect.. does anybody have some fresh insights
Render HTML Text? How?
I've been playing around with a flash component scroll bar today and have managed to customise and get it working the way I want all apart from its ability to render html - could you possible take a quick look and point me in the right direction?
Many Thanks,
dEVS!
I've just uploaded the file here...
www.kr8iv.co.uk/scrolling_text_mx1.fla
Render Text From PHP To HTML
Hi all,
I using this setup to load text from a PHP file. The text is formatted to HTML by the PHP file.
Frame 1
this.loadVariables("blahblah.php");
Frame 5
TextField.text=this.Info;
I then check the "Render text as HTML" box.
And off we go, but no, the field displays the text as simple text including allthe HTML tags.
What am i doing wrong?
Text Box Render As Html
I'm using the basic Macromedia dynamic text box script.
loadVarsTextShows = new LoadVars();
loadVarsTextShows.load("shows.txt");
loadVarsTextShows.onLoad = function(success) {
if (success) {
scrollerShows.htmlText = this.shows;
} else {
trace("not loaded");
}
};
This works great. But, if I set the text box html property to true in AS, or simply click the "render text as HTML" button, the text no longer shows up. Then I unclick it, it returns.
I'm stumped. Any suggestions?
Text Does Not Render As Html
As the heading suggests, I am trying to have flash render my dynamic text as html and it refuses, it spits out: "This is <b> bold text </b>" showing the tags instead of actually making the text bold. I have tried setting it to render as html both by clicking the button and by typing it in script, and it still refuses. I have followed the most basic of online tutorials and yet it does not do it for me! Any help will be greatly appreciated!
Text Won't Render As Html
Hi,
I have a simple dynamic text box (dtb) connected with a scrollbar component. If I give the command for the dtb load a text file, everything's ok EXCEPT it won't load the text as html tags and text - just plain text.
I don't know what more can I do (the render as html button is selected).
Help, please.
Rigel_kent
Text Won't Render As Html
Hi,
I have a simple dynamic text box (dtb) connected with a scrollbar component. If I give the command for the dtb load a text file, everything's ok EXCEPT it won't load the text as html tags and text - just plain text.
I don't know what more can I do (the render as html button is selected).
Help, please.
Kepler
Render HTML TEXT
I have a problem...
in my Movie clip i use a share font, i import in a Dymanic Text a TXT file as html text.
If I use character embedding hmtl tag doesn't work, if i don't embed character html tag works correctly.
I need use character embedding because render test is best!
tank you
XML Text Vs Html Render
I had this line in my file before loading the XML file : XML.ignoreWhitespace = true;
Even if this parameter is set, when I take the node and push it in the html textfield, all HTML is parse, I mean bold, italic, etc.., but It keep all tabulation space of my XML file
Any idea why
Render Text As HTML
rendering text as HTML never works for me...the tuts arent helping much either...
what im trying to do is have a scrollable, dynamically loaded textbox to display links. ive tried most everything and i just cant get it to work. HELP!
Render Text As Html
hi everyone,
im using render text as html option in flash mx, and it renders everything else i need perfectly except < img > tags, i till now havent realy found a solution to get the images needed on the right place.. any idea how i could fix the problem? it ignores < img > tags.
One suggested to:
Quote:
Flash can only import jpg and swf files.
Include width and height attributes in the img tag, then use
textFormat.blockIndent and margin to make a space in the text. Then use
loadMovie to insert the image. It's a bit of a nightmare actually because
TextFormat.getTextExtent can be a bit peculiar...
it sounds good, but i suppose im a bit noobish with actionscript.. i havent found much help on textFormat ..
Any new ideas how to fix the problem? or coudl explane me what i quote here a bit wider?
Thanks in advance,
Melborp
Render Text As Html
Hey,
I've had fun with the image gallery / xml tutorial, great stuff ! Now i enabled the text field for html rendering, i changed the xml into something html ( a link ) but i get the message : "null"
What am i doing wrong ?
the node looks like this :
<pic>
<image>images/imagebank1.jpg</image>
<caption><a href="http://www.kirupa.com">Link</a></caption>
</pic>
Greetz,
DiGiTi
Text Does Not Render As Html
As the heading suggests, I am trying to have flash render my dynamic text as html and it refuses, it spits out: "This is <b> bold text </b>" showing the tags instead of actually making the text bold. I have tried setting it to render as html both by clicking the button and by typing it in script, and it still refuses. I have followed the most basic of online tutorials and yet it does not do it for me! Any help will be greatly appreciated!
Text Won't Render As Html
Hi,
I have a simple dynamic text box (dtb) connected with a scrollbar component. If I give the command for the dtb load a text file, everything's ok EXCEPT it won't load the text as html tags and text - just plain text.
I don't know what more can I do (the render as html button is selected).
Help, please.
Kepler
Render Text As Html
Hey,
I've had fun with the image gallery / xml tutorial, great stuff ! Now i enabled the text field for html rendering, i changed the xml into something html ( a link ) but i get the message : "null"
What am i doing wrong ?
the node looks like this :
<pic>
<image>images/imagebank1.jpg</image>
<caption><a href="http://www.kirupa.com">Link</a></caption>
</pic>
Greetz,
DiGiTi
Render Text As Html
is there a way of changing the size, color, position (eg center), etc of text using this feature?? i can only seem to change the font. also is there a way of inserting pictures using this???
Render Text As HTML - What Exactly Does That Mean?
I have a fairly simple question about this button...
Search engines read HTML code which helps your site get google'd, yahoo'd, etc... And in flash, you cant do this because theres nothing for the search engines to read.
So does this button basically make it so the text is readable to the search engines? Or am i way off?
THANXS :)
Render Text As Html Dynamically
Hi there,
When i try to render text as html dynamically, the text box display is displaying the html tags but not the html output. I have rendered the text as html in flash & have minor tags like font color, bold, italics & bullets. BUT IT DOESNT WORK!!!
Please help
Rgds
Bhaskee
Render Dynamic Text As Html
I'm using loadVariables to enter text into a dynamic text field.
When I don't click the 'render text as HTML' option, it works fine. But when I do choose this option, my text no longer loads in. Even if I don't mark up the text with any tags, it still doesn't load in.
What am I doing wrong?
My text box variable is myText.
My text document that gets loaded in is called text.txt.
The code on the first frame says:
loadVariables ("text.txt", myText);
The first line of the text document starts with
myText=
Render Html Text Problems
Hello,
I am trying to use html tags in my movie. Here is what I have done:
The text is from external files that are loaded with an onload event. mainTxt is my dynamic textbox instance.
On first frame I have this;
_root.mainTxt.html=true;
Loading the text file and assigning the text to the textbox is this;
onClipEvent (load) {
loadVariables("home.txt", _root.load1 );
}
onClipEvent (data) {
_root.mainTxt.htmlText = home;
}
The text in the file home.txt is this;
home=Welcome to the online resume for
Johnathon A. Nolastname .
I have no problem inporting the text file. The results I am getting is ;
Welcome to the online resume for
.
Yes, the period is on the next line. I am trying to make the text bold.
Is it also possible to render links this way? I have a few emails in otheer text files that are loaded. I would like them to be active.
Any help is greatly appreciated
Render Html Text Problem
Hello,
I am trying to use html tags in my movie. Here is what I have done:
The text is from external files that are loaded with an onload event. mainTxt is my dynamic textbox instance.
On first frame I have this;
_root.mainTxt.html=true;
Loading the text file and assigning the text to the textbox is this;
onClipEvent (load) {
loadVariables("home.txt", _root.load1 );
}
onClipEvent (data) {
_root.mainTxt.htmlText = home;
}
The text in the file home.txt is this;
home=Welcome to the online resume for
Johnathon A. Nolastname .
I have no problem inporting the text file. The results I am getting is ;
Welcome to the online resume for
.
Yes, the period is on the next line. I am trying to make the text bold.
Is it also possible to render links this way? I have a few emails in otheer text files that are loaded. I would like them to be active.
Any help is greatly appreciated
Render Text As Html Wiv Mysql
hey guys
i have set up my flash to render as html as an input, this data is then sent to a mysql database via php.
the stuff that is sent to the mysql is stored as
Code:
<TEXTFORMAT LEADING="2"><P ALIGN="LEFT"><FONT FACE="Arial Black" SIZE="12" COLOR="#000000"></FONT></P></TEXTFORMAT><TEXTFORMAT LEADING="2"><P ALIGN="LEFT"><FONT FACE="Arial Black" SIZE="12" COLOR="#000000">TESTING</FONT></P></TEXTFORMAT>
now on another page i have set a dynamic text field to render text as html, but it shows the exact text as above,
i have no idea why this is the case.
anyone know how to solve this?
love demo can be seen here:
http://www.mk-net.co.uk/Homepage.html
Render Text As HTML, Problem
OK, I have one big/small problem, so here it is.
when I load text to dinamic text field using "render text as HTML" , and use vars in text with "sup" in flash I should get same thing as in HTML like this,
t1=myTextHead <sup><font size="-1">TM</font></sup>
and I get same thing as I put it without "sup" tag.
t1=myTextHeadTM ... like this
'Render Text As HTML' Problem
When using a Dynamic Text Box you will need to press the 'Render text as HTML' in order to write different styles (centered/left/right/bold/italic/font/size/etc.).
I am using a Dynamic Text Box in my scrollbar, but when 'Render text as HTML' checked it will show all the text as one line in the .swf
My question is:
Why does it show it all in one line? and what can I do to avoid it?
Possible To Render HTML Through .text Function?
I have some text I want to add some HTML tags to but it's all internal so I'm not calling an external file. Though it is a dynamic field. Attached to button:
Code:
on (press) {
if (myWin == "out") {
gotoAndPlay(5);
myWin.text = "here is some text and I would like to be able to wrap some words with html tags and so on, can this be done this way or am I limited to using an external doc? I've got 'render as html' selected but tag's don't seem to be working.";
?
Dynamic Text - Render As HTML
Hello,
I've done this before on another project - today it is elusive.
I've got a txt doc I am loading dynamically into a text field. I am loading it simply to take advantage of rendering some taxt as HTML - make headers bold, etc.... Text loads, scroll works, everything is OK. I got Render as HTML <> selected, tried as dynamic text and input text - HTML is not recognised. It prints the code. Any ideas here?
Thank you,
ODC
[F8] Render Html Text Problems
this is not working for me:
PHP Code:
this.createTextField('intro_txt', 4, 145, 245, 725, 170);
intro_txt.autoSize = 'left';
intro_txt.wordWrap = true;
intro_txt.selectable = false;
intro_txt.embedFonts = true;
intro_txt.html = true;
intro_txt.htmlText = 'This activity will <b>test</b> your ability to retain accounts when faced with customer challenges.<br>Click the Start button .'
intro_txt.setTextFormat(introduction);
everything seems to be done right. when published, the text in the BOLD tags is removed from the string and the BREAK is ignored.
if i comment out: intro_txt.html = true;
the string comes in with the html tags, as it should. why won't flash render the tags?
If I create a dynamic text box on stage, and set it to render html it works. but if I create the text box through script it does not. anybody have this happen before?
IMS
Render Text As Html Problem..
When I render dynamic text as html, the embed font feature doesn't seem to work... How can i embed fonts on a dynamic text field and render it as html..?
HTML Text Won't Render Tags In AS 3.0
I have some dynamic text that I need to put a subscript on. My text variable is:
textBody = "Look for the O<sub>3</sub> molecules."
But when it renders I get the tags and everything even though the Render text as HTML button is selected for the dynamic text box. I've also tried other tags and it ignores them too.
Text Disappearing With Render HTML
Ok, i have a dynamic text box and the variable for the text is in the root. The only html tag I am using is <br>. If the text is displayed without html it works fine, but as soon as i enable Render as HTML, the text field goes blank. how do i fix this problem?
Current Format for variable is:
faqContent = "this is the content<br>of the faq.";
Render Text As HTML Problems
Having trouble rendering text as html . . .any ideas what might be going wrong?
link
i can provide the .fla file if anyone wants to see.
Render Text As Html Problem
hi there again
i'm trying to load a .txt file and render it as html file. pressed the button, but it wont load my text as an html file...reads everything!
my error is probably in the actions frame...have no idea...
can anyone please check this out?
loadText = new LoadVars();
loadText.load("noticias.txt");
loadText.onLoad = function() {
scroller.text = this.noticias;
};
thanks in advance
Render Text As HTML Problem
Hello,
I'm having trouble getting text from my external text files to render as html. I've selected the "Render Text as HTML" button in the Properties for my textbox, but it still doesn't work. Is there something else I need to do to make this work?
I'm using a scrollbar and textbox that I got here at Kirupa: http://www.kirupa.com/developer/mx/dynamic_scroller.htm
Also, here is a link to a test version of the site: http://www.bleedmedia.com/edrose3/
And here is the code for my textbox:
loadText = new LoadVars();
loadText.load("news.txt");
//creating the loadVarsText function
loadText.onLoad = function() {
scroller.text = this.textbox1;
};
Is there something I need to add to this code to make it render html text? And help at all would be greatly appreciated. Thanks a lot.
Text Disappearing With Render HTML
Ok, i have a dynamic text box and the variable for the text is in the root. The only html tag I am using is <br>. If the text is displayed without html it works fine, but as soon as i enable Render as HTML, the text field goes blank. how do i fix this problem?
Current Format for variable is:
faqContent = "this is the content<br>of the faq.";
Loading Text With Scroll (render As Html)
I can load a text from a text file
I can use a scrollbar for this dynamic text field
But When I push the button (render text as html)and publish it it doesn't work
(I tried it without scrollbar it works like html)
any help??
Can't Render Dynamic HTML Text In ITALICS
This may be something simple that i'm over looking but here is my problem...
I have some dynamic text i'm pulling into flash and render it as HTML.
This part works fine.... i can place basic HTML code in the txt file and it works fine...
HOWEVER when i try to make certain portions of the txt file render as ITALICS or type the following <i>THIS TEXT IN ITALICS</i><b>This Text normal bold</b> This being done with the traditional i and /i enclosed in <>
The DYNAMIC text between the i and /i enclosed in <> doesn't render Italics.
Could i get some tips i could try? Is there something I'm overlooking?
Again all i'm doing is pulling a txt file into flash and have it render as HTML.... its just that i can't get parts of it to render in ITALICS.....
Someone please RSVP me as to what i'm overlooking... Thanks
Flash Dynamic Html Text Render Bug...
hi!
i am working on a cd-rom presentation in flash which incorporates a lot of html layouted text fields.
no the biggest problem seems to be render bug:
i have a menu where on rollover a movieclip containing a html formatted textfield is popping up.
every time it gets displayed, the font renders differently sometimes leaving ghost charachters on the screen after the rollout hides it again, sometimes some characters at the end or the beginning of the phrases do not get rendered at all ...
can anyone help me with this ?
thanks
Render Text As HTML With <a Href> Links?
I'm trying to have a text field render as HTML in the hopes of being able to put hyper-links in the text. I know the script in HTML is...
HTML Code:
<a href="www.link.com">my text </a>
...for a link but when I publish that in flash it comes up as an error. Now, I'm guessing this is because of the quotes around the URL but I don't know how to get around that.
The full script I'm using on the page is...
ActionScript Code:
testText.html = true;
testText.htmlText= "<a href="www.link.com">my text </a>";
...and I've also tried loading from an external XML file, but that didn't seem to make any difference. Does anyone know how to do this? I'm sure someone's done it before I just don't know how to do it myself.
XML Text Not Comletely Working With HTML Render
Hey Guys, I have this movie: http://creativenetdesign.com/xml/
I have the text format in the XML and the underline works but the bold does not. I have uploaded the file for someone to look at. Anyone got any ideas? Thanks Much, Dvl
Render XML CDATA To HTML In Text Field?
I know I'm probably missing something simple, but I can't for the life of me get the following to render as HTML in flash.
Actionscript:
Code:
content_txt.html = true;
topicNavXml = new XML();
topicNavXml.ignoreWhite = true;
topicNavXml.load("pageBuildNav.xml");
topicNavXml.onLoad = function() {
pageInfo =
topicNavXml.firstChild.childNodes[0].childNodes[0].firstChild;
content_txt.htmlText = pageInfo;
};
XML:
Code:
<?xml version="1.0" encoding="ISO-8859-1"?> <topicNavigation>
<topicPages>
<page><![CDATA[<p><font><b>General</b></font></p><p><font>Here is some text</p><p></p><p>In here is more text</font></p>]]></page>
</topicPages>
</topicNavigation>
What I get is the native format displaying in content_txt as follows:
<p><font><b>General</b></font></p><p><font>Here is some text</p><p></p><p>In here is more text</font></p>
I'd like this to be rendered as HTML in the content_txt field.
Any ideas?
Thanks!
Text Wont Render Html In Tween
I have a problem trying to render html in a textbox during a tween.
ActionScript Code:
Tweener.addTween(cap,{ alpha:0,
time:ctime,
transition:"easeOutQuint",
onComplete:function():void
{
cap.htmlText = "<b>Artist</b>";
Tweener.addTween(cap,{ alpha:1,
time:ctime,
transition:"easeOutQuint"
})
}
}
)
}
If I set cap.text instead of cap.htmlText I can see the text.
Would anybody know why I cant render html text during a tween or know of a way around it?
XML Render HTML Stops Dynamic Text
I've got a simple gallery with two dynamic text fields that call for captions and such from an xml file. I'm having difficulty getting the text to display using simple <b> and <i> formatting. Is there something big I'm missing as to how to set up the xml?
The text will appear in the dynamic field until the tag would be used (I only need the most basic of formatting). If someone can point me, or let me know if you'd like to see the source, many thanks.
I'm using MX only. Don't need CSS even for this - really basic.
Thanks,
Donna
Html Render For Dynamic Text Not Working
hi
ive read similar posts to this but none seemed to answer my questions...
i have some buttons that when pressed update the textfield currently displayed... its just that the html coding doesnt seem to work .... any ideas??
thanks...
Code:
function load (url) {
var loader = new LoadVars ();
loader.onLoad = function (success) {
if (success) {
aboutText.text = this.content;
// Here, launch a function to move the text
} else {
aboutText.text = "error .. no txt ";
}
}
loader.load (url);
}
bt1.onPress = function () {
load("aboutText.txt");
}
bt2.onPress = function () {
load("ab2.txt");
}
Dynamic Text SetMask & Loadvars With Render As HTML
I have used the tutorial on masking dynamic text to set up a file that pulls it's content from a remote file and loads in...
the content of the external file looks like this:
&variablename=content goes here<br><br>
My problem is that it masks fine if I don't have the 'Render text as HTML' on, but prints "content goes here br br"
To have it understand the <br> I turned the render as HTML on - but it breaks it, not displaying the content at all.
Any suggestions?
Thanks
Helen
|