• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

TypeError: Error #1085: The element type "br" must be terminated by the matching end-tag "</br>".

Explorer ,
Jun 18, 2018 Jun 18, 2018

Copy link to clipboard

Copied

So this piece of code works as intended:

privacyPolicy.htmlText = "<br>First line.<br>Second line.";

However, when I'm downloading the same message from a php file I get:

TypeError: Error #1085: The element type "br" must be terminated by the matching end-tag "</br>".

Also, I'm trying to create a hyperlink in ym text field. I've tried this:

hLink.htmlText = "<a href='http://mylink.com/>Click Here</a>";

But, the the text field is blank.

TOPICS
ActionScript

Views

5.4K

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

LEGEND , Jun 18, 2018 Jun 18, 2018

privacyPolicy.htmlText = "<br>First line.</br><br>Second line.</br>";

Try embedding the font in the textfields if nothing is showing up.  Also it appears you are missing a single quote in the hyperlink code.  I forget if single quotes will work, so see about using escaped doublequotes there if problems persist.

Votes

Translate

Translate
LEGEND ,
Jun 18, 2018 Jun 18, 2018

Copy link to clipboard

Copied

privacyPolicy.htmlText = "<br>First line.</br><br>Second line.</br>";

Try embedding the font in the textfields if nothing is showing up.  Also it appears you are missing a single quote in the hyperlink code.  I forget if single quotes will work, so see about using escaped doublequotes there if problems persist.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Jun 18, 2018 Jun 18, 2018

Copy link to clipboard

Copied

It works, but I'm getting a strange text-indent in the first line when I do the following:

First paragraph.<br>Second paragraph</br>

Is that normal?

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Jun 19, 2018 Jun 19, 2018

Copy link to clipboard

Copied

LATEST

I would say it is not normal.  I still work (play actually) in Flash, so I don't know if this might be an issue with Animate.If I assign that string to a textfield I do not get an indent of the first line.   Maybe try setting a few properties in the properties panel and see if they have any effect.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines