A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: making <li> tags in dynamic text

  1. #1
    Junior Member
    Join Date
    Nov 2005
    Posts
    17

    making <li> tags in dynamic text

    I've search the forum and found some topics on HTML in dynamic text but for some reason I'm unable to execute.

    I would like to have a bulleted list that is pulled into a dynamic text field. I have the HTML option ON and the code below is what I am using.

    comtm1_1.html = true;
    comtm1_1.htmlText = "<li>test test test test</li>";

    This code is on the actions layer and is being called by a button click.

    For some reason this is not formatting to a List Item...any ideas?

  2. #2
    Flashmatics silentweed's Avatar
    Join Date
    Mar 2005
    Location
    London, UK
    Posts
    4,875
    technically it should work..are u sure the path to your textfield is correct?

    Open up an empty fla and put this in the actions layer..

    Code:
    comtm1_1.multiline = true;
    comtm1_1.html = true;
    comtm1_1.htmlText = "<li>Apples</li><li>Oranges</li><li>Lemons</li>";
    Flashmatics | Flashmatics Library (free downloads)
    -----------------------------------------------------
    Latest Projects:
    The Dead Room | Are You Smarter | Prison Break (Frame A Friend) | Beck's Fusions | The 24 Experience

    -----------------------------------------------------
    Flash Certified Developer

  3. #3
    Junior Member
    Join Date
    Nov 2005
    Posts
    17
    got it to work. I was calling the htmlText = true in the actions layer instead of attaching it to the button itself.

    Thanks - sometimes you just need to think outloud

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