2 Replies Latest reply on Aug 23, 2008 8:45 AM by justria

    Threading

    Shirker1
      Hi:

      I would like to get data via an HTTPService in a different thread, meanwhile the main application should continue normally.
      How is threading implemented in Flex? Can you refer me to an article?

      Thanks
        • 1. Re: Threading
          Level 7

          "Shirker1" <webforumsuser@macromedia.com> wrote in message
          news:g8o7qm$880$1@forums.macromedia.com...
          > Hi:
          >
          > I would like to get data via an HTTPService in a different thread,
          > meanwhile
          > the main application should continue normally.
          > How is threading implemented in Flex? Can you refer me to an article?

          http://www.johnwilger.com/search?q=future+value+pattern


          • 2. Re: Threading
            justria
            Flex doesn't support threads right now.

            But since many parts - like HTTPService - can be executed asynchronously, they behave quite similar. If you send() a HTTPService it 'seems' to execute in the background. On completion, they may call a method or update a [Bindable] variable.

            When working with threads, synchronisation tends to be complex [deadlocks and race conditions]. Flex' async call mode simplifies certain aspects.