It's a bug, I'll log it in.
Thanks,
-sam
On 6/30/06, Harald Dehn <[EMAIL PROTECTED]> wrote:
I need to temporay disable the tabChildren of a panel. If i set the tabChildren property to false and try to change the focus with the tab key, i get the following error message:TypeError: Error #1009: Der Zugriff auf eine Eigenschaft oder eine Methode eines null-Objektverweises ist nicht möglich.
at mx.managers::FocusManager/mx.managers:FocusManager::isEnabledAndVisible()[C:\dev\GMC\sdk\frameworks\mx\managers\FocusManager.as:590]
at mx.managers::FocusManager/mx.managers:FocusManager::isValidFocusCandidate()[C:\dev\GMC\sdk\frameworks\mx\managers\FocusManager.as:818]
at mx.managers::FocusManager/mx.managers:FocusManager::getIndexOfNextObject()[C:\dev\GMC\sdk\frameworks\mx\managers\FocusManager.as:871]
at mx.managers::FocusManager/mx.managers:FocusManager::keyDownHandler()[C:\dev\GMC\sdk\frameworks\mx\managers\FocusManager.as:1249]
Sample code:<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx=" http://www.adobe.com/2006/mxml" layout="absolute">
<mx:Script>
<![CDATA[
private function clickCheckBox():void {
Panel1.tabChildren = Check1.selected;
trace(Panel1.tabChildren);
}
]]>
</mx:Script>
<mx:CheckBox id="Check1" x="21" y="21" label="TabChildren Panel 1" selected="true" tabEnabled="false"
click="clickCheckBox()" />
<mx:Panel id="Panel1" x="21" y="73" width="258" height="176" layout="absolute">
<mx:TextInput x="10" y="10"/>
<mx:TextInput x="10" y="40"/>
<mx:TextInput x="10" y="70"/>
</mx:Panel>
</mx:Application>Harald DehnGutzkowstraße 2760594 FrankfurtTel +49 (69) 61002712Fax +49 (69) 15049656Mobil +69 (151) 17887510
__._,_.___
--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
SPONSORED LINKS
Web site design development Computer software development Software design and development Macromedia flex Software development best practice
YAHOO! GROUPS LINKS
- Visit your group "flexcoders" on the web.
- To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
- Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
__,_._,___
Reply via email to