akamud / FlatSpark

FlatSpark is a flat skin for Flex 4 projects. It is now officially a part of Flex SDK starting from 4.14. Further development will be made in Flex official repository here: (https://github.com/apache/flex-sdk/tree/develop/frameworks/projects/flatspark)
Apache License 2.0
75 stars 35 forks source link

TitleWindow throws error #1

Closed yozef closed 10 years ago

yozef commented 10 years ago

TypeError: Error #1009: Cannot access a property or method of a null object reference. at flatSpark.skins::TitleWindowSkin/setPartCornerRadii()[/Users/brunopacola/Desktop/FlatSpark/FlatSparkSkin/src/flatSpark/skins/TitleWindowSkin.mxml:105] at flatSpark.skins::TitleWindowSkin/updateDisplayList()[/Users/brunopacola/Desktop/FlatSpark/FlatSparkSkin/src/flatSpark/skins/TitleWindowSkin.mxml:95] at mx.core::UIComponent/validateDisplayList()[E:\dev\4.y\frameworks\projects\framework\src\mx\core\UIComponent.as:8999] at spark.components::Group/validateDisplayList()[E:\dev\4.y\frameworks\projects\spark\src\spark\components\Group.as:1039] at mx.managers::LayoutManager/validateDisplayList()[E:\dev\4.y\frameworks\projects\framework\src\mx\managers\LayoutManager.as:736] at mx.managers::LayoutManager/doPhasedInstantiation()[E:\dev\4.y\frameworks\projects\framework\src\mx\managers\LayoutManager.as:819] at mx.managers::LayoutManager/doPhasedInstantiationCallback()[E:\dev\4.y\frameworks\projects\framework\src\mx\managers\LayoutManager.as:1180]

akamud commented 10 years ago

Hi @yozef, thank you for reporting this. This was caused probably because the ControlBarContent was not present in your TitleWindow and we forgot to check for it. Commit 3951fca8c8afdef45ec1c8614555e8f8c1eafd3c should fix that.

Please tell us if you still get any errors.

yozef commented 10 years ago

Sweet thanks, yeah I actually figured and added the controlBarContent.

akamud commented 10 years ago

Great @yozef.

I'll mark this as resolved.

rodrigoEclipsa commented 9 years ago

error when used with modules

Error #1069: Property iconDisplay not found on flatSpark.skins.ButtonSkin and there is no default value. at spark.skins::SparkSkin/updateDisplayList()[/Users/aharui/release4.13.0/frameworks/projects/spark/src/spark/skins/SparkSkin.as:183] at flatSpark.skins::ButtonSkin/updateDisplayList()[D:\Softwares\FlatSpark\FlatSparkSkin\src\flatSpark\skins\ButtonSkin.mxml:87] at mx.core::UIComponent/validateDisplayList()[/Users/aharui/release4.13.0/frameworks/projects/framework/src/mx/core/UIComponent.as:9531] at spark.components::Group/validateDisplayList()[/Users/aharui/release4.13.0/frameworks/projects/spark/src/spark/components/Group.as:1101] at mx.managers::LayoutManager/validateDisplayList()[/Users/aharui/release4.13.0/frameworks/projects/framework/src/mx/managers/LayoutManager.as:744] at mx.managers::LayoutManager/doPhasedInstantiation()[/Users/aharui/release4.13.0/frameworks/projects/framework/src/mx/managers/LayoutManager.as:827] at mx.managers::LayoutManager/doPhasedInstantiationCallback()[/Users/aharui/release4.13.0/frameworks/projects/framework/src/mx/managers/LayoutManager.as:1188]

akamud commented 9 years ago

Hi @rodrigoEclipsa, which version are you using? Can you post the code sample that throws the exception?