CompactMVC is a free and easy to use compact (Multicore) Flash/Flex/Air Framework for building Applications based on MVC Design Pattern. Supports to communicate among all core actors of a module based application.

Artikel-Schlagworte: „combobox“

AS3 ComboBox Component: change size of TextField with ActionScript

Donnerstag, 23. April 2009

package com.nativeinstruments.modules.mediastage.view.components
{
	import fl.controls.ComboBox;

	public class MyComboBox extends ComboBox
	{
		public function MyComboBox()
		{
			super();
		}

		/**
		 * override super class to change size of TextField by ActionScript
		 *
		 */
		override protected function drawTextField():void
		{
			super.drawTextField();
			var rightSpace:Number = 18;
			super.inputField.setSize(width - rightSpace, 50);
		}

	}
}