MACROMEDIA FLEX-FLEX ACTIONSCRIPT LANGUAGE User Manual Page 42

  • Download
  • Add to my manuals
  • Print
  • Page
    / 124
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 41
TUTORIALS POINT
Simply Easy Learning Page 37
Enter Package as com.tutorialspoint.skin, name as GradientBackgroundSkin and choose host component as
existing flex BorderContainer control spark.component.BorderContainer.
Now you've created a skin for a BorderContainer. Modify content of the mxml skin
filesrc/com.tutorialspoint/skin/GradientBackgroundSkin.mxml. Update fill layer as follows:
<!-- fill -->
<s:Rect id="backgroundRect" left="0" right="0" height="100%" top="0">
<s:fill>
<s:LinearGradient rotation="90">
<s:GradientEntry color="0x888888" ratio="0.2"/>
<s:GradientEntry color="0x111111" ratio="1"/>
</s:LinearGradient>
</s:fill>
</s:Rect>
Step 2: Apply skin
You can apply skin over a component using two ways
Page view 41
1 2 ... 37 38 39 40 41 42 43 44 45 46 47 ... 123 124

Comments to this Manuals

No comments