Posted By

forchid on 06/17/10


Tagged

Flex skin mxml spark


Versions (?)

Empty Flex 4 Spark skin class for custom extension


 / Published in: MXML
 

  1. <?xml version="1.0" encoding="utf-8"?>
  2.  
  3. <!--
  4.   ADOBE SYSTEMS INCORPORATED
  5.   Copyright 2008 Adobe Systems Incorporated
  6.   All Rights Reserved.
  7.   NOTICE: Adobe permits you to use, modify, and distribute this file
  8.   in accordance with the terms of the license agreement accompanying it.
  9. -->
  10.  
  11. <!--- The default skin class for the Spark Button component.
  12.   @see spark.components.Button
  13.  
  14.   @langversion 3.0
  15.   @playerversion Flash 10
  16.   @playerversion AIR 1.5
  17.   @productversion Flex 4
  18. -->
  19. <s:SparkSkin xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="library://ns.adobe.com/flex/spark"
  20. xmlns:fb="http://ns.adobe.com/flashbuilder/2009" minWidth="10" minHeight="10" alpha.disabled="0.5">
  21.  
  22. <!-- host component -->
  23. <fx:Metadata>
  24. <![CDATA[
  25. /**
  26. * @copy spark.skins.spark.ApplicationSkin#hostComponent
  27. */
  28. [HostComponent("spark.components.Button")]
  29. ]]>
  30. </fx:Metadata>
  31.  
  32. <!-- states -->
  33. <s:states>
  34. <s:State name="up" />
  35. <s:State name="over" />
  36. <s:State name="down" />
  37. <s:State name="disabled" />
  38. </s:states>
  39.  
  40. <!-- text -->
  41. <s:Label id="labelDisplay"
  42. textAlign="center"
  43. verticalAlign="middle"
  44. maxDisplayedLines="1"
  45. horizontalCenter="0" verticalCenter="1"
  46. left="10" right="10" top="2" bottom="2">
  47. </s:Label>
  48.  
  49. </s:SparkSkin>

Report this snippet  

You need to login to post a comment.