A Flash Developer Resource Site

Results 1 to 7 of 7

Thread: bbcode formatted text (not html)

  1. #1
    Cheese Lover
    Join Date
    Sep 2005
    Posts
    46

    bbcode formatted text (not html)

    I was wondering how I could take text with bbcode in it and format it in a dynamic textbox WITHOUT converting it to HTML tags.

    I would put in this (without the spaces):

    [ b ]Example text![ /b ]
    This would come out like:

    Example text!

  2. #2
    Senior Member cancerinform's Avatar
    Join Date
    Mar 2002
    Location
    press the picture...
    Posts
    13,449
    The Flash player to my knowledge only recognizes html tags.
    - The right of the People to create Flash movies shall not be infringed. -

  3. #3
    Cheese Lover
    Join Date
    Sep 2005
    Posts
    46
    I know, but with Actionscript?

  4. #4
    Senior Member cancerinform's Avatar
    Join Date
    Mar 2002
    Location
    press the picture...
    Posts
    13,449
    The flash help files did not show any entries. Google also did not show any results.
    - The right of the People to create Flash movies shall not be infringed. -

  5. #5
    Cheese Lover
    Join Date
    Sep 2005
    Posts
    46
    That doesnt matter, with Actionscript, couldn't you make the text in between bold and then remove the tags? I just dont know how.

  6. #6
    Senior Member cancerinform's Avatar
    Join Date
    Mar 2002
    Location
    press the picture...
    Posts
    13,449
    if that is what you want to know, no problem. Give your textfield a name like myTextfield and then write this for example.

    var myTextfield:TextField;
    myTextfield.html = true;
    myTextfield.htmlText = "<b>This is bold text.</b>";
    - The right of the People to create Flash movies shall not be infringed. -

  7. #7
    Cheese Lover
    Join Date
    Sep 2005
    Posts
    46
    I know how to do that, what I want to do is use actionscript to take the text shown above and convert it to bold text, like the html does, but without making html.

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