TextFlow stylename not working
hi,
i want create styled text using stylename property , using css file apply style.
the problem richtext component not dispaly styled text plain ugly text.
i hoped using styled text walk in park, looks quite weird.
could recommend doc shows me rigth way go?
this example of text i'm converting textflow:
private var detailsitemvalue:string = "<span stylename='brieftext'>{labelname}</span><br/><span stylename='brieftextheavy'>{value}</span>";
var tft:textflow = textflowutil.importfromstring(displaytitle);
detailstextcomp.textflow = tft;
this definition of richtext component
<s:richtext id="detailstextcomp" left="0" width="100%"/>
and styles:
.brieftext{
| fontsize:24px; | |
| fontfamily: font_base_light; | |
| textalign:left; | |
| color: #666666; | |
| backgroundcolor:#000000; | |
| contentbackgroundalpha:0.0; | |
| textalpha: 1; | |
| paddingleft:10; | |
| paddingright:0; | |
| paddingtop:10; | |
| paddingbottom:10; | |
| backgroundalpha:0.0; | |
| bordervisible:false; |
}
.brieftextheavy{
| fontsize:26px; | |
| fontfamily: font_base_light; | |
| textalign:left; | |
| color: #000001; | |
| backgroundcolor:#000000; | |
| contentbackgroundalpha:0.0; | |
| textalpha: 1; | |
| paddingleft:10; | |
| paddingright:0; | |
| paddingtop:10; | |
| paddingbottom:0; | |
| backgroundalpha:0.0; | |
| bordervisible:false; |
}
thanks you!
More discussions in Flex (Read Only)
adobe
Comments
Post a Comment