Uploaded image for project: 'Apache Flex'
  1. Apache Flex
  2. FLEX-33385

titleText SkinPart in TitleBar is NOT Required but exception is thrown if not implemented.

    XMLWordPrintableJSON

    Details

      Description

      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;
      }

      }

        Attachments

          Activity

            People

            • Assignee:
              jmclean Justin Mclean
              Reporter:
              sharpedge Fabio Todaro
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: