Skip navigation
Currently Being Moderated

using media css rule with group container?

Mar 27, 2013 10:38 PM


     I have a label created in a component that extends Group container. I need to use the media rule to set the font size of the label for different screen densities.


     If I create the component in mxml it works fine. But, how do i get it to work with action script component.    


Thanks and Regards,


  • Currently Being Moderated
    Mar 29, 2013 11:20 AM   in reply to skanthi

    You mean like?

    myLabel.styleName = styleForLabels;


    Or do you want to set a specific style after you have created the dynamic label?  Then you will have to get the dynamic name for your Label field and then set the style name or use setStyle()

    Mark as:
  • Currently Being Moderated
    Apr 1, 2013 5:31 AM   in reply to skanthi

    Yes, you can use the media rule, according to this article.


    But, you might not be able to use the "and" method that you are trying.

    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points