2 Replies Latest reply on Aug 30, 2008 3:52 AM by January_jsd

    Preventing Timers Delaying the UI

    January_jsd
      Is there a way to prevent a Timer object from locking up the UI (through it executing something that takes a while to process)?

      In VB.net you'd rarely put anything substantial into a Timer (form Timer), as it holds the same thread as the main UI, and any delays will freeze your UI. One cheap trick to prevent this lockup would be to use Application.DoEvents which allows the app to breathe (far better to use multi-threading and forget DoEvents entirely). I know threading hasn't been implemented in Flex3, which kicks threading out as a way of saving the main UI from being delayed.

      Is there something like DoEvents in Flex3, something that will allow the main UI to breathe, and prevent visual 'judders'?

      Thanks!