Ok I feel silly that I didn't check this first:
I turned on .selectable for the field and the text is actually there. It's just not displaying the start and the end.

There's tonnes more to this problem but at the end of the day it has something to do with fonts and font anti-aliasing. If I switch to anything other than "Anti-alias for reading" or "Custom ant-alias..." the problem magically goes away.

but here's some other weirdness I've noted along the way...

condenseWhite also makes the problem go away but as expected leads to some formatting issues (which can be handled pretty easily I guess).

Setting .autoSize to false, .multiline to true and then manually setting the _height fixes it. The only problem with that for me is that the original author implemented scrolling by masking the clip and changing its ._x up and down rather than using TextField.scroll.

Changing the font to _sans results in nothing being shown.
Verdana is embedded.

Does anybody have experience with these kinds of problems?

Huge thanks in advance,
John





John Fitzgibbon wrote:
Hi guys,

This is my first time emailing this list so apologies if I make mistakes in terms of etiquette.

My problem seems simple but I must be missing something:
I have inherited some code, quite a large MVC based project. There's one place where a dialog is constructed to display some html formatted text which is being pulled from a soap web service. It's Terms & Conditions text so it's a fair amount of text.

The problem is that there's a large chunk of text missing from the start of the t&c and a large chunk from the end (paragraphs worth of text, not just a word or two).

Could anybody hint at what kind of things might cause flash 8 to do that?
My feeling is that flash is choking on some characters but it's not evident to me which characters could be causing that.

Cheers,
John

P.S.:

Here are some properties of the problem and things I've checked:

- Using condenseWhite fixes it the problem (but introduces formatting issues and I'd really like to understand why it's not working properly)

- The html formatting is sent as html entities in the xml, not in a CDATA block e.g.
   <h2>§ 1 General Information</h2>
   <p> ...

- But, as expected the WebService class returns proper html. e.g.
    <h2>§ 1 General Information</h2>
    <p> ...

- The space, which the text would take up, is there i.e. there's a large blank at the start and end of the text.

- All the text is definitely being retrieved, (I've traced it and it's definitely all there)

- In terms of content it doesn't matter if the text is assigned to the .text or .htmlText property of the field, there is still text missing from the start and end - Confusingly, less is missing when the HTML is assigned to the .text property but there is still text missing (and of course one can see all the tags)
_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to