Got another CSS/htmlText flash question.

What I've been working with is this:

I've got a screen layout program that allows the client to select
background images, and how many columns they want. Then, when any
column is selected they get a live input textbox they can put in the
text they want for that column. They can select a section of text they
want to apply a style. I've got all this working fabulously - ie even
with the focus going off because of the combobox.

What I'm doing is calling a function that gets the begin..endIndex of
the textbox and applies the chose textFormat by setNewTextFormat; it
then sends the changed htmlText to the screen's textbox.

Well, now I want to change to CSS rather than saving the styles (which
will allow me to change things later).

I want to be able to select the text ie 'bob says hi' and add the
selected CSS stylename such as

txt = <p class='"+name+'">" + selectedTextString + "</p>".

This is all easy to do the first time - the selected section gets
replaced with this and the htmlText gets set. But since the preview
box can have OTHER htmlText -- well, if I'm getting the string based
on the TEXT of a member; how can I get the correct offset from the
htmlText of a member? do a substring with the actual selected string?
Is that the only way?
_______________________________________________
[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