jgonzalez

Untitled

Oct 19th, 2011
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <s:Image xmlns:fx="http://ns.adobe.com/mxml/2009"
  3.          xmlns:s="library://ns.adobe.com/flex/spark"
  4.          xmlns:mx="library://ns.adobe.com/flex/mx"
  5.          source.found="{Icons.TICK}"
  6.          source.notFound="{Icons.MAGNIFIEREXCLAMATION}"
  7.          toolTip.found="{type} found in the database"
  8.          toolTip.notFound="{type} not found in the database"
  9.          >
  10.     <fx:Script>
  11.         <![CDATA[
  12.             import gov.usda.scans.enum.Icons;
  13.            
  14.             [Inspectable(enumeration="Fungus,Host,Locality")]
  15.             [Bindable]
  16.             public var type:String = "Fungus";
  17.  
  18.             private var _isFound:Boolean;
  19.  
  20.             public function get isFound():Boolean
  21.             {
  22.                 return _isFound;
  23.             }
  24.  
  25.             public function set isFound(value:Boolean):void
  26.             {
  27.                 currentState = (value) ? "found":"notFound";
  28.                 _isFound = value;
  29.             }
  30.  
  31.         ]]>
  32.     </fx:Script>
  33.  
  34.     <s:states>
  35.         <s:State name="found"/>
  36.         <s:State name="notFound"/>
  37.     </s:states>
  38. </s:Image>
  39.  
  40.  
Advertisement
Add Comment
Please, Sign In to add comment