7 Replies Latest reply on May 11, 2010 9:43 AM by vmvmvmvmvm

    Please explain: 'warning: multiple describeType entries...' when binding via actionscript

    jjonez

      I get the following warning when using change watcher to bind a public property of a button. There are some discussions about this on the web, however, nothing that really explains what the warning means and how to remedy the situation. Can anyone provide insight into this warning?

       

      Thanks!

       

      WARNING

      warning: multiple describeType entries for 'enabled' on type 'mx.controls::Button':

      <accessor name="enabled" access="readwrite" type="Boolean" declaredBy="mx.core::UIComponent">

        <metadata name="Bindable">

          <arg key="" value="enabledChanged"/>

        </metadata>

      </accessor>

      <accessor name="enabled" access="readwrite" type="Boolean" declaredBy="mx.core::UIComponent">

        <metadata name="Bindable">

          <arg key="" value="enabledChanged"/>

        </metadata>

      </accessor>

       

      CODE

      <mx:Button

      xmlns:mx="http://www.adobe.com/2006/mxml"

      styleName = "IconButton"

      creationComplete="creationCompleteHandler(event)">

      <mx:Script>

      <![CDATA[

      import mx.binding.utils.*;


      protected function creationCompleteHandler(event:FlexEvent):void

      {

      changeWatcher = ChangeWatcher.watch(this, "enabled", onEnableChanged, true);

      }


      ...

      ]]>

      </mx:Script>


      </mx:Button>