Here's one way to do it:
http://blog.flexexamples.com/2008/03/22/applying-a-cascading-style-sheet-to-a-textarea-control-in-flex/

-Alex

--- In flexcoders@yahoogroups.com, "oneworld95" <[EMAIL PROTECTED]> wrote:
>
> The TextArea allows the <SPAN> tag and the CLASS attribute. Is the
> class defined in the Flex app in the <mx:Style> tag or in the HTML?
> 
> -Alex
> 
> --- In flexcoders@yahoogroups.com, "oneworld95" <oneworld95@> wrote:
> >
> > Thanks, Fotis. It's using the underlying Flash API's
> > flash.text.TextField object, with the allowed tags found here:
> >
>
http://livedocs.adobe.com/flex/3/langref/flash/text/TextField.html#htmlText
> > 
> > -Alex
> > 
> > --- In flexcoders@yahoogroups.com, "Fotis Chatzinikos"
> > <fotis.chatzinikos@> wrote:
> > >
> > > check the docs... It lists the tags it correctly parses/displays
> > > 
> > > On Wed, Dec 3, 2008 at 3:58 PM, oneworld95 <oneworld95@> wrote:
> > > 
> > > >   Thanks, Paul. I've noticed that the TextArea only parses a
limited
> > > > number of HTML tags; not sure which ones it allows and which it
> > ignores.
> > > >
> > > > -Alex
> > > >
> > > > --- In flexcoders@yahoogroups.com <flexcoders%40yahoogroups.com>,
> > "Paul
> > > > Fischer" <paulfischer60@>
> > > >
> > > > wrote:
> > > > >
> > > > > --- In flexcoders@yahoogroups.com
<flexcoders%40yahoogroups.com>,
> > > > "oneworld95" <oneworld95@> wrote:
> > > > > >
> > > > > > Well, maybe it's more efficient to do this another way. Let me
> > explain
> > > > > > what I'm trying to accomplish and see what you think is the
> > best way
> > > > > > to it: I'd like to grab a text file (XML or HTML) and load it
> > into a
> > > > > > Flex control and have it formatted correctly without having to
> > fetch
> > > > > > individual elements from the XML and putting them into label
> > controls.
> > > > > > Thanks.
> > > > > >
> > > > > > -Alex
> > > > > >
> > > > > > --- In flexcoders@yahoogroups.com
> <flexcoders%40yahoogroups.com>,
> > > > "jim.abbott45" <jim.abbott45@>
> > > > > > wrote:
> > > > > > >
> > > > > > > Or you could just use the ExternalInterface API to call the
> > XSL(T)
> > > > > > > engine that most mainstream browsers include these days.
> > That said,
> > > > > > > there is (in my opinion) still the question of whether that
> > approach
> > > > > > > leads to a robust solution, particularly w.r.t.
cross-browser
> > > > > > > differences . . .
> > > > > > >
> > > > > > > If you want to pursue that approach, this appears to be
a good
> > > > > resource:
> > > > > > > http://ajaxpatterns.org/Browser-Side_XSLT
> > > > > > >
> > > > > > >
> > > > > > > --- In flexcoders@yahoogroups.com
> > <flexcoders%40yahoogroups.com>,
> > > > "oneworld95" <oneworld95@> wrote:
> > > > > > > >
> > > > > > > > Can XSL be used to tell Flex how to display XML data?
> I've got
> > > > > an XML
> > > > > > > > help file that I'd like to display in a popup window
in Flex
> > > > without
> > > > > > > > having to fetch each element; I'd like to just dump the
> > contents
> > > > > into
> > > > > > > > a Flex control and have it automatically apply styles
to it.
> > > > Thanks.
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > > > Alex, with my component, I grab an HTML file which is formatted
> > using
> > > > > the limited set of tags that the TextArea component supports.
> Then I
> > > > > set the htmlText property of the TextArea instance. I can also
> > call a
> > > > > servlet URL that transforms the help text in XML format and
> > apply the
> > > > > formatting using an xsl stylesheet. The Flex part only knows
it is
> > > > > calling a URL and getting back formatted text.
> > > > >
> > > > > /Paul
> > > > >
> > > >
> > > >  
> > > >
> > > 
> > > 
> > > 
> > > -- 
> > > Fotis Chatzinikos, Ph.D.
> > > Founder,
> > > Phinnovation
> > > Fotis.Chatzinikos@,
> > >
> >
>


Reply via email to