from my wise colleague Ben Fhala,
basically this is the only way:

we need to find the last char of the sentence, in this case a "period"
and attach an image.

var mcQuote = new lmcQuote();

isWhite = false; //hack

var box:Object = txt.getCharBoundaries(txt.text.lastIndexOf(".")+2);

mcQuote.buttonMode=false;

mcQuote.mouseChildren=false;

mcQuote.x = txt.x + box.x + box.width/2+ 4;

mcQuote.y = txt.y + box.y + box.height/2 -1;
/


/thanks BEN!
*

*


artur wrote:
i need to add an graphical end qoute to a line of text.

but the image keeps breaking over into a new line.

is there a clever workaround?

i have a nasty deadline!

thanks



_______________________________________________
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to