1675 posts Envato Elite Author
  • Elite Author
  • Sold between 100 000 and 250 000 dollars
  • Author had a Free File of the Month
  • Exclusive Author
  • Repeatedly Helped protect Envato Marketplaces against copyright violations
  • Europe
  • Has been a member for 4-5 years
  • Referred between 10 and 49 users
+1 more
Tean says

I am trying to use appendText with htmlText and needless to say, I am not succeeding :P

I dont want to use someTextField.text += moreText;

I even tried setting htmlText to a new textfield, and then reading text from that textfiled into the textfield i want like so:

_titleHelpTextField.htmlText = _titleString;
_title1.txt.appendText(_titleHelpTextField.text.charAt(_titleStringCount));

and it looks like it reads html successfully but for some reason text is all the same size…

Any ideas?

5277 posts The Dude Abides
  • United States
  • Exclusive Author
  • Has been a member for 5-6 years
  • Elite Author
  • Sold between 100 000 and 250 000 dollars
  • Bought between 100 and 499 items
  • Referred between 100 and 199 users
+5 more
CodingJack says

Maybe this?


txt.htmlText = "<font size="48">this is some text</font>";

txt.htmlText = txt.htmlText.concat("additional text");

1675 posts Envato Elite Author
  • Elite Author
  • Sold between 100 000 and 250 000 dollars
  • Author had a Free File of the Month
  • Exclusive Author
  • Repeatedly Helped protect Envato Marketplaces against copyright violations
  • Europe
  • Has been a member for 4-5 years
  • Referred between 10 and 49 users
+1 more
Tean says

Good idea, havent though of this…

However I am trying to make a type writer effect, but with html text on which stylesheet is applied, but since this method cannot be used on a text field with a style sheet, I already gave up…

4136 posts
  • Bought between 1 and 9 items
  • Brazil
  • Exclusive Author
  • Has been a member for 5-6 years
  • Referred between 1 and 9 users
  • Sold between 5 000 and 10 000 dollars
tsafi says

Ola Tean.

After you set your your appendText You need to parsed it to actual html tag its a little tricky when using appendText on the effect.

txt.appendText(html tags bla bla) .

then .

txt.htmlText = txt.text;

More easy way you can use flupie class it’s under MIT will solve all this problem , very few using this class here and its like css build in base on html tags so in 1 line of code you can do magic’s with type writer effect (but embed is a must with this class)

1675 posts Envato Elite Author
  • Elite Author
  • Sold between 100 000 and 250 000 dollars
  • Author had a Free File of the Month
  • Exclusive Author
  • Repeatedly Helped protect Envato Marketplaces against copyright violations
  • Europe
  • Has been a member for 4-5 years
  • Referred between 10 and 49 users
+1 more
Tean says
Ola Tean.

After you set your your appendText You need to parsed it to actual html tag its a little tricky when using appendText on the effect.

txt.appendText(html tags bla bla) .

then .

txt.htmlText = txt.text;

More easy way you can use flupie class it’s under MIT will solve all this problem , very few using this class here and its like css build in base on html tags so in 1 line of code you can do magic’s with type writer effect (but embed is a must with this class)

Thanks for the advice, I ‘ll take a look :)

by
by
by
by
by
by