2 Replies Latest reply on Sep 17, 2010 5:47 PM by Mark Robbins 312

    Alternatives to binding to static variables

    willm8655

      As has been discussed before, flex does not dispatch a binding event when a static variable changes. I was wondering if there are any alternatives to simulate this functionality.

       

      I have a class called UserDataManager which contains static properties i use throughout my application. One of these is an array which i need to access and change on various different components throughout my application. After changing this must then change the array on all the other components.

       

      I suspect i could manage this by 2-way binding on an instance of UserDataManager and passing this instance to all the components on creation, however this seems like a computationly and time expensive workaround.

       

      Are there any alternatives?

       

      Thanks