为什么会出现警告:Data binding will not be able to detect assignments to “**”
来源:互联网 发布:yum 更新 编辑:程序博客网 时间:2024/05/16 17:53
当我们做类的绑定时,有可能会出现Data binding will not be able to detect assignments to 的错误,为什么呢?
首先我们了解一下FLEX编译文件的步骤:
flex在编译mxml文件的时候,会先编译非<mx:script>那包含的那一部分,在这个时候找不到这个变量就会报个worning,如果你在变量上有[Bindable]标记,那么就会先跳过编译,等程序运行时再取。
在class上面加[Bindable]等同于给所有pulich属性和get/set方法加上[Bindable],这是简化写法。
但是注意,public var myTest:Test = new Test (0,2); 如果myTest不加[Bindable],就说明这个mxml里的myTest属性是没有绑定的。类内部属性的绑定特性不能代表类实例的绑定特性。
- 为什么会出现警告:Data binding will not be able to detect assignments to “**”
- Your 64-bit guest will fail to detect a 64-bit CPU and will not be able to boot.
- Altuim designer 导入PCB,出现错误some nets were not able to be matched
- Not able to reset SmartRF04DD
- 【已解决】iOS程序出现警告:ARC Semantic Issue,Assigning retained object to unsafe property;object will be releas
- QT 编译警告 qobject_cast to QGraphicsItem will not work
- Neither GenericXmlContextLoader nor AnnotationConfigContextLoader was able to detect defaults
- giuseppe zanotti outlet a trouser legs will be able to hold her.But half of the weight loss
- 为什么eclips会出现enum cannot be resolved to a type
- 为什么会出现undefined reference to ''错误
- Binding to data with AdapterView
- [wxpython2.7]"Could not transfer data to window "警告
- TO BE NOT NOT BE
- redis出现异常MISCONF Redis is configured to save RDB snapshots, but is currently not able to persist on
- spark-shell on yarn 出错(arn application already ended,might be killed or not able to launch applic)解决
- 146.Identify three situations in which you would NOT be able to drop a tablespace. (Choose three.)
- Yiwu market be able to lead the trend of Living
- To be or not
- mantis 最简单方法配置
- svn: 无法打开地址(URL)的 ra_local 会话
- SVN在linux下的检出
- 内存泄露检测工具
- STL容器 算法 函数表
- 为什么会出现警告:Data binding will not be able to detect assignments to “**”
- 创建节点时通过对话框输入属性
- qmake生成Makefile文件方法
- ORACLE中用rownum分页并排序的SQL语句
- LINQ操作说明
- Hadoop权威指南(中文版)
- oracle 存储过程
- [javascript]学习总结——浮动广告特效制作
- 常见网络问题——架设篇(转载自CSDN论坛)