0 Replies Latest reply on Jul 31, 2008 6:40 AM by trycold

    Binding Qs.

    trycold Level 1

      In my app I use something like the following a lot:
      <mx:Binding source="{ApplicationModel.getInstance().DirectoryFilesArray}" destination="setDFiles" />
      public function set setDFiles(val:ArrayCollection):void{

      My problem is that I want setDFiles function to execute only when there is a change in the DirectoryFileArray but initially when I run the program if the page with this function is viewed the function executes. The only way i have been able to fix it to pass one more variable and then check for that variable. is there a better way of doing this?