<br> Break Tags
I've got a flash movie that fetches an rss feed, and displays It in a dynamic text field. The problem is however, It doesn't recognize the self-closing break tags, and It displays them as text. Is there any way i can make flash recognize the br tags as line breaks?
associate
Re: <br> Break Tags
is it set to display html?
Re: Re: <br> Break Tags
Originally posted by admedia
is it set to display html?
Yup. Here is the code.
Code:
tBox.html = true;
tBox.wordWrap = true;
tBox.multiline = true;
tBox.label.condenseWhite=true;
styleSheet1 = new TextField.StyleSheet();
styleSheet1.load("stylesheet.css");
tBox.styleSheet = styleSheet1;
content1 = new XML();
content1.ignoreWhite = true;
content1.load("string.php");
content1.onLoad = function(success){
if(success){
tBox.text = content1;
}
}
As you can see in the first line, html is enabled. I'm at my wits end, although I'm sure one of you guys can answer it in a few seconds.
So can anyone tell me if this is possible?
Hi!,
Are u using 'TextField.htmlText' ?
Also plz. refer to the attached .fla.
I've run a simple '<br>' test on a dynamic text field, and its working.
The code is on the first frame.
Hope this'll help.
Cheers,
Sam
Attached Files
Flash makes the Web go Round
Senior Member
PHP Code:
It is < br / > and not < br > !
- The right of the People to create Flash movies shall not be infringed. -
Posting Permissions
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
Forum Rules
Click Here to Expand Forum to Full Width