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()
{
_this_init();
}
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? :pac: