dcsimg
A Flash Developer Resource Site

Results 1 to 6 of 6

Thread: <br> Break Tags

  1. #1
    Junior Member
    Join Date
    May 2005
    Posts
    15

    <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?

  2. #2
    associate admedia's Avatar
    Join Date
    Oct 2001
    Location
    is
    Posts
    1,347

    Re: <br> Break Tags

    dynamic text field
    is it set to display html?

  3. #3
    Junior Member
    Join Date
    May 2005
    Posts
    15

    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.

  4. #4
    Junior Member
    Join Date
    May 2005
    Posts
    15
    So can anyone tell me if this is possible?

  5. #5
    Member
    Join Date
    Dec 2003
    Location
    Gurgaon, India
    Posts
    64
    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 Attached Files
    Flash makes the Web go Round

  6. #6
    Mod cancerinform's Avatar
    Join Date
    Mar 2002
    Location
    press the picture...
    Posts
    13,448
    PHP Code:
    It is br/ > and not br > ! 
    - The right of the People to create Flash movies shall not be infringed. -
    | www.Flashscript.biz | Flashscript Biz Classes/Components |

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center