Skip to main content
Known Participant
March 5, 2010
Question

Style prblem in TLF

  • March 5, 2010
  • 1 reply
  • 830 views

Hi,

    I am using the style.css file for applying style, I get this by

stepHeading {
font-size: 12px;
font-weight: bold;
color: #FFFFFF;
}

i lode the external style ob an object of url loader  in a string suppose styleName, now i want to assign it into the TextLayoutFormat.fonStyle = styleName

textLayoutFormat.fontStyle = styleName;

in above code textLayoutFormat is an object of TextLayoutFormat class  and style name is my style from css file. can there is a way to get different styles

any help would be most welcome

Gaurav kumar pandey

This topic has been closed for replies.

1 reply

Adobe Employee
March 6, 2010

CSS is not built into TLF. Are you using the CSS from within Flex? That only works down to the UIComponent level, so you can't apply it to individual text ranges. Can you supply a little more background on exactly what you are doing?

Thanks,

- robin

Known Participant
March 6, 2010

Thnks Robbin for ur reply

Robin i am using the various styles for various type of text , if is is stepText number  then diffrent style, if it is stp text then diffrent style and if stepHeading then diffrent style  and all the styles i defind in styles.css and qualify them with uniqe name , so the bottem line is this i want deffrent format for diifrent type of text.

Gaurav Kumar Pandey