Skip to main content
Inspiring
September 16, 2011
Question

extra spaces

  • September 16, 2011
  • 1 reply
  • 1371 views

I am printing a dynamic text from flash.

every thing works fine , But I get unwanted spaces/ smal boxes  at the end of every page.

Like


I tried to remove it like

var pattern:RegExp = /^\s+|s+$/g;

myString = _textField.htmlText.replace(pattern, "");

_textField.htmlText = myString;

But even I get those boxes end of the page.

Please help me to solve.


Thanks,

Shanthi

This topic has been closed for replies.

1 reply

Inspiring
September 17, 2011

These squares don't look like spaces. They are special characters that the font you use for the TextField doesn't have.

Inspiring
September 18, 2011

Noo... I dont have any spcial character in my para.I have only Alphabets and numbers.

All of them displays fine.But I get these squares/boxes every end of the para.

I have 4 paraghraphs every start and end of the para there are few boxes.

Please help me to solve.

Inspiring
September 18, 2011

hi please any one?