There are none so blind...

-Keith 
http://home.mn.rr.com/keithreinfeld 
 


-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Rich
Rodecker
Sent: Tuesday, September 12, 2006 6:32 PM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] Re: inline images in a textarea

that doesnt look like it does anything with inline images, that is a pretty
cool component.

On 9/12/06, Keith Reinfeld <[EMAIL PROTECTED]> wrote:
>
> This maybe the component you are referring to:
>
> http://home.tiscali.nl/~erikwe/component/TextFieldExtension.mxp
>
>
> HTH,
>
> -Keith
> http://home.mn.rr.com/keithreinfeld
>
>
>
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of Marcelo
> Volmaro
> Sent: Tuesday, September 12, 2006 2:30 PM
> To: Flashcoders mailing list
> Subject: Re: [Flashcoders] Re: inline images in a textarea
>
> They measure the width of each character and then insert spaces where the
> image should be placed. Then the image is attached onto a movieclip using
> as a coordinates the sum of the width of all the characters in one line.
>
> If the text spans into multiple lines, that´s no problem neither. You know
> the width of the text field, so you can check where the text will span,
> and measuring the height of a textline, add that space to the y coord.
>
> Easy? No. Doable? Yes.
> In fact, i remember now a component that does exactly that... don´t
> remember the name, but something with emoticons and flash :)
>
> Regards,
>
> On Tue, 12 Sep 2006 15:43:23 -0300, Rich Rodecker <[EMAIL PROTECTED]>
> wrote:
>
> > wierd...how do you suppose they did it here then?:
> >
> > http://www.mambers.com/chat/preloader.swf
> >
> > i thought about picking the string apart and piecign together some new
> > movieclips/text fields to display the content, but that would get crazy
> > when
> > the text spans multiple lines.  the link above handles it pretty well
> > though.
> >
> >
> >
> > On 9/8/06, Marcelo Volmaro <[EMAIL PROTECTED]> wrote:
> >>
> >> You can´t do that because flash doesn´t support images as in-line
> >> elements, only as block elements.
> >>
> >> On Fri, 08 Sep 2006 17:30:43 -0300, Rich Rodecker <[EMAIL PROTECTED]>
> >> wrote:
> >>
> >> > thanks...its not the text thats going to the next line though...the
> >> text
> >> > is
> >> > all appearing on one line, but the image is appearing on the next.
> >> >
> >> > so for instance when the image is supposed to be in the middle of the
> >> > line
> >> > of text:
> >> >
> >> > hey there <img src="http://www.thewhole9.com/chat/smilies/smile.jpg";
> >> > width="19" height="19" VSPACE="0" HSPACE="0" /> hows it going?
> >> >
> >> > is turning into this (visually anyway, the html is still correct in
> >> the
> >> > textarea):
> >> > hey there hows it going?
> >> > <img src="http://www.thewhole9.com/chat/smilies/smile.jpg"; width="19"
> >> > height="19" VSPACE="0" HSPACE="0" />
> >> >
> >> > does that make sense?  thee image is appearing on the next line,
> after
> >> > the
> >> > line of text when it should be right in the middle.
> >> >
> >> > On 9/8/06, Lori Hutchek <[EMAIL PROTECTED]> wrote:
> >> >>
> >> >> Check that you are setting this VSPACE="0" HSPACE="0" it's the
> >> vertical
> >> >> and horizontal space around the image which may be pushing the text
> >> to
> >> >> next line
> >> >>
> >> >> -----Original Message-----
> >> >> From: [EMAIL PROTECTED]
> >> >> [mailto:[EMAIL PROTECTED] On Behalf Of Rich
> >> >> Rodecker
> >> >> Sent: Friday, September 08, 2006 12:55 PM
> >> >> To: Flashcoders mailing list
> >> >> Subject: [Flashcoders] Re: inline images in a textarea
> >> >>
> >> >> hmmm..anyone?  i know i've seen it done a couple of times, but I'm
> >> >> pretty
> >> >> stuck.
> >> >>
> >> >>
> >> >>
> >> >> On 9/7/06, Rich Rodecker <[EMAIL PROTECTED]> wrote:
> >> >> >
> >> >> > ok, i know working with images in a text area is only going to
> lead
> >> me
> >> >> to
> >> >> > heartache, but I've seen this done and if anyone can point me in
> >> the
> >> >> right
> >> >> > direction that would be awesome.
> >> >> >
> >> >> > I have a chat app that im building with support for emoticons.
> >> >> everyhting
> >> >> > works great except the smiley image always appears on the next
> line
> >> >> after
> >> >> > the text, so I wind up with something like:
> >> >> >
> >> >> > here is my smiley
> >> >> > :)
> >> >> >
> >> >> > when i really want:
> >> >> >
> >> >> > here is :) my smiley
> >> >> >
> >> >> > The one quirk i can see that might cause some wierdness is that i
> >> am
> >> >> > setting the contents of the textarea using the .text property,
> >> though
> >> >> the
> >> >> > textarea is set to html = true and everything renders out ok.  I
> >> dont
> >> >> want
> >> >> > to use .htmlText because I'm letting the user choose any font, and
> >> >> htmlText
> >> >> > wont seem to render without the text embedded.
> >> >> >
> >> >> >
> >> >> >
> >> >> _______________________________________________
> >> >> Flashcoders@chattyfig.figleaf.com
> >> >> 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
> >> >> _______________________________________________
> >> >> Flashcoders@chattyfig.figleaf.com
> >> >> 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
> >> >>
> >> > _______________________________________________
> >> > Flashcoders@chattyfig.figleaf.com
> >> > 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
> >>
> >>
> >>
> >> --
> >> _____________
> >> Marcelo Volmaro
> >> _______________________________________________
> >> Flashcoders@chattyfig.figleaf.com
> >> 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
> >>
> > _______________________________________________
> > Flashcoders@chattyfig.figleaf.com
> > 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
>
>
>
> --
> _____________
> Marcelo Volmaro
> _______________________________________________
> Flashcoders@chattyfig.figleaf.com
> 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
>
> _______________________________________________
> Flashcoders@chattyfig.figleaf.com
> 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
>
_______________________________________________
Flashcoders@chattyfig.figleaf.com
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

_______________________________________________
Flashcoders@chattyfig.figleaf.com
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