【问题标题】:Flex Warning: Multiple markers..Data binding will not be able to detect assignments to objectFlex 警告:多个标记..数据绑定将无法检测到对象的分配
【发布时间】:2012-05-10 05:26:21
【问题描述】:

我正在绑定一个带有标签的对象。它给了我这个警告。 我已经写了以下代码

s:Label width="296" height="20" fontSize="18" text="{obj.companyParty_Name}"

companyParty_Name 是 obj 中我想在标签上显示的字段

上面的警告是什么意思?

【问题讨论】:

    标签: actionscript-3 flex4


    【解决方案1】:

    companyParty_Name 属性不可绑定。

    About Data Binding

    为了使警告消失,您需要在属性定义上方添加注释 [Bindable]。像这样:

    [Bindable]
    private var companyParty_Name:*;
    

    【讨论】:

      【解决方案2】:

      我对这段代码也有同样的警告

      <mx:DateField id="buy_expiry_date" disabledRanges="{[{
          rangeEnd: new Date(today.year,today.month,today.date - 1)
      }]}"/>
      

      然后我把它改成

      <mx:DateField id="buy_expiry_date" disabledRanges="{[{
          rangeEnd: new Date(today.getFullYear(),today.getMonth(),today.getDate() - 1)
      }]}"/>
      

      它不再警告我了。

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 1970-01-01
        • 2018-03-18
        • 1970-01-01
        • 1970-01-01
        • 2010-10-30
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        相关资源
        最近更新 更多