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

No way to affect null borderSkin to a Button

    XMLWordPrintableJSON

Details

    • Wish
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • None
    • None
    • Mobile: Button Skin
    • None

    Description

      It seems that it could be impossible to assign a "null" skin to properties upBorderSkin and downBorderSkin.

      If you try to do that, an error was thrown in this function :

      override protected function commitCurrentState():void
      {
      super.commitCurrentState();

      borderClass = getBorderClassForCurrentState();

      if (!(_border is borderClass))
      changeFXGSkin = true;

      // update borderClass and background
      invalidateDisplayList();
      }

      Can you add a "non-null" test to be safer ?

      Furthermore, it is the only place where the "non-null" test isn't done...

      Attachments

        1. MyButtonSkin.as
          11 kB
          Maxime Fauberteau

        Activity

          People

            Unassigned Unassigned
            M.Fauberteau Maxime Fauberteau
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: