Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?xml version="1.0" encoding="utf-8"?>
- <s:Image xmlns:fx="http://ns.adobe.com/mxml/2009"
- xmlns:s="library://ns.adobe.com/flex/spark"
- xmlns:mx="library://ns.adobe.com/flex/mx"
- source.found="{Icons.TICK}"
- source.notFound="{Icons.MAGNIFIEREXCLAMATION}"
- toolTip.found="{type} found in the database"
- toolTip.notFound="{type} not found in the database"
- >
- <fx:Script>
- <![CDATA[
- import gov.usda.scans.enum.Icons;
- [Inspectable(enumeration="Fungus,Host,Locality")]
- [Bindable]
- public var type:String = "Fungus";
- private var _isFound:Boolean;
- public function get isFound():Boolean
- {
- return _isFound;
- }
- public function set isFound(value:Boolean):void
- {
- currentState = (value) ? "found":"notFound";
- _isFound = value;
- }
- ]]>
- </fx:Script>
- <s:states>
- <s:State name="found"/>
- <s:State name="notFound"/>
- </s:states>
- </s:Image>
Advertisement
Add Comment
Please, Sign In to add comment