actionscript-application-flickr-ui-search-OptionsButton.mx [swf] flex
<?xml version="1.0" encoding="utf-8"?> <!-- OptionsButton Displays up and down triangles according to the direction property. --> <mx:LinkButton xmlns:mx="http://www.adobe.com/2006/mxml" xmlns="*" styleName="optionsUpButton" width="20" height="20" > <mx:Script> <![CDATA[ private var _direction:String = "down"; public function set direction( dir:String ) : void { _direction = dir; if( _direction == "up" ) { styleName="optionsUpButton"; } else { styleName="optionsDownButton"; } } public function get direction() : String { return _direction; } ]]> </mx:Script> </mx:LinkButton>
(C) Æliens 27/08/2009
You may not copy or print any of this material without explicit permission of the author or the publisher. In case of other copyright issues, contact the author.