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

UpdateCompleteEvent.UPDATE_COMPLETE fires on all containerControllers.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Critical
    • Resolution: Unresolved
    • Apache Flex 4.15.0, Apache Flex 4.16.0, Apache Flex 4.16.1
    • None
    • Events
    • None

    Description

      When using UpdateCompleteEvent.UPDATE_COMPLETE event on a textflow with multiple container controllers attached to its flowcomposer  it fires on each and every attached containerController. 

      The whole idea with this event is to get the container that is updated. So writing text in container 3  should not trigger container 1. This event also has a property called 'event.controller', but you are getting all controllers so whats the point? You can't get the one that was updated.

      If you want to reproduce. 
      1) Simply create a text flow and attach 3 containercontrollers to its flowcomposer. add a event listener for UpdateCompleteEvent.UPDATE_COMPLETE. In the event listener function add

      trace(flow.flowComposer.getControllerIndex(event.controller))

       Write something in the last containercontrroller 

      The result that should appear would only be the index of the controller you wrote something in, but you will get multiple controller indexes. 

       

       

      Attachments

        Activity

          People

            Unassigned Unassigned
            salbeik Sami Al-beik
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: