Home Tutorials Forums Articles Blogs Movies Library Employment Press

Go Back   ActionScript.org Forums > Extensions and Plugins > Components

Thread Tools Rate Thread Display Modes
Old 09-23-2008, 11:41 AM   #1
Thiago Coelho
Join Date: Sep 2008
Location: Brazil - São Paulo
Posts: 2
Post [AS3] ComboBox textPadding

Hello everyone!

Please see the image below:


My code:

package com.project.swf
	import flash.display.*;
	import flash.text.*;
	import flash.utils.*;
	import fl.controls.*;
	import fl.containers.*;
	import fl.core.UIComponent;
	public class Contato extends MovieClip
		private var textFormat:TextFormat = new TextFormat();
		public function Contato()
		private function _this_init():void
			textFormat = this.tahoma.defaultTextFormat;
			combobox.dropdown.setRendererStyle("textFormat", textFormat);
			combobox.textField.setStyle("textFormat", textFormat);
			combobox.setStyle("textFormat", textFormat);
			combobox.textField.setStyle("embedFonts", true);
			combobox.dropdown.setRendererStyle("embedFonts", true);
			// Combo Padding
			combobox.setStyle("textPadding", 1);
		// Getters and Setters
		private function get combobox():ComboBox
			return this._form.getChildByName("_combobox") as ComboBox;
		private function get tahoma():TextField
			return this._form.getChildByName("_tahoma") as TextField;
How i can change the padding / y position of the textField of the dropdown list?

Anyone can help me please?
W4rbl4cK is offline   Reply With Quote
Old 09-23-2008, 01:53 PM   #2
Registered User
Join Date: Jul 2008
Posts: 1

Fala véi, tou na mesma situação. Para o componente de combobox do Flash tem apenas a propriedade de textPadding, tava olhando e para os componentes do Flex existem outras como paddingLeft, paddingRight, paddingTop e paddingBottom. Foda hein?

Usando o textPadding ele alinha apenas o padding na horizontal. Tou procurando e qualquer coisa posto aqui.

Se voce achar algo posta!

aloysiochagas is offline   Reply With Quote
Old 09-23-2008, 01:58 PM   #3
Thiago Coelho
Join Date: Sep 2008
Location: Brazil - São Paulo
Posts: 2

Bad English Version

So, i need only the vertical align of the dropdown. The textPadding propertie works only to the box, not for the cell.


Portuguese Version

Então eu preciso do alinhamento vertical do dropdown. O textPadding funciona somente para o box e não para as células.
W4rbl4cK is offline   Reply With Quote

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[AS3] ComboBox inside Datagrid CFB001 Components 13 02-05-2009 10:18 AM
[AS3] ComboBox question... Hikki Components 1 08-31-2008 04:36 AM
[AS3] full screen causes ComboBox drop down to go off screen halfasleeps Components 0 08-14-2008 07:18 PM
[AS3] Visual Custom ComboBox ItemRenderer austinflex Components 1 07-31-2008 05:30 PM
[AS3] customizing combobox dropdown component maurizio Components 0 06-05-2008 09:33 AM

All times are GMT. The time now is 02:10 AM.

Follow actionscriptorg on Twitter


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2013 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.