header
ask question
Click here to ask Question Now Its free No registration required. Flash, Flex, Flash Media Server, ActionScript,Adobe Air. Most questions receive a response in an hour.
Byte_head
Points:0
Posts:0
Answered

9/1/2010 3:27:26 AM

Title: Focus related Problem in itemEditor


Hi All,

I have created an itemEditor, which consist an TextBox and a button
inside an HBox. When ever i am clicking on the cell, the itemEditor is
shown. The problem that i am facing is regarding the focus. After the
click the focus remains on the TextBox only for a fraction of second.

What i want is that just like simple textBox that can be taken as
itemEditor, the focus sould maitain on my itemEditor as well.

Please help me in this regard.



1
Rayan
Points: 690
Posts:0
9/1/2010 8:20:07 AM



there is a property to enable the focus for children in list component. Setting this property enable children to receive focus

<s:List hasFocusableChildren="true"

this should work

2
Davis
Points: 740
Posts:0
9/1/2010 7:04:10 PM



I think you can set the focus of textbox inside your item renderer on click event of item renderer.

3
Byte_head
Points: 0
Posts:0
Accepted Answer
9/2/2010 9:44:23 PM



Thanks a lot for your kind help.
The problem is solved now.
I have implemented IFocusMangerComponent and overriden the setFocus() function to
set the focus to the TextBox.


Post your Reply
Name  

Email

Type your Reply or Answer

Are you human? What is 6+2 



Members Login

Email  
Password
Forgot Password





This website focus on: Flash | Flex | FMS | RED5 | WOWZA | Flash Media Server | Adobe AIR | ActionScript,Flash Solutions | Flash Question | Flash Answers | Flash Developers | Flash Problem, Flash Help, Flash bugs, Flash workaround | Flash Blog | Flex Question Answers | Flash Forum | Flex Development | Actionscript development | Flash development | Adobe AIR development
Copyright © 2008 AskMeFlash.com. All rights reserved. Privacy Policy | Terms & Conditions