[Flashcoders] AS3 dynamic text fields and img

2008-09-09 Thread Jessica Criscione
I have an AS3 project where an icon is supposed to follow the text in a dynamic, multi-line text field. Right now, I'm appending it as an img tag at the end of the text. My problem is that it seems AS3 is always bumping the img down to a new line unless it's the first item in the string. No amount

Re: [Flashcoders] AS3 dynamic text fields and img

2008-09-09 Thread sebastian
hmmm, have you tried: textFieldName.text += img... if that is not working, then try building it all in one sentence: imgAtEnd = img... segment1 = some value + imgAtEnd; //segment2 = same as segment 1 and 3 and 4 only with new different values textFieldName.text = segment1 + segment2 + segment3

RE: [Flashcoders] AS3 dynamic text fields and img

2008-09-09 Thread Keith Reinfeld
Jessica, My problem is that it seems AS3 is always bumping the img down to a new line unless it's the first item in the string. This behavior hasn't changed from earlier versions of AS. Does anyone know any way around this other than calculating the text length and appending the