A Flash Developer Resource Site

Results 1 to 6 of 6

Thread: htmlText

  1. #1
    Senior Member
    Join Date
    Apr 2001
    Posts
    996

    htmlText

    HTML Code:
    title_txt.htmlText="<font color=’#FF0000’>hello world</font>"
    Why wont this work. I have my textfiled on the stage and the buttons html text is selected in the property panel

  2. #2
    FK's Official Mac Hater jasonsplace's Avatar
    Join Date
    Mar 2002
    Location
    Provo, Utah
    Posts
    2,245
    Is the instance name of your text box title_text or your variable name...It should be your instance name.
    Jason L. Wright
    I'm not that hard to imitate. Just make some random negative claim at Apple or anything else for that matter and then have nothing to back it up.

  3. #3
    Senior Member
    Join Date
    Apr 2001
    Posts
    996
    its my instance name.

  4. #4
    FK's Official Mac Hater jasonsplace's Avatar
    Join Date
    Mar 2002
    Location
    Provo, Utah
    Posts
    2,245
    What happens to the text box or in the ouput window when that script is executed? Anything?
    Jason L. Wright
    I'm not that hard to imitate. Just make some random negative claim at Apple or anything else for that matter and then have nothing to back it up.

  5. #5
    Member
    Join Date
    May 2002
    Posts
    42
    Hi,

    I copied the html code and put it into a one frame movie to try it, and it didn't work. I knew it looked like it should work so I tried a couple of simple things. When I deleted the single quotes around the RGB code and retyped them, it worked.

    Why...I don't know,
    Debbie

  6. #6
    FK's Official Mac Hater jasonsplace's Avatar
    Join Date
    Mar 2002
    Location
    Provo, Utah
    Posts
    2,245
    It could be because those aren't normal single quotes....where did you get those at. Yours look like: and they should look like: '
    Jason L. Wright
    I'm not that hard to imitate. Just make some random negative claim at Apple or anything else for that matter and then have nothing to back it up.

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