flex-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alex Harui <aha...@adobe.com>
Subject Re: How to change the skin of the Combobox and DropDownList
Date Tue, 16 Jul 2013 14:15:08 GMT
Hi,

Try switching to an Apache Flex SDK.  Your issue should be fixed in 4.9
and later.

-Alex

On 7/16/13 6:47 AM, "moushuai00" <moushuai00@hotmail.com> wrote:

>Hi All:
>
>Now,  my project need to change the skin of the components at runtime, I
>used 
>styleManager.loadStyleDeclarations(styleList.selectedItem["styleUrl"]) to
>change the skin. But the spark.components.supportClasses.DropDownListBase
>throw a error. My Adobe AIR SDK version is 3.7. Details are as follows:
>
>TypeError: Error #1009: Cannot access a property or method of a null
>object reference.
>at spark.components.supportClasses::DropDownController/set
>openButton()[E:\dev\4.y\frameworks\projects\spark\src\spark\components\sup
>portClasses\DropDownController.as:100]
>at 
>spark.components.supportClasses::DropDownListBase/partRemoved()[E:\dev\4.y
>\frameworks\projects\spark\src\spark\components\supportClasses\DropDownLis
>tBase.as:543]
>at 
>spark.components.supportClasses::SkinnableComponent/clearSkinParts()[E:\de
>v\4.y\frameworks\projects\spark\src\spark\components\supportClasses\Skinna
>bleComponent.as:764]
>at 
>spark.components.supportClasses::SkinnableComponent/detachSkin()[E:\dev\4.
>y\frameworks\projects\spark\src\spark\components\supportClasses\SkinnableC
>omponent.as:798]
>at 
>spark.components.supportClasses::SkinnableComponent/validateSkinChange()[E
>:\dev\4.y\frameworks\projects\spark\src\spark\components\supportClasses\Sk
>innableComponent.as:442]
>at 
>spark.components.supportClasses::SkinnableComponent/commitProperties()[E:\
>dev\4.y\frameworks\projects\spark\src\spark\components\supportClasses\Skin
>nableComponent.as:457]
>at 
>spark.components.supportClasses::ListBase/commitProperties()[E:\dev\4.y\fr
>ameworks\projects\spark\src\spark\components\supportClasses\ListBase.as:89
>2]
>at 
>spark.components::List/commitProperties()[E:\dev\4.y\frameworks\projects\s
>park\src\spark\components\List.as:1139]
>at 
>spark.components.supportClasses::DropDownListBase/commitProperties()[E:\de
>v\4.y\frameworks\projects\spark\src\spark\components\supportClasses\DropDo
>wnListBase.as:508]
>at 
>spark.components::DropDownList/commitProperties()[E:\dev\4.y\frameworks\pr
>ojects\spark\src\spark\components\DropDownList.as:287]
>at 
>mx.core::UIComponent/validateProperties()[E:\dev\4.y\frameworks\projects\f
>ramework\src\mx\core\UIComponent.as:8219]
>at 
>mx.managers::LayoutManager/validateProperties()[E:\dev\4.y\frameworks\proj
>ects\framework\src\mx\managers\LayoutManager.as:597]
>at 
>mx.managers::LayoutManager/doPhasedInstantiation()[E:\dev\4.y\frameworks\p
>rojects\framework\src\mx\managers\LayoutManager.as:813]
>at 
>mx.managers::LayoutManager/doPhasedInstantiationCallback()[E:\dev\4.y\fram
>eworks\projects\framework\src\mx\managers\LayoutManager.as:1180]
>
>
>
>
>moushuai00


Mime
View raw message