What steps will reproduce the problem?
1. Create a simple AdvancedForm with a text input
2. Launch and select the field
3. Do ctrl-tab to change focus on another application
You get the following error:
ReferenceError: Error #1069: Property text not found on
mx.containers.FormItem and there is no default value.
at
flexlib.containers::AdvancedForm/textInputChange()[/Users/dougmccune/Documents/F
lex
Builder Moxie/flexlib/trunk/src/flexlib/containers/AdvancedForm.as:339]
at flash.display::Stage/set focus()
at
mx.controls::TextInput/focusInHandler()[C:\autobuild\3.2.0\frameworks\projects\f
ramework\src\mx\controls\TextInput.as:2104]
What version of the product are you using? On what operating system?
flexlib-.2.4
flex 3.2
Please provide any additional information below.
I took a look at AdvancedForm and the problem is coming from
"textInputChange". It is doing "event.target.parent.text" but I think it
really should be "event.target.text". Not sure why it would look at the
parent, since the parent is not a TextInput and does not have the "text"
attribute.
Here is code to duplicate:
<?xml version = "1.0" encoding = "utf-8"?>
<mx:Application xmlns:mx = "http://www.adobe.com/2006/mxml"
xmlns:flexlib = "http://code.google.com/p/flexlib/"
layout = "absolute"
width = "400"
height = "500">
<flexlib:AdvancedForm id = "myForm"
undoHistorySize = "5">
<mx:FormItem label = "First and Last Names"
required = "true">
<mx:TextInput id = "firstName"/>
<mx:TextInput id = "lastName"/>
</mx:FormItem>
</flexlib:AdvancedForm>
</mx:Application>
Original issue reported on code.google.com by bautista...@gmail.com on 30 Jun 2009 at 6:06
Original issue reported on code.google.com by
bautista...@gmail.com
on 30 Jun 2009 at 6:06