I know you are trying to avoid it, but I think the only way to go is to
get those counters counting and insert the raw code into the textfields
htmlText property.

And, yes it really does suck!! (don't get me started on superscript and
subscript ;)

Giles

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Merrill,
Jason
Sent: 09 August 2006 15:10
To: Flashcoders mailing list
Subject: RE: [Flashcoders] WSIWYG HTML text editor in Flash - follow
onquestion

OK - follow me here for a fun mental exercise:

I think the major issue I'm running into with this is the TextFormat
class relies on the text field's visual formatting described by the
Flash Players internal style profiles.  And since the TextFormat class
does not support an <IMG> tag, I cannot use TextFormat to insert an
image, I have to insert the <IMG> tag as a string. AND SO since writing
to the text property of a TextField object destroys any custom
formatting associated with the field (i.e. the interal style profiles),
I have to use the TextField.replaceSel() function (p. 889 in Moock's
ASDG for FlashMX).  AND since the replaceSel() function encodes the
<IMG> markup, you can't have it render the image!

So it seems to be a catch-22 and I'm screwed using TextFormat and trying
to let the user also add an inline image.  Unless someone knows
otherwise, I am going to have to use a movieClip container instead of an
IMG tag.  That will not be ideal, but it might fly for this project.  

I really wish they would make the HTML editing capabilities of Flash
better, but it doesn't look like that will happen any time soon. 

Jason Merrill
Bank of America
Learning & Organization Effectiveness - Technology Solutions
_______________________________________________
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

Reply via email to