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

to be able to define event handlers according to state

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • Adobe Flex SDK 4.0 (Release)
    • None
    • States
    • None
    • Affected OS(s): Windows
      Browser: Firefox 3.x
      Language Found: English

    Description

      Hello,
      Let's say I have an application with several states: s1, s2, ..., sn and this app has a child component that dispatches several events: e1, e2, ..., em. I would like to define event handlers in MXML, conditional on the state of the app:

      <mx:Application >
      <mx:states>
      <s:State name="s1">
      <s:State name="s2">
      </mx:states>

      <mx:MyComponent id="mystuff"
      e1.s1="handler_1_1(event)" e1.s2="handler_1_2(event)"
      e2.s1="handler_2_1(event)" />

      </mx:Application>

      Actual Results:
      Error #1069: Property not found

      Expected Results:
      succinct description of a finite state machine that reacts to the same triggers according to its current state, and to avoid ugly switches on the event handlers.

      Workaround (if any):

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated: