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

Several spark classes aren't using static constants for event listeners

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • Adobe Flex SDK Previous
    • None
    • None
    • Affected OS(s): All OS Platforms
      Language Found: English

    Description

      Steps to reproduce:
      1. Search the SDK for: addEventListener("
      Note the double quote at the end.

      Actual Results:

      C:\dev\flexSDKs\4.0.0.7065\frameworks\projects\flex4\src\spark\skins\default\ErrorSkin.as(128): _errorObject.skin.addEventListener("updateComplete",
      C:\dev\flexSDKs\4.0.0.7065\frameworks\projects\flex4\src\spark\skins\default\FocusSkin.as(120): _focusObject.skin.addEventListener("updateComplete",
      [/quote]

      Expected Results:
      We should use static constants as often as possible (protection against API changes, ensures we actually HAVE static constants for all events, etc).
      Although some of these may be NAB if they are internal and not used by users (although perhaps we should still have static constants but mark them as @private so they arent publicly documented).

      Workaround (if any):
      n/a

      Attachments

        Activity

          People

            adobejira Adobe JIRA
            adobejira Adobe JIRA
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: