MACROMEDIA FLEX-FLEX ACTIONSCRIPT LANGUAGE Manuel d'utilisateur Page 42

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 124
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 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
Vue de la page 41
1 2 ... 37 38 39 40 41 42 43 44 45 46 47 ... 123 124

Commentaires sur ces manuels

Pas de commentaire