Add a graphic element to the container to define a background


/ Published in: ActionScript
Save to your folder(s)



Copy this code and paste it in your HTML
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <!-- containers\spark\SparkGroupContainerRect.mxml -->
  3. <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
  4. xmlns:mx="library://ns.adobe.com/flex/mx"
  5. xmlns:s="library://ns.adobe.com/flex/spark">
  6.  
  7. <s:Group>
  8. <s:Rect x="0" y="0"
  9. radiusX="4" radiusY="4"
  10. height="100%" width="100%">
  11. <s:stroke>
  12. <s:LinearGradientStroke weight="1" scaleMode="normal"/>
  13. </s:stroke>
  14. <s:fill>
  15. <s:LinearGradient>
  16. <s:entries>
  17. <mx:GradientEntry color="0x999999"/>
  18. </s:entries>
  19. </s:LinearGradient>
  20. </s:fill>
  21. </s:Rect>
  22. <s:Button label="Button 1"
  23. left="10" top="13" bottom="10"/>
  24. <s:Button label="Button 2"
  25. left="110" top="13" bottom="10"/>
  26. <s:Button label="Button 3"
  27. left="210" top="13" bottom="10"/>
  28. <s:Button label="Button 4"
  29. left="310" top="13" right="10" bottom="10"/>
  30. </s:Group>
  31. </s:Application>

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.