I do want the html in a redender. This was just an example that i was
trying to play. That would be my item renderer. anyway, somehow i get
it working... :p


--- In [email protected], "Alex Harui" <[EMAIL PROTECTED]> wrote:
>
> I thought you wanted html in a renderer.  If so, copy ListItemRenderer
> and modify to set the htmlText instead of text.
> 
> ________________________________
> 
> From: [email protected] [mailto:[EMAIL PROTECTED] On
> Behalf Of Rafael Faria
> Sent: Thursday, August 07, 2008 12:22 AM
> To: [email protected]
> Subject: [flexcoders] Re: Advise - List
> 
> 
> 
> Yeah...
> 
> It would be something like this. If you run it you will see that the
> measure is wrong. It just gets right when you start typing.
> 
> <?xml version="1.0"?>
> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml
> <http://www.adobe.com/2006/mxml> "
> creationComplete="update();">
> <mx:Script>
> <![CDATA[
> import mx.events.FlexEvent;
> 
> public function update():void
> {
> src.validateNow();
> src.height = src.textHeight+ src.getStyle("fontSize");
> }
> 
> ]]>
> </mx:Script>
> <mx:Panel title="TextArea Control Example" height="75%"
> width="75%" paddingTop="10" paddingLeft="10">
> 
> <mx:TextArea id="src" change="update()">
> <mx:htmlText>
> <![CDATA[
> Lorem Ipsum is simply dummy text of the printing and
> typesetting industry. Lorem Ipsum has been the industry's standard
> dummy text ever since the 1500s, when an unknown printer took a galley
> of type and scrambled it to make a type specimen book. It has survived
> not only five centuries, but also the leap into electronic
> typesetting, remaining essentially unchanged. It was popularised in
> the 1960s with the release of Letraset sheets containing Lorem Ipsum
> passages, and more recently with desktop publishing software like
> Aldus PageMaker including versions of Lorem Ipsum.
> ]]>
> </mx:htmlText>
> </mx:TextArea>
> 
> </mx:Panel>
> </mx:Application> 
> 
> --- In [email protected] <mailto:flexcoders%40yahoogroups.com>
> , "Josh McDonald" <dznuts@> wrote:
> >
> > Rafael - do you have an example small enough to post here so we can
> have a
> > look-see?
> > 
> > -Josh
> >
>


Reply via email to