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

Channel events constants should be updated othersize FB will fail to propose a correct code hint.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • Adobe Flex SDK Previous
    • None
    • Events
    • None
    • Affected OS(s): All OS Platforms
      Affected OS(s): All OS Platforms
      Language Found: English

    Description

      Steps to reproduce:
      1.create a consumer
      2. add an eventListener to listen to channel disconnect
      (consumer.addEventListener(|

      Actual Results:
      Flash Builder Proposes ChannelEvent.CHANNEL_CONNECT, ChannelEvent.CHANNEL_DISCONNECT...

      Expected Results:
      it should propose ChannelEvent.CONNECT, ChannelEvent.DISCONNECT

      the problem is that FB uses the literal string to create the proposed constant and to fix this, the literal value should be public static const DISCONNECT : String="disconnect" instead of "channelDisconnect";

      Workaround (if any):
      type by hand or pick the wrong definition, clear the content till the 'SelectedEvent.' and press Ctrl+Space to propose the correct values.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated: