<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: ComboBox text formatting in AS3</title>
	<atom:link href="http://www.rockabit.com/2008/04/15/combobox-text-formatting-in-as3/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.rockabit.com/2008/04/15/combobox-text-formatting-in-as3/</link>
	<description>personal blog and portfolio website</description>
	<lastBuildDate>Fri, 20 Aug 2010 10:29:40 -0500</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.6</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Ruli</title>
		<link>http://www.rockabit.com/2008/04/15/combobox-text-formatting-in-as3/comment-page-1/#comment-1992</link>
		<dc:creator>Ruli</dc:creator>
		<pubDate>Fri, 20 Aug 2010 10:29:40 +0000</pubDate>
		<guid isPermaLink="false">http://www.rockabit.com/2008/04/15/combobox-text-formatting-in-as3/#comment-1992</guid>
		<description>Hallo, I&#039;m having a problem that I do not understand...

I try to embed font in combobox, I already make CustomComboBox class. But the strange thing is that in Flash IDE everything is normal, but when i try in browser..the textField in combobox just disappear. It will appear when embedFonts set to false. I have the font in my library, and the font is working. 

Is there anyone who faces the same problem? I try for hours with different techniques but it ends up nothing.</description>
		<content:encoded><![CDATA[<p>Hallo, I&#8217;m having a problem that I do not understand&#8230;</p>
<p>I try to embed font in combobox, I already make CustomComboBox class. But the strange thing is that in Flash IDE everything is normal, but when i try in browser..the textField in combobox just disappear. It will appear when embedFonts set to false. I have the font in my library, and the font is working. </p>
<p>Is there anyone who faces the same problem? I try for hours with different techniques but it ends up nothing.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: TJ</title>
		<link>http://www.rockabit.com/2008/04/15/combobox-text-formatting-in-as3/comment-page-1/#comment-1991</link>
		<dc:creator>TJ</dc:creator>
		<pubDate>Mon, 09 Aug 2010 22:38:56 +0000</pubDate>
		<guid isPermaLink="false">http://www.rockabit.com/2008/04/15/combobox-text-formatting-in-as3/#comment-1991</guid>
		<description>I found that I could not get the code as provided to work.  The drop-down text would render, but my &quot;top-text&quot; would never show.

I had to use &quot;this&quot; instead of trying to reference the &quot;textField&quot; property directly:

 this.setStyle(&#039;embedFonts&#039;, true);
 this.setStyle(&#039;textFormat&#039;, textFormat);

Instead of:


 textField.setStyle(&#039;embedFonts&#039;, true);
 textField.setStyle(&#039;textFormat&#039;, textFormat);</description>
		<content:encoded><![CDATA[<p>I found that I could not get the code as provided to work.  The drop-down text would render, but my &#8220;top-text&#8221; would never show.</p>
<p>I had to use &#8220;this&#8221; instead of trying to reference the &#8220;textField&#8221; property directly:</p>
<p> this.setStyle(&#8217;embedFonts&#8217;, true);<br />
 this.setStyle(&#8217;textFormat&#8217;, textFormat);</p>
<p>Instead of:</p>
<p> textField.setStyle(&#8217;embedFonts&#8217;, true);<br />
 textField.setStyle(&#8217;textFormat&#8217;, textFormat);</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Peter</title>
		<link>http://www.rockabit.com/2008/04/15/combobox-text-formatting-in-as3/comment-page-1/#comment-1969</link>
		<dc:creator>Peter</dc:creator>
		<pubDate>Wed, 28 Apr 2010 15:03:03 +0000</pubDate>
		<guid isPermaLink="false">http://www.rockabit.com/2008/04/15/combobox-text-formatting-in-as3/#comment-1969</guid>
		<description>Thank you for this lovely code. Helped me out a lot.</description>
		<content:encoded><![CDATA[<p>Thank you for this lovely code. Helped me out a lot.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: senthil kumaran</title>
		<link>http://www.rockabit.com/2008/04/15/combobox-text-formatting-in-as3/comment-page-1/#comment-1967</link>
		<dc:creator>senthil kumaran</dc:creator>
		<pubDate>Thu, 15 Apr 2010 09:25:34 +0000</pubDate>
		<guid isPermaLink="false">http://www.rockabit.com/2008/04/15/combobox-text-formatting-in-as3/#comment-1967</guid>
		<description>Really thanks ya really helped me alot</description>
		<content:encoded><![CDATA[<p>Really thanks ya really helped me alot</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Thijs</title>
		<link>http://www.rockabit.com/2008/04/15/combobox-text-formatting-in-as3/comment-page-1/#comment-1966</link>
		<dc:creator>Thijs</dc:creator>
		<pubDate>Mon, 22 Mar 2010 17:29:20 +0000</pubDate>
		<guid isPermaLink="false">http://www.rockabit.com/2008/04/15/combobox-text-formatting-in-as3/#comment-1966</guid>
		<description>Thanks. Was one of the first entries in google for &#039;fl.controls.ComboBox cellRenderer&#039; and worked perfectly.</description>
		<content:encoded><![CDATA[<p>Thanks. Was one of the first entries in google for &#8216;fl.controls.ComboBox cellRenderer&#8217; and worked perfectly.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kevin</title>
		<link>http://www.rockabit.com/2008/04/15/combobox-text-formatting-in-as3/comment-page-1/#comment-1964</link>
		<dc:creator>Kevin</dc:creator>
		<pubDate>Fri, 12 Feb 2010 17:22:14 +0000</pubDate>
		<guid isPermaLink="false">http://www.rockabit.com/2008/04/15/combobox-text-formatting-in-as3/#comment-1964</guid>
		<description>&lt;a href=&quot;#comment-1924&quot; rel=&quot;nofollow&quot;&gt;@Gilles &lt;/a&gt; 
Worked perfectly too ! Definitely the easiest and fastest way to position the textfield</description>
		<content:encoded><![CDATA[<p><a href="#comment-1924" rel="nofollow">@Gilles </a><br />
Worked perfectly too ! Definitely the easiest and fastest way to position the textfield</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jason Schertz</title>
		<link>http://www.rockabit.com/2008/04/15/combobox-text-formatting-in-as3/comment-page-1/#comment-1943</link>
		<dc:creator>Jason Schertz</dc:creator>
		<pubDate>Mon, 30 Nov 2009 23:07:08 +0000</pubDate>
		<guid isPermaLink="false">http://www.rockabit.com/2008/04/15/combobox-text-formatting-in-as3/#comment-1943</guid>
		<description>@Tibi:

Had this same problem today. Here&#039;s the solution.

The textField property of the ComboBox class returns a TextInput Object. TextInput inherits from Sprite, so it has access to addChild() removeChild() etc. Instead of setting the prompt property of the ComboBox, I created a TextField and added it to ComboBox.textField:

var prompt_txt:TextField = new TextField();
prompt_txt.embedFonts = true;
prompt_txt.defaultTextFormat = new TextFormat(&quot;FontName&quot;, 12, 0x333333);
prompt_txt.text = &quot;Prompt&quot;;
prompt_txt.y = -6;
			
var comboBox:ComboBox = new ComboBox();
comboBox.textField.addChild(prompt_txt);
addChild(comboBox);

There you have it, a correctly positioned &quot;prompt&quot;, now, getting the selected states to show up properly, that&#039;s much more difficult, I&#039;m halfway through coding it, hope this&#039;ll get you on the correct path though.</description>
		<content:encoded><![CDATA[<p>@Tibi:</p>
<p>Had this same problem today. Here&#8217;s the solution.</p>
<p>The textField property of the ComboBox class returns a TextInput Object. TextInput inherits from Sprite, so it has access to addChild() removeChild() etc. Instead of setting the prompt property of the ComboBox, I created a TextField and added it to ComboBox.textField:</p>
<p>var prompt_txt:TextField = new TextField();<br />
prompt_txt.embedFonts = true;<br />
prompt_txt.defaultTextFormat = new TextFormat(&#8221;FontName&#8221;, 12, 0&#215;333333);<br />
prompt_txt.text = &#8220;Prompt&#8221;;<br />
prompt_txt.y = -6;</p>
<p>var comboBox:ComboBox = new ComboBox();<br />
comboBox.textField.addChild(prompt_txt);<br />
addChild(comboBox);</p>
<p>There you have it, a correctly positioned &#8220;prompt&#8221;, now, getting the selected states to show up properly, that&#8217;s much more difficult, I&#8217;m halfway through coding it, hope this&#8217;ll get you on the correct path though.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tibi</title>
		<link>http://www.rockabit.com/2008/04/15/combobox-text-formatting-in-as3/comment-page-1/#comment-1941</link>
		<dc:creator>Tibi</dc:creator>
		<pubDate>Fri, 27 Nov 2009 11:53:50 +0000</pubDate>
		<guid isPermaLink="false">http://www.rockabit.com/2008/04/15/combobox-text-formatting-in-as3/#comment-1941</guid>
		<description>Is there any way to &#039;manipulate&#039; the textField component of the combobox? For my project I must use a non-standard font. the embedding and formatting applied work, but unfortunately, (probably due to the font&#039;s nature), the text appears a little off with 2-3 pixels and basically get&#039;s a little out of the box when rendering the combobox. I tried in all ways to try to &quot;move&quot; the textfield&#039;s with 2-3 points upper but no matter what i try it never moves. Anybody got an idea what could be done?</description>
		<content:encoded><![CDATA[<p>Is there any way to &#8216;manipulate&#8217; the textField component of the combobox? For my project I must use a non-standard font. the embedding and formatting applied work, but unfortunately, (probably due to the font&#8217;s nature), the text appears a little off with 2-3 pixels and basically get&#8217;s a little out of the box when rendering the combobox. I tried in all ways to try to &#8220;move&#8221; the textfield&#8217;s with 2-3 points upper but no matter what i try it never moves. Anybody got an idea what could be done?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kathleen</title>
		<link>http://www.rockabit.com/2008/04/15/combobox-text-formatting-in-as3/comment-page-1/#comment-1929</link>
		<dc:creator>Kathleen</dc:creator>
		<pubDate>Mon, 26 Oct 2009 22:55:21 +0000</pubDate>
		<guid isPermaLink="false">http://www.rockabit.com/2008/04/15/combobox-text-formatting-in-as3/#comment-1929</guid>
		<description>I figured it out. All I had to enter was 

txtOPT1.dropdown.setRendererStyle(&quot;textFormat&quot;, myTextFormat);</description>
		<content:encoded><![CDATA[<p>I figured it out. All I had to enter was </p>
<p>txtOPT1.dropdown.setRendererStyle(&#8221;textFormat&#8221;, myTextFormat);</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kathleen</title>
		<link>http://www.rockabit.com/2008/04/15/combobox-text-formatting-in-as3/comment-page-1/#comment-1928</link>
		<dc:creator>Kathleen</dc:creator>
		<pubDate>Mon, 26 Oct 2009 22:32:22 +0000</pubDate>
		<guid isPermaLink="false">http://www.rockabit.com/2008/04/15/combobox-text-formatting-in-as3/#comment-1928</guid>
		<description>Here is the code I have for my combobox, however I&#039;m wanting to change the color of the dropdown text. Can you help me with this code? The code I have applied right now only changes the selected text, not the dropdown text.


// ComboBox info \\
var myTextFormat:TextFormat = new TextFormat();
myTextFormat.font = &quot;Arial&quot;;
myTextFormat.color = 0xFFFFFF;
myTextFormat.size = 13;


txtOPT1.textField.setStyle(&quot;textFormat&quot;, myTextFormat);
txtOPT1.dropdown.rowHeight = 30;
txtOPT1.prompt = &quot;  Select&quot;;
txtOPT1.addItem({label:&quot;  1 Ticket&quot;, text:&quot;1&quot;}) 
txtOPT1.addItem({label:&quot;  2 Tickets&quot;, text:&quot;2&quot;}) 
txtOPT1.addItem({label:&quot;  3 Tickets&quot;, text:&quot;3&quot;}) 
txtOPT1.addItem({label:&quot;  4 Tickets&quot;, text:&quot;4&quot;}) 
txtOPT1.addItem({label:&quot;  5 Tickets&quot;, text:&quot;5&quot;}) 
txtOPT1.addItem({label:&quot;  6 Tickets&quot;, text:&quot;6&quot;}) 
txtOPT1.addItem({label:&quot;  7 Tickets&quot;, text:&quot;7&quot;}) 
txtOPT1.addItem({label:&quot;  8 Tickets&quot;, text:&quot;8&quot;}) 
txtOPT1.addItem({label:&quot;  9 Tickets&quot;, text:&quot;9&quot;}) 
txtOPT1.addItem({label:&quot;  10 Tickets&quot;, text:&quot;10&quot;})</description>
		<content:encoded><![CDATA[<p>Here is the code I have for my combobox, however I&#8217;m wanting to change the color of the dropdown text. Can you help me with this code? The code I have applied right now only changes the selected text, not the dropdown text.</p>
<p>// ComboBox info \\<br />
var myTextFormat:TextFormat = new TextFormat();<br />
myTextFormat.font = &#8220;Arial&#8221;;<br />
myTextFormat.color = 0xFFFFFF;<br />
myTextFormat.size = 13;</p>
<p>txtOPT1.textField.setStyle(&#8221;textFormat&#8221;, myTextFormat);<br />
txtOPT1.dropdown.rowHeight = 30;<br />
txtOPT1.prompt = &#8221;  Select&#8221;;<br />
txtOPT1.addItem({label:&#8221;  1 Ticket&#8221;, text:&#8221;1&#8243;})<br />
txtOPT1.addItem({label:&#8221;  2 Tickets&#8221;, text:&#8221;2&#8243;})<br />
txtOPT1.addItem({label:&#8221;  3 Tickets&#8221;, text:&#8221;3&#8243;})<br />
txtOPT1.addItem({label:&#8221;  4 Tickets&#8221;, text:&#8221;4&#8243;})<br />
txtOPT1.addItem({label:&#8221;  5 Tickets&#8221;, text:&#8221;5&#8243;})<br />
txtOPT1.addItem({label:&#8221;  6 Tickets&#8221;, text:&#8221;6&#8243;})<br />
txtOPT1.addItem({label:&#8221;  7 Tickets&#8221;, text:&#8221;7&#8243;})<br />
txtOPT1.addItem({label:&#8221;  8 Tickets&#8221;, text:&#8221;8&#8243;})<br />
txtOPT1.addItem({label:&#8221;  9 Tickets&#8221;, text:&#8221;9&#8243;})<br />
txtOPT1.addItem({label:&#8221;  10 Tickets&#8221;, text:&#8221;10&#8243;})</p>
]]></content:encoded>
	</item>
</channel>
</rss>
