Data Binding in Flex 3 Broken?

Ask a Question related to Macromedia Flex General Discussion, Design and Development.

  1. #1

    Default Data Binding in Flex 3 Broken?

    I just upgraded to Flex 3. What a disaster:

    This used to work in Flex 2:

    private var mState:int = 0;

    [Bindable]
    public function get state():int {
    return mState;
    }

    private function set state(value:int):void {
    sLog.debug("state = {0}", ControllerState.toString(value));
    mState = value;
    }

    ...

    BindingUtils.bindSetter(onControllerStateChanged, mController, "state");

    In Flex 2, my function gets called everytime state is changed. In Flex 3, my
    function gets called when I call bindSetter, but never again does it get called.

    Anyone have any ideas? Do I switch back to Flex 2?

    Thanks,
    Robert Temple
    Sr. Director ESPN.com
    Developing Rich Internet Applications since 1995.

    rwtemple Guest

  2. Similar Questions and Discussions

    1. Flex Builder 3 unable to disable binding warnings
      Hello as mentioned in the title i'm trying to get rid of the binding warnings in the console output, so as mentioned in the docs i added...
    2. why starting to flex debug it will auto-jump the binding.as
      why starting to flex debug it will auto-jump the binding.as
    3. Example of Binding XML to a DataGrid in Flex
      The following code binds a simple XML string that is retrieved through the HTTPService using ColdFusion. ColdFusion could be replaced in this case...
    4. Complex data binding question, binding child objects of a custom collection.
      I have a custom collection of objects, each of which includes a child object called MyUserOpener. In declarative binding, I can bind this property...
    5. flex actionscript profiler broken
      I was having the same problem getting the profiler to run under the integrated JRUN server so I finally tried my other application server and the...
  3. #2

    Default Re: Data Binding in Flex 3 Broken?

    Try changing your function from private to public.
    peterent Guest

  4. #3

    Default Re: Data Binding in Flex 3 Broken?

    I tried a number of things before posting here. Changing the stetter to public was one of the first and that didn't help.


    rwtemple Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139