A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: Problem with linebreaks in <LI> tag...

  1. #1

    Problem with linebreaks in <LI> tag...

    It seems any type of linebreak within an <LI> tag create an extra bullet, is there any way around this??

    The following examples all produce 2 bullets when they should only show one...

    Code:
    _txt.htmlText = "<li>Hello<br />There...</li>";
    _txt.htmlText = "<li>Hello /n There...</li>";
    _txt.htmlText = "<li>Hello /r There...</li>";
    _txt.htmlText = "<li><p>Hello</p> <p>There...</p></li>";
    Flash Player 9, AS 2.0

  2. #2
    Member
    Join Date
    Oct 2008
    Posts
    37
    try puttin <UL></UL> before and after your text.. example..

    _txt.htmlText = "<ul><li>Hello<br />There...</li></ul>";

    the <ul> tag only has to go before and after your entire <li> tages example...

    _txt.htmlText = "<ul>";
    _txt.htmlText = "<li>Hello<br />There...</li>";
    _txt.htmlText = "<li>Hello /n There...</li>";
    _txt.htmlText = "<li>Hello /r There...</li>";
    _txt.htmlText = "<li><p>Hello</p> <p>There...</p></li>";
    _txt.htmlText = "</ul>";

    hope this works/helps...

  3. #3
    Sorry man, didn't see this reply.

    Nah that doesn't work, as far as I can tell Flash doesn't even support the <UL> tag, it could care less whether it's there or not...

  4. #4
    Junior Member
    Join Date
    Dec 2009
    Posts
    1
    this should do it:

    _txt.htmlText = "<li>" + "some text here"+"<br>"+"text after linebreak."+"</li>";

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