This is my code:
<mx:Canvas id="Comments" label="Comments>
<mx:VBox id="commentsVbox" width="100%" height="100%">
<mx:Repeater id="commentsArea" dataProvider="{qComments}"
recycleChildren="true">
<mx:TextArea id="commentArea"
htmlText="{commentaArea.currentItem.comments}" width="100%"
editable="false" selectable="true"/>
<mx:Label text="Posted By: {commentsArea.currentItem.firstName}
{commentsArea.currentItem.lastName} / Posted On: {commmentDateFormat
(commentsArea.currentItem.datePosted)}"/>
<mx:HRule width="100%"/>
</mx:Repeater>
</mx:VBox>
</mx:Canvas>
I am trying to apply a stylesheet to the TextArea, but it appears
that it doesn't exist yet when the stylesheet is called. Any ideas?
Thanks for your help in advance.
S
--- In [email protected], "Cato Paus" <[EMAIL PROTECTED]> wrote:
>
> at creationComplete in your comp set the style. or you can try the
> initialize event to, read up on the display events :)
>
>
> --- In [email protected], "smbrinkley6" <smbrinkley@>
wrote:
> >
> > This is really starting to get on my nerves. I have a TextArea
in a
> > Repeater that displays blog comments from a DB. I am trying to
style
> > the TextArea so that the links look like links (blue, underlined,
> > hover... etc). However, when I try to use my stylesheet to
format
> the
> > TextArea, I get: "Error #1009: Cannot access a property or method
of
> a
> > null object reference." Can someone please help me out? I think
it
> > has something to do with the creation/or order of creation of the
> > TextArea.
> >
> > Thanks,
> >
> > S
> >
>