1 Reply Latest reply on Jul 27, 2007 4:47 PM by ntsiii

    Warning: Unable to Bind to Property

    almis-
      I have tried to narrow down a problem that causes a "warning: unable to bind to property..." warning. Running the following code in debug mode under Flex Builder 2.0.1 or Flex Builder 3 beta produces the following output in the console window:

      warning: unable to bind to property 'label' on class 'XML' (class is not an IEventDispatcher)
      warning: unable to bind to property 'label' on class 'XML' (class is not an IEventDispatcher)

      Any help would be greatly appreciated!

      <?xml version="1.0" encoding="utf-8"?>
      <mx:Application xmlns:mx=" http://www.adobe.com/2006/mxml">

      <mx:XML id="items" xmlns="">
      <items>
      <item label="label1"/>
      <item label="label2"/>
      </items>
      </mx:XML>

      <mx:VBox>
      <mx:Repeater id="rp" dataProvider="{items.item}">
      <mx:Label text="{(rp.currentItem as XML).@label}"/>
      </mx:Repeater>
      </mx:VBox>

      </mx:Application>