<?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/"
		xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd"
	xmlns:media="http://search.yahoo.com/mrss/"
	>
<channel>
	<title>Comments on: AS3 Pitfalls &#8211; TextField.setSelection not working</title>
	<atom:link href="http://www.untoldentertainment.com/blog/2008/01/11/as3-pitfalls-textfieldsetselection-not-working/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.untoldentertainment.com/blog/2008/01/11/as3-pitfalls-textfieldsetselection-not-working/</link>
	<description>We Make Flash Games</description>
	<lastBuildDate>Fri, 10 Feb 2012 03:01:47 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Sean</title>
		<link>http://www.untoldentertainment.com/blog/2008/01/11/as3-pitfalls-textfieldsetselection-not-working/comment-page-1/#comment-8417</link>
		<dc:creator>Sean</dc:creator>
		<pubDate>Sat, 18 Jun 2011 11:22:39 +0000</pubDate>
		<guid isPermaLink="false">http://untoldentertainment.com/blog/2008/01/11/as3-pitfalls-textfieldsetselection-not-working/#comment-8417</guid>
		<description>Thanks LAtcho, temporarily emptying the TextField worked for me.</description>
		<content:encoded><![CDATA[<p>Thanks LAtcho, temporarily emptying the TextField worked for me.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ryan Henson Creighton</title>
		<link>http://www.untoldentertainment.com/blog/2008/01/11/as3-pitfalls-textfieldsetselection-not-working/comment-page-1/#comment-8062</link>
		<dc:creator>Ryan Henson Creighton</dc:creator>
		<pubDate>Tue, 17 May 2011 18:09:26 +0000</pubDate>
		<guid isPermaLink="false">http://untoldentertainment.com/blog/2008/01/11/as3-pitfalls-textfieldsetselection-not-working/#comment-8062</guid>
		<description>i&#039;m like some kind of superhero, but for nerds.</description>
		<content:encoded><![CDATA[<p>i&#8217;m like some kind of superhero, but for nerds.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: raigan</title>
		<link>http://www.untoldentertainment.com/blog/2008/01/11/as3-pitfalls-textfieldsetselection-not-working/comment-page-1/#comment-8038</link>
		<dc:creator>raigan</dc:creator>
		<pubDate>Sat, 14 May 2011 19:50:38 +0000</pubDate>
		<guid isPermaLink="false">http://untoldentertainment.com/blog/2008/01/11/as3-pitfalls-textfieldsetselection-not-working/#comment-8038</guid>
		<description>Hooray! You saved us Ryan :)</description>
		<content:encoded><![CDATA[<p>Hooray! You saved us Ryan :)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Brax</title>
		<link>http://www.untoldentertainment.com/blog/2008/01/11/as3-pitfalls-textfieldsetselection-not-working/comment-page-1/#comment-6755</link>
		<dc:creator>Brax</dc:creator>
		<pubDate>Tue, 19 Oct 2010 13:19:44 +0000</pubDate>
		<guid isPermaLink="false">http://untoldentertainment.com/blog/2008/01/11/as3-pitfalls-textfieldsetselection-not-working/#comment-6755</guid>
		<description>Why is there always a newbie spamming useful post with his FULL CLASS CODE?</description>
		<content:encoded><![CDATA[<p>Why is there always a newbie spamming useful post with his FULL CLASS CODE?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Aaron Hardy</title>
		<link>http://www.untoldentertainment.com/blog/2008/01/11/as3-pitfalls-textfieldsetselection-not-working/comment-page-1/#comment-3427</link>
		<dc:creator>Aaron Hardy</dc:creator>
		<pubDate>Mon, 27 Jul 2009 15:31:24 +0000</pubDate>
		<guid isPermaLink="false">http://untoldentertainment.com/blog/2008/01/11/as3-pitfalls-textfieldsetselection-not-working/#comment-3427</guid>
		<description>Thanks for this solution.  It worked for me.</description>
		<content:encoded><![CDATA[<p>Thanks for this solution.  It worked for me.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ZFB</title>
		<link>http://www.untoldentertainment.com/blog/2008/01/11/as3-pitfalls-textfieldsetselection-not-working/comment-page-1/#comment-3380</link>
		<dc:creator>ZFB</dc:creator>
		<pubDate>Mon, 06 Jul 2009 14:17:55 +0000</pubDate>
		<guid isPermaLink="false">http://untoldentertainment.com/blog/2008/01/11/as3-pitfalls-textfieldsetselection-not-working/#comment-3380</guid>
		<description>In case anyone is still running into the selection problem setSelection works in a similar fashion to String.substr where you have to specify the start point, which if you want to select everything is always 0, and the end position, which you can dynamically grab using TextFieldName.text.length.
Example:
searchField_txt.setSelection(0, searchField_txt.text.length);</description>
		<content:encoded><![CDATA[<p>In case anyone is still running into the selection problem setSelection works in a similar fashion to String.substr where you have to specify the start point, which if you want to select everything is always 0, and the end position, which you can dynamically grab using TextFieldName.text.length.<br />
Example:<br />
searchField_txt.setSelection(0, searchField_txt.text.length);</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Joe</title>
		<link>http://www.untoldentertainment.com/blog/2008/01/11/as3-pitfalls-textfieldsetselection-not-working/comment-page-1/#comment-3364</link>
		<dc:creator>Joe</dc:creator>
		<pubDate>Wed, 24 Jun 2009 10:59:59 +0000</pubDate>
		<guid isPermaLink="false">http://untoldentertainment.com/blog/2008/01/11/as3-pitfalls-textfieldsetselection-not-working/#comment-3364</guid>
		<description>I had the same problem with keyboard events firing up the UI. I always just re-ran immediately in a flash player - didn&#039;t know you could disable shortcuts!
Thanks for the setSelection tip... :)</description>
		<content:encoded><![CDATA[<p>I had the same problem with keyboard events firing up the UI. I always just re-ran immediately in a flash player &#8211; didn&#8217;t know you could disable shortcuts!<br />
Thanks for the setSelection tip&#8230; :)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dan</title>
		<link>http://www.untoldentertainment.com/blog/2008/01/11/as3-pitfalls-textfieldsetselection-not-working/comment-page-1/#comment-3161</link>
		<dc:creator>Dan</dc:creator>
		<pubDate>Thu, 07 May 2009 13:36:28 +0000</pubDate>
		<guid isPermaLink="false">http://untoldentertainment.com/blog/2008/01/11/as3-pitfalls-textfieldsetselection-not-working/#comment-3161</guid>
		<description>Thanks!</description>
		<content:encoded><![CDATA[<p>Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Eightlines</title>
		<link>http://www.untoldentertainment.com/blog/2008/01/11/as3-pitfalls-textfieldsetselection-not-working/comment-page-1/#comment-3153</link>
		<dc:creator>Eightlines</dc:creator>
		<pubDate>Wed, 06 May 2009 17:31:00 +0000</pubDate>
		<guid isPermaLink="false">http://untoldentertainment.com/blog/2008/01/11/as3-pitfalls-textfieldsetselection-not-working/#comment-3153</guid>
		<description>FocusEvent.FOCUS_IN does not allow setSelection() to operate as expected. Changed it to MouseEvent.CLICK and it works correctly.</description>
		<content:encoded><![CDATA[<p>FocusEvent.FOCUS_IN does not allow setSelection() to operate as expected. Changed it to MouseEvent.CLICK and it works correctly.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jed</title>
		<link>http://www.untoldentertainment.com/blog/2008/01/11/as3-pitfalls-textfieldsetselection-not-working/comment-page-1/#comment-2913</link>
		<dc:creator>Jed</dc:creator>
		<pubDate>Wed, 25 Mar 2009 18:12:26 +0000</pubDate>
		<guid isPermaLink="false">http://untoldentertainment.com/blog/2008/01/11/as3-pitfalls-textfieldsetselection-not-working/#comment-2913</guid>
		<description>the setSelection method was not working as expected for me when called as a result of a FocusEvent.FOCUS_IN event on a textfield, but i can confirm that like mathias, delaying the call to setSelection seemed to help/fix the issue

setTimeout(tf.setSelection,50,0,tf.length);

thanks mathias! i guess the actual click on the textfield that prompted the focus event was overriding the setSelection somehow :P</description>
		<content:encoded><![CDATA[<p>the setSelection method was not working as expected for me when called as a result of a FocusEvent.FOCUS_IN event on a textfield, but i can confirm that like mathias, delaying the call to setSelection seemed to help/fix the issue</p>
<p>setTimeout(tf.setSelection,50,0,tf.length);</p>
<p>thanks mathias! i guess the actual click on the textfield that prompted the focus event was overriding the setSelection somehow :P</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Anders</title>
		<link>http://www.untoldentertainment.com/blog/2008/01/11/as3-pitfalls-textfieldsetselection-not-working/comment-page-1/#comment-2910</link>
		<dc:creator>Anders</dc:creator>
		<pubDate>Wed, 25 Mar 2009 15:52:03 +0000</pubDate>
		<guid isPermaLink="false">http://untoldentertainment.com/blog/2008/01/11/as3-pitfalls-textfieldsetselection-not-working/#comment-2910</guid>
		<description>Hey. I Googled up this discussion. I have a similar problem, but kind of the opposite.
What i&#039;m doing is that i&#039;m setting the defaultTextFormat once. Then i&#039;m changing the text in a textField to different texts. It works fine until i click on the textField. After i click and then change the text once more, then defaultTextFormat i reset to the default defautlTextFormat, and not the defaultTextFormat i have set.

I can solve the problem by setting the selectable flag to false, but then the text won&#039;t be selectable ofc.

To me it seems like selecting a text field resets the defaultTextFormat property. Does anyone know more about this?</description>
		<content:encoded><![CDATA[<p>Hey. I Googled up this discussion. I have a similar problem, but kind of the opposite.<br />
What i&#8217;m doing is that i&#8217;m setting the defaultTextFormat once. Then i&#8217;m changing the text in a textField to different texts. It works fine until i click on the textField. After i click and then change the text once more, then defaultTextFormat i reset to the default defautlTextFormat, and not the defaultTextFormat i have set.</p>
<p>I can solve the problem by setting the selectable flag to false, but then the text won&#8217;t be selectable ofc.</p>
<p>To me it seems like selecting a text field resets the defaultTextFormat property. Does anyone know more about this?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Trond</title>
		<link>http://www.untoldentertainment.com/blog/2008/01/11/as3-pitfalls-textfieldsetselection-not-working/comment-page-1/#comment-2645</link>
		<dc:creator>Trond</dc:creator>
		<pubDate>Thu, 29 Jan 2009 06:14:04 +0000</pubDate>
		<guid isPermaLink="false">http://untoldentertainment.com/blog/2008/01/11/as3-pitfalls-textfieldsetselection-not-working/#comment-2645</guid>
		<description>Just wanted to note that if you change the value of the myTextField.selectable it inserts a new text with default formating (in addition to what was there before). Set and keep myTextField.selectable = true when you create the TextField and don&#039;t change it, then you can avoid some problems.</description>
		<content:encoded><![CDATA[<p>Just wanted to note that if you change the value of the myTextField.selectable it inserts a new text with default formating (in addition to what was there before). Set and keep myTextField.selectable = true when you create the TextField and don&#8217;t change it, then you can avoid some problems.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: mathias</title>
		<link>http://www.untoldentertainment.com/blog/2008/01/11/as3-pitfalls-textfieldsetselection-not-working/comment-page-1/#comment-1169</link>
		<dc:creator>mathias</dc:creator>
		<pubDate>Wed, 22 Oct 2008 13:16:51 +0000</pubDate>
		<guid isPermaLink="false">http://untoldentertainment.com/blog/2008/01/11/as3-pitfalls-textfieldsetselection-not-working/#comment-1169</guid>
		<description>i had the same problem...
seems to be a timing issue with the cursor position *just* overriding the setSelection call.
i could fix it with a delay in my focus handler method:
setTimeout(myTextField.setSelection, 50, 0, myTextField.length);</description>
		<content:encoded><![CDATA[<p>i had the same problem&#8230;<br />
seems to be a timing issue with the cursor position *just* overriding the setSelection call.<br />
i could fix it with a delay in my focus handler method:<br />
setTimeout(myTextField.setSelection, 50, 0, myTextField.length);</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: wil</title>
		<link>http://www.untoldentertainment.com/blog/2008/01/11/as3-pitfalls-textfieldsetselection-not-working/comment-page-1/#comment-878</link>
		<dc:creator>wil</dc:creator>
		<pubDate>Thu, 24 Jul 2008 17:12:53 +0000</pubDate>
		<guid isPermaLink="false">http://untoldentertainment.com/blog/2008/01/11/as3-pitfalls-textfieldsetselection-not-working/#comment-878</guid>
		<description>Doesn&#039;t happen when you test it in a browser, either. Just when you test the movie in flash. Lovely little bug.</description>
		<content:encoded><![CDATA[<p>Doesn&#8217;t happen when you test it in a browser, either. Just when you test the movie in flash. Lovely little bug.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: LAtcho</title>
		<link>http://www.untoldentertainment.com/blog/2008/01/11/as3-pitfalls-textfieldsetselection-not-working/comment-page-1/#comment-877</link>
		<dc:creator>LAtcho</dc:creator>
		<pubDate>Sat, 19 Jul 2008 01:17:45 +0000</pubDate>
		<guid isPermaLink="false">http://untoldentertainment.com/blog/2008/01/11/as3-pitfalls-textfieldsetselection-not-working/#comment-877</guid>
		<description>didn&#039;t work for me because my input field&#039;s text was empty...
If I set programatically focus on an empty field, I see no caret if the field is empty. (or on a WHITE text field WITH text I get a black caret - instead of white- that didn&#039;t responded to keyboard hits except after hitting right or left arrow)

So my solution to get a AUTO FOCUS and a BLINKING CARETof the WRIGHT TEXT COLOR into textfield:
Here are 3 tricks to get that caret automatically where you think it belongs.
The code written below is not tested for errors, but the concepts are.

var myTF:TextField=new TextField()
myTF.type=&#039;input&#039;;
myTF.text=&quot; &quot;; //at least a space or temp content &#039;foo&#039; text, but NOT empty !
myTF.stage.focus = myTF; 
myTF.setSelection(myTF.length,myTF.length);
myTF.text = &quot;&quot;;  //empty it again :)
//nice blinky carey in empty field!

/* now for auto focus on a  `pre-filled` textfield and a blinking caret on the last position - after last char : */

var myTF:TextField=new TextField()
myTF.type=&#039;input&#039;;
myTF.text=&#039;default text&#039;; //we had this before the focus
myTF.stage.focus = myTF; 
myTF.setSelection(myTF.length,myTF.length);
//gives us a caret at the end of the textfield

/* and to get that caret to the beginning of a textfield with `pre-filled` text - before first char */

var tmp:String = myTF.text   //we had this &quot;textcontent&quot; in the beginning, before focus
myTF.stage.focus = myTF;
myTF.text=&quot; &quot;; //at least a space or temp content &#039;foo&#039; text, but NOT empty !
myTF.setSelection(first_name.length,first_name.length)
myTF.text = &quot;&quot;; // now empty, we need this step ...
myTF.text = tmp; //now the old text again 
//caret is upfront now


took me hours to work around this buggy mess...
enjoy it
LATCHO</description>
		<content:encoded><![CDATA[<p>didn&#8217;t work for me because my input field&#8217;s text was empty&#8230;<br />
If I set programatically focus on an empty field, I see no caret if the field is empty. (or on a WHITE text field WITH text I get a black caret &#8211; instead of white- that didn&#8217;t responded to keyboard hits except after hitting right or left arrow)</p>
<p>So my solution to get a AUTO FOCUS and a BLINKING CARETof the WRIGHT TEXT COLOR into textfield:<br />
Here are 3 tricks to get that caret automatically where you think it belongs.<br />
The code written below is not tested for errors, but the concepts are.</p>
<p>var myTF:TextField=new TextField()<br />
myTF.type=&#8217;input&#8217;;<br />
myTF.text=&#8221; &#8220;; //at least a space or temp content &#8216;foo&#8217; text, but NOT empty !<br />
myTF.stage.focus = myTF;<br />
myTF.setSelection(myTF.length,myTF.length);<br />
myTF.text = &#8220;&#8221;;  //empty it again :)<br />
//nice blinky carey in empty field!</p>
<p>/* now for auto focus on a  `pre-filled` textfield and a blinking caret on the last position &#8211; after last char : */</p>
<p>var myTF:TextField=new TextField()<br />
myTF.type=&#8217;input&#8217;;<br />
myTF.text=&#8217;default text&#8217;; //we had this before the focus<br />
myTF.stage.focus = myTF;<br />
myTF.setSelection(myTF.length,myTF.length);<br />
//gives us a caret at the end of the textfield</p>
<p>/* and to get that caret to the beginning of a textfield with `pre-filled` text &#8211; before first char */</p>
<p>var tmp:String = myTF.text   //we had this &#8220;textcontent&#8221; in the beginning, before focus<br />
myTF.stage.focus = myTF;<br />
myTF.text=&#8221; &#8220;; //at least a space or temp content &#8216;foo&#8217; text, but NOT empty !<br />
myTF.setSelection(first_name.length,first_name.length)<br />
myTF.text = &#8220;&#8221;; // now empty, we need this step &#8230;<br />
myTF.text = tmp; //now the old text again<br />
//caret is upfront now</p>
<p>took me hours to work around this buggy mess&#8230;<br />
enjoy it<br />
LATCHO</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ryan</title>
		<link>http://www.untoldentertainment.com/blog/2008/01/11/as3-pitfalls-textfieldsetselection-not-working/comment-page-1/#comment-609</link>
		<dc:creator>Ryan</dc:creator>
		<pubDate>Sat, 05 Apr 2008 02:38:50 +0000</pubDate>
		<guid isPermaLink="false">http://untoldentertainment.com/blog/2008/01/11/as3-pitfalls-textfieldsetselection-not-working/#comment-609</guid>
		<description>Ohhhhhh - NOW i know what you&#039;re talking about.  Everyone i talk to has had this problem too - we&#039;ve just experienced it in a different way.  

The way i saw it was that i put a simple Key listener together and i couldn&#039;t understand why it didn&#039;t report every keystroke.  Then i noticed that while i tested my movie, various things on the IDE toolbar were lighting up.

 There it was - Disable Keyboard Shortcuts was the culprit.

i&#039;m going to write a separate post about this issue, because it seems to be tripping up everyone i know!

Thanks for posting your fix, Stickeroo.</description>
		<content:encoded><![CDATA[<p>Ohhhhhh &#8211; NOW i know what you&#8217;re talking about.  Everyone i talk to has had this problem too &#8211; we&#8217;ve just experienced it in a different way.  </p>
<p>The way i saw it was that i put a simple Key listener together and i couldn&#8217;t understand why it didn&#8217;t report every keystroke.  Then i noticed that while i tested my movie, various things on the IDE toolbar were lighting up.</p>
<p> There it was &#8211; Disable Keyboard Shortcuts was the culprit.</p>
<p>i&#8217;m going to write a separate post about this issue, because it seems to be tripping up everyone i know!</p>
<p>Thanks for posting your fix, Stickeroo.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Stickeroo</title>
		<link>http://www.untoldentertainment.com/blog/2008/01/11/as3-pitfalls-textfieldsetselection-not-working/comment-page-1/#comment-608</link>
		<dc:creator>Stickeroo</dc:creator>
		<pubDate>Fri, 04 Apr 2008 18:07:29 +0000</pubDate>
		<guid isPermaLink="false">http://untoldentertainment.com/blog/2008/01/11/as3-pitfalls-textfieldsetselection-not-working/#comment-608</guid>
		<description>Ah, you know what? I was noticing the problem while testing my movie in Flash. When I disabled the keyboard shortcuts, it worked like it should...Maybe that&#039;s the weird character issue?</description>
		<content:encoded><![CDATA[<p>Ah, you know what? I was noticing the problem while testing my movie in Flash. When I disabled the keyboard shortcuts, it worked like it should&#8230;Maybe that&#8217;s the weird character issue?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Stickeroo</title>
		<link>http://www.untoldentertainment.com/blog/2008/01/11/as3-pitfalls-textfieldsetselection-not-working/comment-page-1/#comment-607</link>
		<dc:creator>Stickeroo</dc:creator>
		<pubDate>Fri, 04 Apr 2008 17:35:21 +0000</pubDate>
		<guid isPermaLink="false">http://untoldentertainment.com/blog/2008/01/11/as3-pitfalls-textfieldsetselection-not-working/#comment-607</guid>
		<description>I just noticed this issue, too: the TextField appears to have focus, but when you type, you get a seemingly random array of characters...Here&#039;s the whole class (which has a lot of extra junk, but hey):

&lt;code&gt;
package
{
	import mdm.*;
	
	import flash.errors.*;
	import flash.events.*;
	
	import flash.display.Stage;
	import flash.display.Sprite;
	import flash.display.SimpleButton;
	import flash.display.GradientType;
	import flash.display.BlendMode;
	
	import flash.filters.DropShadowFilter;
	import flash.filters.GlowFilter;
	
	import flash.geom.Matrix;
	
	import flash.text.TextField;
	import flash.text.TextFieldAutoSize;
	import flash.text.TextFormat;
	import flash.text.TextFormatAlign;
	import flash.text.TextFieldType;
	import flash.text.AntiAliasType;
	import flash.text.Font;
	
	public class OtherAddress extends Sprite
	{
		public static const OA_WIDTH:uint=400;
		public static const OA_HEIGHT:uint=256;
		
		public static const OA_FIELD_WIDTH:uint=304;
		public static const OA_FIELD_HEIGHT:uint=24;
		
		internal var oaStage:Stage;
		internal var oa:OtherAddress;
		
		public var returnedAddress:Array;
		
		private var base:Sprite;
		private var spec:Sprite;
		
		private var oaLabel:TextField;

		private var oaStreet:Sprite;
		private var oaCity:Sprite;
		private var oaState:Sprite;
		private var oaZipCode:Sprite;
		
		private var oaStreetSpec:Sprite;
		private var oaCitySpec:Sprite;
		private var oaStateSpec:Sprite;
		private var oaZipCodeSpec:Sprite;
		
		private var oaStreetInput:TextField;
		private var oaCityInput:TextField;
		private var oaStateInput:TextField;
		private var oaZipCodeInput:TextField;
		
		private var oaStreetLabel:TextField;
		private var oaCityLabel:TextField;
		private var oaStateLabel:TextField;
		private var oaZipCodeLabel:TextField;
		
		private var oaOK:SimpleButton;
		private var oaCancel:SimpleButton;
		
		private var oaOKLabel:TextField;
		private var oaCancelLabel:TextField;
		
		public function OtherAddress ()
		{
			mdm.Application.init(this, doOtherAddress);
		}
		
		private function doOtherAddress ():void
		{
			drawDisplayObjects ();
		}
		
		private function drawDisplayObjects ():void
		{
			oaStage=this.stage;
			oa=this;
			
			base=new Sprite();
			base.cacheAsBitmap=true;
			base.blendMode=BlendMode.LAYER;
			
			var baseMatrix:Matrix=new Matrix();
			baseMatrix.createGradientBox(OA_WIDTH, OA_HEIGHT, (Math.PI/180)*90);
			
			var baseColors:Array=new Array(0xFFFFFF, 0x4E6E6E6);
			var baseAlphas:Array=new Array(1, 1);
			var baseRatios:Array=new Array(0, 255);
			
			base.graphics.beginGradientFill(GradientType.LINEAR, baseColors, baseAlphas, baseRatios, baseMatrix);
			base.graphics.drawRect(0, 0, OA_WIDTH, OA_HEIGHT);
			
			spec=new Sprite();
			spec.cacheAsBitmap=true;
			spec.blendMode=BlendMode.SCREEN;
			
			var specMatrix:Matrix=new Matrix();
			specMatrix.createGradientBox(OA_WIDTH-4, 22, (Math.PI/180)*90);
			
			var specColors:Array=new Array(0xFFFFFF, 0xFFFFFF);
			var specAlphas:Array=new Array(0.3, 0.1);
			var specRatios:Array=new Array(0, 255);
			
			spec.graphics.beginGradientFill(GradientType.LINEAR, specColors, specAlphas, specRatios, specMatrix);
			spec.graphics.drawRect(0, 0, OA_WIDTH-4, 22);
			spec.x=spec.y=2;
			
			oaLabel=new TextField();
			
			var oaLabelFormat:TextFormat=new TextFormat();
			oaLabelFormat.font=new HNCB().fontName;
			oaLabelFormat.size=24;
			oaLabelFormat.color=0x4D4D4D;
			
			oaLabel.defaultTextFormat=oaLabelFormat;
			oaLabel.embedFonts=true;
			oaLabel.selectable=false;
			oaLabel.text=&quot;Enter an address:&quot;;
			oaLabel.antiAliasType=AntiAliasType.ADVANCED;
			oaLabel.autoSize=TextFieldAutoSize.LEFT;
			oaLabel.width=OA_WIDTH-32;
			oaLabel.autoSize=TextFieldAutoSize.NONE;
			
			oaLabel.x=16;
			oaLabel.y=Math.abs((oaLabel.height*0.5)-8);
			
			// Small labels.
			var smallLabelFormat:TextFormat=new TextFormat();
			smallLabelFormat.font=new HNC().fontName;
			smallLabelFormat.size=16;
			smallLabelFormat.align=TextFormatAlign.RIGHT;
			smallLabelFormat.color=0x4D4D4D;
			
			oaStreetLabel=new TextField();
			oaStreetLabel.defaultTextFormat=smallLabelFormat;
			oaStreetLabel.embedFonts=true;
			oaStreetLabel.selectable=false;
			oaStreetLabel.text=&quot;Street&quot;;
			oaStreetLabel.antiAliasType=AntiAliasType.ADVANCED;
			oaStreetLabel.width=48;
			oaStreetLabel.height=22;
			
			oaCityLabel=new TextField();
			oaCityLabel.defaultTextFormat=smallLabelFormat;
			oaCityLabel.embedFonts=true;
			oaCityLabel.selectable=false;
			oaCityLabel.text=&quot;City&quot;;
			oaCityLabel.antiAliasType=AntiAliasType.ADVANCED;
			oaCityLabel.width=48;
			oaCityLabel.height=22;

			oaStateLabel=new TextField();
			oaStateLabel.defaultTextFormat=smallLabelFormat;
			oaStateLabel.embedFonts=true;
			oaStateLabel.selectable=false;
			oaStateLabel.text=&quot;State&quot;;
			oaStateLabel.antiAliasType=AntiAliasType.ADVANCED;
			oaStateLabel.width=48;
			oaStateLabel.height=22;
			
			oaZipCodeLabel=new TextField();
			oaZipCodeLabel.defaultTextFormat=smallLabelFormat;
			oaZipCodeLabel.embedFonts=true;
			oaZipCodeLabel.selectable=false;
			oaZipCodeLabel.text=&quot;ZIP&quot;;
			oaZipCodeLabel.antiAliasType=AntiAliasType.ADVANCED;
			oaZipCodeLabel.width=48;
			oaZipCodeLabel.height=22;
			
			oaStreetLabel.x=16; oaStreetLabel.y=64-(oaStreetLabel.height*0.5);
			oaCityLabel.x=16; oaCityLabel.y=96-(oaCityLabel.height*0.5);
			oaStateLabel.x=16; oaStateLabel.y=128-(oaStateLabel.height*0.5);
			oaZipCodeLabel.x=16; oaZipCodeLabel.y=160-(oaZipCodeLabel.height*0.5);
			
			// Create text input clips and fields.
			var fbMatrix:Matrix=new Matrix;
			fbMatrix.createGradientBox(OA_FIELD_WIDTH, OA_FIELD_HEIGHT, (Math.PI/180)*90);
			
			var fbColors:Array=new Array(0xB3B3B3, 0x808080, 0xB3B3B3);
			var fbAlphas:Array=new Array(0.5, 0.1, 0.3);
			var fbRatios:Array=new Array(0, 191, 255);
			
			var fbSpecMatrix:Matrix=new Matrix();
			fbSpecMatrix.createGradientBox(OA_FIELD_WIDTH-4, (OA_FIELD_HEIGHT*0.5)-2, (Math.PI/180)*90);
			
			var fbSpecColors:Array=new Array(0xFFFFFF, 0xFFFFFF);
			var fbSpecAlphas:Array=new Array(0.5, 0.1);
			var fbSpecRatios:Array=new Array(0, 255);
			
			oaStreet=new Sprite();
			oaStreet.cacheAsBitmap=true;
			oaStreet.blendMode=BlendMode.LAYER;
			
			oaStreet.graphics.beginGradientFill(GradientType.LINEAR, fbColors, fbAlphas, fbRatios, fbMatrix);
			oaStreet.graphics.drawRect(0, 0, OA_FIELD_WIDTH, OA_FIELD_HEIGHT);
			oaStreet.x=80;
			oaStreet.y=64-(OA_FIELD_HEIGHT*0.5);
			
			oaCity=new Sprite();
			oaCity.cacheAsBitmap=true;
			oaCity.blendMode=BlendMode.LAYER;
			
			oaCity.graphics.beginGradientFill(GradientType.LINEAR, fbColors, fbAlphas, fbRatios, fbMatrix);
			oaCity.graphics.drawRect(0, 0, OA_FIELD_WIDTH, OA_FIELD_HEIGHT);
			oaCity.x=80;
			oaCity.y=96-(OA_FIELD_HEIGHT*0.5);
			
			oaState=new Sprite();
			oaState.cacheAsBitmap=true;
			oaState.blendMode=BlendMode.LAYER;
			
			oaState.graphics.beginGradientFill(GradientType.LINEAR, fbColors, fbAlphas, fbRatios, fbMatrix);
			oaState.graphics.drawRect(0, 0, OA_FIELD_WIDTH, OA_FIELD_HEIGHT);
			oaState.x=80;
			oaState.y=128-(OA_FIELD_HEIGHT*0.5);
			
			oaZipCode=new Sprite();
			oaZipCode.cacheAsBitmap=true;
			oaZipCode.blendMode=BlendMode.LAYER;
			
			oaZipCode.graphics.beginGradientFill(GradientType.LINEAR, fbColors, fbAlphas, fbRatios, fbMatrix);
			oaZipCode.graphics.drawRect(0, 0, OA_FIELD_WIDTH, OA_FIELD_HEIGHT);
			oaZipCode.x=80;
			oaZipCode.y=160-(OA_FIELD_HEIGHT*0.5);
			
			// Field textFields.
			var fieldFormat:TextFormat=new TextFormat();
			fieldFormat.font=new HNC().fontName;
			fieldFormat.size=16;
			fieldFormat.align=TextFormatAlign.LEFT;
			fieldFormat.color=0x4D4D4D;
			
			oaStreetInput=new TextField();
			oaStreetInput.defaultTextFormat=fieldFormat;
			oaStreetInput.embedFonts=true;
			oaStreetInput.type=TextFieldType.INPUT;
			oaStreetInput.text=&quot;&quot;;
			oaStreetInput.antiAliasType=AntiAliasType.ADVANCED;
			oaStreetInput.width=OA_FIELD_WIDTH-8;
			oaStreetInput.height=OA_FIELD_HEIGHT;
			oaStreetInput.x=4; oaStreetInput.y=0;
			
			oaCityInput=new TextField();
			oaCityInput.defaultTextFormat=fieldFormat;
			oaCityInput.embedFonts=true;
			oaCityInput.type=TextFieldType.INPUT;
			oaCityInput.text=&quot;&quot;;
			oaCityInput.antiAliasType=AntiAliasType.ADVANCED;
			oaCityInput.width=OA_FIELD_WIDTH-8;
			oaCityInput.height=OA_FIELD_HEIGHT;
			oaCityInput.x=4; oaCityInput.y=0;
			
			oaStateInput=new TextField();
			oaStateInput.defaultTextFormat=fieldFormat;
			oaStateInput.embedFonts=true;
			oaStateInput.type=TextFieldType.INPUT;
			oaStateInput.text=&quot;&quot;;
			oaStateInput.antiAliasType=AntiAliasType.ADVANCED;
			oaStateInput.width=OA_FIELD_WIDTH-8;
			oaStateInput.height=OA_FIELD_HEIGHT;
			oaStateInput.x=4; oaStateInput.y=0;
			
			oaZipCodeInput=new TextField();
			oaZipCodeInput.defaultTextFormat=fieldFormat;
			oaZipCodeInput.embedFonts=true;
			oaZipCodeInput.type=TextFieldType.INPUT;
			oaZipCodeInput.text=&quot;&quot;;
			oaZipCodeInput.antiAliasType=AntiAliasType.ADVANCED;
			oaZipCodeInput.width=OA_FIELD_WIDTH-8;
			oaZipCodeInput.height=OA_FIELD_HEIGHT;
			oaZipCodeInput.x=4; oaZipCodeInput.y=0;

			oaStreet.addChild(oaStreetInput);
			oaCity.addChild(oaCityInput);
			oaState.addChild(oaStateInput);
			oaZipCode.addChild(oaZipCodeInput);
			
			/*
			// &gt;&gt;
			// Field specs.
			oaStreetSpec=new Sprite();
			oaStreetSpec.cacheAsBitmap=true;
			oaStreetSpec.blendMode=BlendMode.ADD;
			oaStreetSpec.mouseEnabled=false;
			
			oaStreetSpec.graphics.beginGradientFill(GradientType.LINEAR, fbSpecColors, fbSpecAlphas, fbSpecRatios, fbSpecMatrix);
			oaStreetSpec.graphics.drawRect(0, 0, OA_FIELD_WIDTH-4, (OA_FIELD_HEIGHT*0.5)-2);
			oaStreetSpec.x=oaStreetSpec.y=2;
			oaStreet.addChild(oaStreetSpec);
			*/
			
			// Assemble parts.
			oa.addChild(base);
			oa.addChild(oaLabel);
			
			oa.addChild(oaStreetLabel);
			oa.addChild(oaCityLabel);
			oa.addChild(oaStateLabel);
			oa.addChild(oaZipCodeLabel);
			
			oa.addChild(oaStreet);
			oa.addChild(oaCity);
			oa.addChild(oaState);
			oa.addChild(oaZipCode);
			
			// oa.addChild(spec);
			oaStage.focus=oaStreetInput;
		}
	}
}
&lt;/code&gt;</description>
		<content:encoded><![CDATA[<p>I just noticed this issue, too: the TextField appears to have focus, but when you type, you get a seemingly random array of characters&#8230;Here&#8217;s the whole class (which has a lot of extra junk, but hey):</p>
<p><code><br />
package<br />
{<br />
	import mdm.*;</p>
<p>	import flash.errors.*;<br />
	import flash.events.*;</p>
<p>	import flash.display.Stage;<br />
	import flash.display.Sprite;<br />
	import flash.display.SimpleButton;<br />
	import flash.display.GradientType;<br />
	import flash.display.BlendMode;</p>
<p>	import flash.filters.DropShadowFilter;<br />
	import flash.filters.GlowFilter;</p>
<p>	import flash.geom.Matrix;</p>
<p>	import flash.text.TextField;<br />
	import flash.text.TextFieldAutoSize;<br />
	import flash.text.TextFormat;<br />
	import flash.text.TextFormatAlign;<br />
	import flash.text.TextFieldType;<br />
	import flash.text.AntiAliasType;<br />
	import flash.text.Font;</p>
<p>	public class OtherAddress extends Sprite<br />
	{<br />
		public static const OA_WIDTH:uint=400;<br />
		public static const OA_HEIGHT:uint=256;</p>
<p>		public static const OA_FIELD_WIDTH:uint=304;<br />
		public static const OA_FIELD_HEIGHT:uint=24;</p>
<p>		internal var oaStage:Stage;<br />
		internal var oa:OtherAddress;</p>
<p>		public var returnedAddress:Array;</p>
<p>		private var base:Sprite;<br />
		private var spec:Sprite;</p>
<p>		private var oaLabel:TextField;</p>
<p>		private var oaStreet:Sprite;<br />
		private var oaCity:Sprite;<br />
		private var oaState:Sprite;<br />
		private var oaZipCode:Sprite;</p>
<p>		private var oaStreetSpec:Sprite;<br />
		private var oaCitySpec:Sprite;<br />
		private var oaStateSpec:Sprite;<br />
		private var oaZipCodeSpec:Sprite;</p>
<p>		private var oaStreetInput:TextField;<br />
		private var oaCityInput:TextField;<br />
		private var oaStateInput:TextField;<br />
		private var oaZipCodeInput:TextField;</p>
<p>		private var oaStreetLabel:TextField;<br />
		private var oaCityLabel:TextField;<br />
		private var oaStateLabel:TextField;<br />
		private var oaZipCodeLabel:TextField;</p>
<p>		private var oaOK:SimpleButton;<br />
		private var oaCancel:SimpleButton;</p>
<p>		private var oaOKLabel:TextField;<br />
		private var oaCancelLabel:TextField;</p>
<p>		public function OtherAddress ()<br />
		{<br />
			mdm.Application.init(this, doOtherAddress);<br />
		}</p>
<p>		private function doOtherAddress ():void<br />
		{<br />
			drawDisplayObjects ();<br />
		}</p>
<p>		private function drawDisplayObjects ():void<br />
		{<br />
			oaStage=this.stage;<br />
			oa=this;</p>
<p>			base=new Sprite();<br />
			base.cacheAsBitmap=true;<br />
			base.blendMode=BlendMode.LAYER;</p>
<p>			var baseMatrix:Matrix=new Matrix();<br />
			baseMatrix.createGradientBox(OA_WIDTH, OA_HEIGHT, (Math.PI/180)*90);</p>
<p>			var baseColors:Array=new Array(0xFFFFFF, 0x4E6E6E6);<br />
			var baseAlphas:Array=new Array(1, 1);<br />
			var baseRatios:Array=new Array(0, 255);</p>
<p>			base.graphics.beginGradientFill(GradientType.LINEAR, baseColors, baseAlphas, baseRatios, baseMatrix);<br />
			base.graphics.drawRect(0, 0, OA_WIDTH, OA_HEIGHT);</p>
<p>			spec=new Sprite();<br />
			spec.cacheAsBitmap=true;<br />
			spec.blendMode=BlendMode.SCREEN;</p>
<p>			var specMatrix:Matrix=new Matrix();<br />
			specMatrix.createGradientBox(OA_WIDTH-4, 22, (Math.PI/180)*90);</p>
<p>			var specColors:Array=new Array(0xFFFFFF, 0xFFFFFF);<br />
			var specAlphas:Array=new Array(0.3, 0.1);<br />
			var specRatios:Array=new Array(0, 255);</p>
<p>			spec.graphics.beginGradientFill(GradientType.LINEAR, specColors, specAlphas, specRatios, specMatrix);<br />
			spec.graphics.drawRect(0, 0, OA_WIDTH-4, 22);<br />
			spec.x=spec.y=2;</p>
<p>			oaLabel=new TextField();</p>
<p>			var oaLabelFormat:TextFormat=new TextFormat();<br />
			oaLabelFormat.font=new HNCB().fontName;<br />
			oaLabelFormat.size=24;<br />
			oaLabelFormat.color=0x4D4D4D;</p>
<p>			oaLabel.defaultTextFormat=oaLabelFormat;<br />
			oaLabel.embedFonts=true;<br />
			oaLabel.selectable=false;<br />
			oaLabel.text="Enter an address:";<br />
			oaLabel.antiAliasType=AntiAliasType.ADVANCED;<br />
			oaLabel.autoSize=TextFieldAutoSize.LEFT;<br />
			oaLabel.width=OA_WIDTH-32;<br />
			oaLabel.autoSize=TextFieldAutoSize.NONE;</p>
<p>			oaLabel.x=16;<br />
			oaLabel.y=Math.abs((oaLabel.height*0.5)-8);</p>
<p>			// Small labels.<br />
			var smallLabelFormat:TextFormat=new TextFormat();<br />
			smallLabelFormat.font=new HNC().fontName;<br />
			smallLabelFormat.size=16;<br />
			smallLabelFormat.align=TextFormatAlign.RIGHT;<br />
			smallLabelFormat.color=0x4D4D4D;</p>
<p>			oaStreetLabel=new TextField();<br />
			oaStreetLabel.defaultTextFormat=smallLabelFormat;<br />
			oaStreetLabel.embedFonts=true;<br />
			oaStreetLabel.selectable=false;<br />
			oaStreetLabel.text="Street";<br />
			oaStreetLabel.antiAliasType=AntiAliasType.ADVANCED;<br />
			oaStreetLabel.width=48;<br />
			oaStreetLabel.height=22;</p>
<p>			oaCityLabel=new TextField();<br />
			oaCityLabel.defaultTextFormat=smallLabelFormat;<br />
			oaCityLabel.embedFonts=true;<br />
			oaCityLabel.selectable=false;<br />
			oaCityLabel.text="City";<br />
			oaCityLabel.antiAliasType=AntiAliasType.ADVANCED;<br />
			oaCityLabel.width=48;<br />
			oaCityLabel.height=22;</p>
<p>			oaStateLabel=new TextField();<br />
			oaStateLabel.defaultTextFormat=smallLabelFormat;<br />
			oaStateLabel.embedFonts=true;<br />
			oaStateLabel.selectable=false;<br />
			oaStateLabel.text="State";<br />
			oaStateLabel.antiAliasType=AntiAliasType.ADVANCED;<br />
			oaStateLabel.width=48;<br />
			oaStateLabel.height=22;</p>
<p>			oaZipCodeLabel=new TextField();<br />
			oaZipCodeLabel.defaultTextFormat=smallLabelFormat;<br />
			oaZipCodeLabel.embedFonts=true;<br />
			oaZipCodeLabel.selectable=false;<br />
			oaZipCodeLabel.text="ZIP";<br />
			oaZipCodeLabel.antiAliasType=AntiAliasType.ADVANCED;<br />
			oaZipCodeLabel.width=48;<br />
			oaZipCodeLabel.height=22;</p>
<p>			oaStreetLabel.x=16; oaStreetLabel.y=64-(oaStreetLabel.height*0.5);<br />
			oaCityLabel.x=16; oaCityLabel.y=96-(oaCityLabel.height*0.5);<br />
			oaStateLabel.x=16; oaStateLabel.y=128-(oaStateLabel.height*0.5);<br />
			oaZipCodeLabel.x=16; oaZipCodeLabel.y=160-(oaZipCodeLabel.height*0.5);</p>
<p>			// Create text input clips and fields.<br />
			var fbMatrix:Matrix=new Matrix;<br />
			fbMatrix.createGradientBox(OA_FIELD_WIDTH, OA_FIELD_HEIGHT, (Math.PI/180)*90);</p>
<p>			var fbColors:Array=new Array(0xB3B3B3, 0x808080, 0xB3B3B3);<br />
			var fbAlphas:Array=new Array(0.5, 0.1, 0.3);<br />
			var fbRatios:Array=new Array(0, 191, 255);</p>
<p>			var fbSpecMatrix:Matrix=new Matrix();<br />
			fbSpecMatrix.createGradientBox(OA_FIELD_WIDTH-4, (OA_FIELD_HEIGHT*0.5)-2, (Math.PI/180)*90);</p>
<p>			var fbSpecColors:Array=new Array(0xFFFFFF, 0xFFFFFF);<br />
			var fbSpecAlphas:Array=new Array(0.5, 0.1);<br />
			var fbSpecRatios:Array=new Array(0, 255);</p>
<p>			oaStreet=new Sprite();<br />
			oaStreet.cacheAsBitmap=true;<br />
			oaStreet.blendMode=BlendMode.LAYER;</p>
<p>			oaStreet.graphics.beginGradientFill(GradientType.LINEAR, fbColors, fbAlphas, fbRatios, fbMatrix);<br />
			oaStreet.graphics.drawRect(0, 0, OA_FIELD_WIDTH, OA_FIELD_HEIGHT);<br />
			oaStreet.x=80;<br />
			oaStreet.y=64-(OA_FIELD_HEIGHT*0.5);</p>
<p>			oaCity=new Sprite();<br />
			oaCity.cacheAsBitmap=true;<br />
			oaCity.blendMode=BlendMode.LAYER;</p>
<p>			oaCity.graphics.beginGradientFill(GradientType.LINEAR, fbColors, fbAlphas, fbRatios, fbMatrix);<br />
			oaCity.graphics.drawRect(0, 0, OA_FIELD_WIDTH, OA_FIELD_HEIGHT);<br />
			oaCity.x=80;<br />
			oaCity.y=96-(OA_FIELD_HEIGHT*0.5);</p>
<p>			oaState=new Sprite();<br />
			oaState.cacheAsBitmap=true;<br />
			oaState.blendMode=BlendMode.LAYER;</p>
<p>			oaState.graphics.beginGradientFill(GradientType.LINEAR, fbColors, fbAlphas, fbRatios, fbMatrix);<br />
			oaState.graphics.drawRect(0, 0, OA_FIELD_WIDTH, OA_FIELD_HEIGHT);<br />
			oaState.x=80;<br />
			oaState.y=128-(OA_FIELD_HEIGHT*0.5);</p>
<p>			oaZipCode=new Sprite();<br />
			oaZipCode.cacheAsBitmap=true;<br />
			oaZipCode.blendMode=BlendMode.LAYER;</p>
<p>			oaZipCode.graphics.beginGradientFill(GradientType.LINEAR, fbColors, fbAlphas, fbRatios, fbMatrix);<br />
			oaZipCode.graphics.drawRect(0, 0, OA_FIELD_WIDTH, OA_FIELD_HEIGHT);<br />
			oaZipCode.x=80;<br />
			oaZipCode.y=160-(OA_FIELD_HEIGHT*0.5);</p>
<p>			// Field textFields.<br />
			var fieldFormat:TextFormat=new TextFormat();<br />
			fieldFormat.font=new HNC().fontName;<br />
			fieldFormat.size=16;<br />
			fieldFormat.align=TextFormatAlign.LEFT;<br />
			fieldFormat.color=0x4D4D4D;</p>
<p>			oaStreetInput=new TextField();<br />
			oaStreetInput.defaultTextFormat=fieldFormat;<br />
			oaStreetInput.embedFonts=true;<br />
			oaStreetInput.type=TextFieldType.INPUT;<br />
			oaStreetInput.text="";<br />
			oaStreetInput.antiAliasType=AntiAliasType.ADVANCED;<br />
			oaStreetInput.width=OA_FIELD_WIDTH-8;<br />
			oaStreetInput.height=OA_FIELD_HEIGHT;<br />
			oaStreetInput.x=4; oaStreetInput.y=0;</p>
<p>			oaCityInput=new TextField();<br />
			oaCityInput.defaultTextFormat=fieldFormat;<br />
			oaCityInput.embedFonts=true;<br />
			oaCityInput.type=TextFieldType.INPUT;<br />
			oaCityInput.text="";<br />
			oaCityInput.antiAliasType=AntiAliasType.ADVANCED;<br />
			oaCityInput.width=OA_FIELD_WIDTH-8;<br />
			oaCityInput.height=OA_FIELD_HEIGHT;<br />
			oaCityInput.x=4; oaCityInput.y=0;</p>
<p>			oaStateInput=new TextField();<br />
			oaStateInput.defaultTextFormat=fieldFormat;<br />
			oaStateInput.embedFonts=true;<br />
			oaStateInput.type=TextFieldType.INPUT;<br />
			oaStateInput.text="";<br />
			oaStateInput.antiAliasType=AntiAliasType.ADVANCED;<br />
			oaStateInput.width=OA_FIELD_WIDTH-8;<br />
			oaStateInput.height=OA_FIELD_HEIGHT;<br />
			oaStateInput.x=4; oaStateInput.y=0;</p>
<p>			oaZipCodeInput=new TextField();<br />
			oaZipCodeInput.defaultTextFormat=fieldFormat;<br />
			oaZipCodeInput.embedFonts=true;<br />
			oaZipCodeInput.type=TextFieldType.INPUT;<br />
			oaZipCodeInput.text="";<br />
			oaZipCodeInput.antiAliasType=AntiAliasType.ADVANCED;<br />
			oaZipCodeInput.width=OA_FIELD_WIDTH-8;<br />
			oaZipCodeInput.height=OA_FIELD_HEIGHT;<br />
			oaZipCodeInput.x=4; oaZipCodeInput.y=0;</p>
<p>			oaStreet.addChild(oaStreetInput);<br />
			oaCity.addChild(oaCityInput);<br />
			oaState.addChild(oaStateInput);<br />
			oaZipCode.addChild(oaZipCodeInput);</p>
<p>			/*<br />
			// &gt;&gt;<br />
			// Field specs.<br />
			oaStreetSpec=new Sprite();<br />
			oaStreetSpec.cacheAsBitmap=true;<br />
			oaStreetSpec.blendMode=BlendMode.ADD;<br />
			oaStreetSpec.mouseEnabled=false;</p>
<p>			oaStreetSpec.graphics.beginGradientFill(GradientType.LINEAR, fbSpecColors, fbSpecAlphas, fbSpecRatios, fbSpecMatrix);<br />
			oaStreetSpec.graphics.drawRect(0, 0, OA_FIELD_WIDTH-4, (OA_FIELD_HEIGHT*0.5)-2);<br />
			oaStreetSpec.x=oaStreetSpec.y=2;<br />
			oaStreet.addChild(oaStreetSpec);<br />
			*/</p>
<p>			// Assemble parts.<br />
			oa.addChild(base);<br />
			oa.addChild(oaLabel);</p>
<p>			oa.addChild(oaStreetLabel);<br />
			oa.addChild(oaCityLabel);<br />
			oa.addChild(oaStateLabel);<br />
			oa.addChild(oaZipCodeLabel);</p>
<p>			oa.addChild(oaStreet);<br />
			oa.addChild(oaCity);<br />
			oa.addChild(oaState);<br />
			oa.addChild(oaZipCode);</p>
<p>			// oa.addChild(spec);<br />
			oaStage.focus=oaStreetInput;<br />
		}<br />
	}<br />
}<br />
</code></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ryan</title>
		<link>http://www.untoldentertainment.com/blog/2008/01/11/as3-pitfalls-textfieldsetselection-not-working/comment-page-1/#comment-558</link>
		<dc:creator>Ryan</dc:creator>
		<pubDate>Wed, 26 Mar 2008 13:34:22 +0000</pubDate>
		<guid isPermaLink="false">http://untoldentertainment.com/blog/2008/01/11/as3-pitfalls-textfieldsetselection-not-working/#comment-558</guid>
		<description>No clue whatsoever.  i haven&#039;t seen this happen yet.  Do you have steps to reproduce it faithfully?  If so, please post them.</description>
		<content:encoded><![CDATA[<p>No clue whatsoever.  i haven&#8217;t seen this happen yet.  Do you have steps to reproduce it faithfully?  If so, please post them.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Daniel</title>
		<link>http://www.untoldentertainment.com/blog/2008/01/11/as3-pitfalls-textfieldsetselection-not-working/comment-page-1/#comment-557</link>
		<dc:creator>Daniel</dc:creator>
		<pubDate>Wed, 26 Mar 2008 12:10:44 +0000</pubDate>
		<guid isPermaLink="false">http://untoldentertainment.com/blog/2008/01/11/as3-pitfalls-textfieldsetselection-not-working/#comment-557</guid>
		<description>Actually, same thing just happened to me. The textfield is nested through a bunch of movieclips. Tabbing to the next input doesn&#039;t work either.</description>
		<content:encoded><![CDATA[<p>Actually, same thing just happened to me. The textfield is nested through a bunch of movieclips. Tabbing to the next input doesn&#8217;t work either.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ryan</title>
		<link>http://www.untoldentertainment.com/blog/2008/01/11/as3-pitfalls-textfieldsetselection-not-working/comment-page-1/#comment-270</link>
		<dc:creator>Ryan</dc:creator>
		<pubDate>Fri, 08 Feb 2008 13:12:20 +0000</pubDate>
		<guid isPermaLink="false">http://untoldentertainment.com/blog/2008/01/11/as3-pitfalls-textfieldsetselection-not-working/#comment-270</guid>
		<description>Wow.  That&#039;s a new one on me.  i&#039;ve never seen that happen.  But if you find out what&#039;s going on, please check back in and tell us about it.</description>
		<content:encoded><![CDATA[<p>Wow.  That&#8217;s a new one on me.  i&#8217;ve never seen that happen.  But if you find out what&#8217;s going on, please check back in and tell us about it.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: WiL</title>
		<link>http://www.untoldentertainment.com/blog/2008/01/11/as3-pitfalls-textfieldsetselection-not-working/comment-page-1/#comment-262</link>
		<dc:creator>WiL</dc:creator>
		<pubDate>Thu, 07 Feb 2008 18:23:14 +0000</pubDate>
		<guid isPermaLink="false">http://untoldentertainment.com/blog/2008/01/11/as3-pitfalls-textfieldsetselection-not-working/#comment-262</guid>
		<description>Hi,

I used the above example and got some odd results. The focus was set to the correct input field, but only some characters would be recognized. When you click on the input field, all the characters are available.

As I said, odd. Any thoughts on why?

WiL</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>I used the above example and got some odd results. The focus was set to the correct input field, but only some characters would be recognized. When you click on the input field, all the characters are available.</p>
<p>As I said, odd. Any thoughts on why?</p>
<p>WiL</p>
]]></content:encoded>
	</item>
</channel>
</rss>

