Fabio Todaro created FLEX-33385: ----------------------------------- Summary: titleText SkinPart in TitleBar is NOT Required but exception is thrown if not implemented. Key: FLEX-33385 URL: https://issues.apache.org/jira/browse/FLEX-33385 Project: Apache Flex Issue Type: Improvement Components: Spark: WindowedApplication Affects Versions: Apache Flex 4.9.0 Reporter: Fabio Todaro
Original: override protected function commitProperties():void { super.commitProperties(); if (titleChanged) { titleText.text = _title; titleChanged = false; } if (titleIconChanged) { if (titleIconObject) { titleIconImage.source = null; titleIconObject = null; } if (_titleIcon && titleIconImage) { titleIconObject = new _titleIcon(); titleIconImage.source = titleIconObject; } titleIconChanged = false; } } Solution: override protected function commitProperties():void { super.commitProperties(); if (titleChanged) { if(titleText) { titleText.text = _title; titleChanged = false; } } if (titleIconChanged) { if (titleIconObject) { titleIconImage.source = null; titleIconObject = null; } if (_titleIcon && titleIconImage) { titleIconObject = new _titleIcon(); titleIconImage.source = titleIconObject; } titleIconChanged = false; } } -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira