Advertisement
Guest User

Untitled

a guest
Apr 19th, 2019
182
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. In an external style sheet I have the following:
  2.  
  3. @namespace controlbars "package.to.controlbars"
  4.  
  5. controlbars|BottomControlBar
  6. {
  7.   fontFamily: openSansRegular;
  8.   fontSize: 10
  9. }
  10.  
  11. s|Label
  12. {
  13.   fontFamily: openSansRegular;
  14.   fontSize:14
  15. }
  16.  
  17. Then in a custom class BottomControlBar that inherits from Group
  18.  
  19. <s:Group>
  20.   <fx:MetaData>
  21.     [Style(name="fontFamily", type="String", inherit="yes")]
  22.     [Style(name="fontSize", type="uint", inherit="yes")]
  23.   </fx:MetaData>
  24.  
  25.   <s:Group>
  26.     <s:HGroup>
  27.       <s:Label /> // the label here does not pick up fontFmaily and fontSize from BottomControlBar
  28.     </s:HGroup>
  29.   </s:Group>
  30. </s:Group>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement