Return-Path: X-Original-To: apmail-incubator-flex-dev-archive@minotaur.apache.org Delivered-To: apmail-incubator-flex-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 0F141D778 for ; Thu, 13 Dec 2012 20:45:28 +0000 (UTC) Received: (qmail 65695 invoked by uid 500); 13 Dec 2012 20:45:27 -0000 Delivered-To: apmail-incubator-flex-dev-archive@incubator.apache.org Received: (qmail 65658 invoked by uid 500); 13 Dec 2012 20:45:27 -0000 Mailing-List: contact flex-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: flex-dev@incubator.apache.org Delivered-To: mailing list flex-dev@incubator.apache.org Received: (qmail 65646 invoked by uid 99); 13 Dec 2012 20:45:27 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 13 Dec 2012 20:45:27 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of ymasuda@cac.co.jp designates 211.130.164.202 as permitted sender) Received: from [211.130.164.202] (HELO mx02.cac.co.jp) (211.130.164.202) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 13 Dec 2012 20:45:19 +0000 Received: from mailgw01.cac.co.jp (mailgw01.cac.co.jp [160.240.110.55]) by postfix.imss70 (Postfix) with ESMTP id E896418C6D9; Fri, 14 Dec 2012 05:44:56 +0900 (JST) Received: from mailgw01.cac.co.jp (mailgw01 [127.0.0.1]) by postfix.imss70 (Postfix) with ESMTP id BA5E87E4677; Fri, 14 Dec 2012 05:44:56 +0900 (JST) Received: from cacnet.cac.co.jp (cacnet01.cac.co.jp [160.240.110.57]) by mailgw01.cac.co.jp (Postfix) with ESMTP id 9E4CC7E4676; Fri, 14 Dec 2012 05:44:56 +0900 (JST) Received: from c010240613 (unknown [160.240.237.44]) by cacnet.cac.co.jp (Postfix) with SMTP id 993BD1D8069; Fri, 14 Dec 2012 05:44:56 +0900 (JST) Message-ID: <416346E5D68A4327B1E2E44189A1619E@zipangu.cac.co.jp> From: =?iso-2022-jp?B?GyRCQX1FRBsoQiAbJEJNJk00GyhC?= To: , "Marcus Fritze" References: <837D6D33AC1E4F0B94DEE738548BBA7D@zipangu.cac.co.jp> Subject: Re: We faced a TypeError in using ComboBox. Date: Fri, 14 Dec 2012 05:44:56 +0900 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-2022-jp"; reply-type=original Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.5931 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.6157 X-Virus-Checked: Checked by ClamAV on apache.org Hi Marcus, Thank you for your replying. OK, I'll try to create a project to figure it out. However this problem was found by my colleague, and she is busy in these days. Please give us a little more time to do it. When we get the programs, I'll try to entry an issue into the site which you give us. Best regards Yusuke Masuda ----- Original Message ----- From: "Marcus Fritze" To: ; "Marcus Fritze" Sent: Thursday, December 13, 2012 7:19 PM Subject: Re: We faced a TypeError in using ComboBox. Hi Yusuke, can you create a very small test project with this issue? If you think this is really an issue you can file any issues here: https://issues.apache.org/jira/browse/FLEX and you can attach the test project to this bug (swf file / FXP file) The mailing list is not the best way to file issues. Best regards Marcus Am 13.12.2012 um 07:49 schrieb 増田 勇祐 : > Hi, all. > > > I'm getting a trouble using 'mx.controls.ComboBox'. > Could you help and give us a correct code. > > > I got an error 'TypeError: Error #1009' when I clicked a combobox on > inactive window. [see stack traces below] > So I checked the source code, and I'm afraid that it's a kind of program > bug. > > We are using a custom ComboBox that extends 'mx.controls.ComboBox' which > is made by ourselves. > Though the error has occured on the component, it occur in not only our > ComboBox, but also 'mx.controls.ComboBox'. > > The immediate cause is a variable 'tween' is null (not initialized) at > line:1912 of ComboBox.as. > > When I clicked the ComboBox, a method 'displayDropdown' is running. > Then a variable 'inTween' get change to 'true' when the process has come > to line:1871. > And a method 'UIComponentGlobals.layoutManager.validateNow()' is called at > line:1877. > After that an event 'styleChange' has fired, and 'destroyDropDown' is > called from an event handler 'styleChanged' at line:1416 > > In 'destroyDropDown', a code is calling 'tween.endTween()' after 'inTween' > checked, but 'tween' is not initialized yet. > > The 'tween' is initializing in a method 'displayDropdown' at line:1890 > after calling 'UIComponentGlobals.layoutManager.validateNow()'. > So 'tween' still has been null. > > We are thinking the code should be changed from "if (inTweet) " to "if > (tween != null && inTween) {" at line:1919. > > --- Stack Traces ---- > TypeError: Error #1009: null ...(Japanese message)... > at > mx.controls::ComboBox/destroyDropdown()[E:\dev\4.y\frameworks\projects\mx\src\mx\controls\ComboBox.as:1912] > at > mx.controls::ComboBox/styleChanged()[E:\dev\4.y\frameworks\projects\mx\src\mx\controls\ComboBox.as:1408] > at > mx.core::UIComponent/notifyStyleChangeInChildren()[E:\dev\4.y\frameworks\projects\framework\src\mx\core\UIComponent.as:11332] > at > mx.core::Container/commitProperties()[E:\dev\4.y\frameworks\projects\mx\src\mx\core\Container.as:3247] > at > mx.core::UIComponent/validateProperties()[E:\dev\4.y\frameworks\projects\framework\src\mx\core\UIComponent.as:8219] > at > mx.managers::LayoutManager/validateProperties()[E:\dev\4.y\frameworks\projects\framework\src\mx\managers\LayoutManager.as:597] > at > mx.managers::LayoutManager/doPhasedInstantiation()[E:\dev\4.y\frameworks\projects\framework\src\mx\managers\LayoutManager.as:813] > at > mx.managers::LayoutManager/validateNow()[E:\dev\4.y\frameworks\projects\framework\src\mx\managers\LayoutManager.as:878] > at > mx.controls::ComboBox/displayDropdown()[E:\dev\4.y\frameworks\projects\mx\src\mx\controls\ComboBox.as:1869] > at > mx.controls::ComboBox/downArrowButton_buttonDownHandler()[E:\dev\4.y\frameworks\projects\mx\src\mx\controls\ComboBox.as:2027] > at flash.events::EventDispatcher/dispatchEventFunction() > at flash.events::EventDispatcher/dispatchEvent() > at > mx.core::UIComponent/dispatchEvent()[E:\dev\4.y\frameworks\projects\framework\src\mx\core\UIComponent.as:13152] > at > mx.controls::Button/http://www.adobe.com/2006/flex/mx/internal::buttonPressed()[E:\dev\4.y\frameworks\projects\mx\src\mx\controls\Button.as:2483] > at > mx.controls::Button/mouseDownHandler()[E:\dev\4.y\frameworks\projects\mx\src\mx\controls\Button.as:2744] > at flash.events::EventDispatcher/dispatchEventFunction() > at flash.events::EventDispatcher/dispatchEvent() > at > mx.core::UIComponent/dispatchEvent()[E:\dev\4.y\frameworks\projects\framework\src\mx\core\UIComponent.as:13152] > at > mx.managers::SystemManager/mouseEventHandler()[E:\dev\4.y\frameworks\projects\framework\src\mx\managers\SystemManager.as:2918] > > > * This stack traces which we got while using Adobe Flex 4.6. > * But The source code 'Adobe Flex 4.6' is same as 'Apache Flex 4.8's. > > > It's the first time to send to mailing list and I'm not good at English. > Please excuse me if you may not understand or you feel bad with my poor > English. > > Regards. > > Yusuke, MASUDA > CAC Corporation (Japan) > >