MACROMEDIA FLEX-FLEX ACTIONSCRIPT LANGUAGE Bedienungsanleitung Seite 42

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 124
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 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
Seitenansicht 41
1 2 ... 37 38 39 40 41 42 43 44 45 46 47 ... 123 124

Kommentare zu diesen Handbüchern

Keine Kommentare