Return to Snippet

Revision: 49033
at July 14, 2011 07:30 by ryanstewart

Initial Code
package skins
	import flash.display.Sprite;
	public class ComboBoxButtonSkin extends ButtonSkin
		private var up:Class;
		private var down:Class;		
		protected var _triangle:Sprite;
		public function ComboBoxButtonSkin()
			upBorderSkin = up;
			downBorderSkin = down;

			_triangle = new Sprite();
		override protected function createChildren():void
		override protected function drawBackground(unscaledWidth:Number, unscaledHeight:Number):void
			var halfUnscaledHeight:int = Math.round(unscaledHeight/2);;,halfUnscaledHeight-5);,halfUnscaledHeight);,halfUnscaledHeight+5);,halfUnscaledHeight-5);;


Initial URL

Initial Description
An example of a Flex Mobile button skin using PNG assets and the Flash drawing API

Initial Title
Flex Mobile Button Skin

Initial Tags
actionscript, flash, Flex

Initial Language
ActionScript 3