0 Replies Latest reply on Mar 17, 2011 7:24 AM by jmandawg

    BindingUtils BindProperty to a local variable question

    jmandawg Level 1

      I'm trying to do this:

       

      I was to bind tmpBtn.content to my MyObject that i'm passing in.

       

      private function addItemToMyList(listItem:MyObject):void
                  {
                      var tmpBtn:ToggleButton = new ToggleButton();               
                      BindingUtils.bindProperty(tmpBtn, "content", listItem);

                  }

       

      It won't work because it needs a property for listItem.

       

      Any ideas?