1677 posts Envato Elite Author
  • Has referred 10+ members
  • Has sold $125,000+ on Envato Market
  • Has collected 1+ items on Envato Market
  • Elite Author: Sold more than $75,000 on Envato Market
+6 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?

5360 posts The Dude Abides
  • Located in United States
  • Elite Author: Sold more than $75,000 on Envato Market
  • Has sold $125,000+ on Envato Market
  • Has been part of the Envato Community for over 5 years
+9 more
CodingJack says

Maybe this?


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

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

1677 posts Envato Elite Author
  • Has referred 10+ members
  • Has sold $125,000+ on Envato Market
  • Has collected 1+ items on Envato Market
  • Elite Author: Sold more than $75,000 on Envato Market
+6 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…

4140 posts
  • Has been part of the Envato Community for over 6 years
  • Has referred 1+ members
  • Has sold $5,000+ on Envato Market
  • Located in Brazil
+3 more
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)

1677 posts Envato Elite Author
  • Has referred 10+ members
  • Has sold $125,000+ on Envato Market
  • Has collected 1+ items on Envato Market
  • Elite Author: Sold more than $75,000 on Envato Market
+6 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