楼主: 權寶兒

[原创] 菜鸟求助Flex的问题

[复制链接]
论坛徽章:
350
2006年度最佳版主
日期:2007-01-24 12:56:49NBA大富翁
日期:2008-04-21 22:57:29地主之星
日期:2008-11-17 19:37:352008年度最佳版主
日期:2009-03-26 09:33:53股神
日期:2009-04-01 10:05:56NBA季后赛大富翁
日期:2009-06-16 11:48:01NBA季后赛大富翁
日期:2009-06-16 11:48:01ITPUB年度最佳版主
日期:2011-04-08 18:37:09ITPUB年度最佳版主
日期:2011-12-28 15:24:18ITPUB年度最佳技术原创精华奖
日期:2012-03-13 17:12:05
21#
发表于 2008-8-24 16:49 | 只看该作者
To determine whether a given event has default behavior that can be canceled, check
the value of Event class’s instance variable cancelable within a listener registered for
that event.

使用道具 举报

回复
论坛徽章:
350
2006年度最佳版主
日期:2007-01-24 12:56:49NBA大富翁
日期:2008-04-21 22:57:29地主之星
日期:2008-11-17 19:37:352008年度最佳版主
日期:2009-03-26 09:33:53股神
日期:2009-04-01 10:05:56NBA季后赛大富翁
日期:2009-06-16 11:48:01NBA季后赛大富翁
日期:2009-06-16 11:48:01ITPUB年度最佳版主
日期:2011-04-08 18:37:09ITPUB年度最佳版主
日期:2011-12-28 15:24:18ITPUB年度最佳技术原创精华奖
日期:2012-03-13 17:12:05
22#
发表于 2008-8-24 16:49 | 只看该作者
To determine whether an event currently being dispatched has had its default behavior
prevented, check the return value of the Event class’s instance method
isDefaultPrevented( ) within a listener registered for that event.

使用道具 举报

回复
论坛徽章:
350
2006年度最佳版主
日期:2007-01-24 12:56:49NBA大富翁
日期:2008-04-21 22:57:29地主之星
日期:2008-11-17 19:37:352008年度最佳版主
日期:2009-03-26 09:33:53股神
日期:2009-04-01 10:05:56NBA季后赛大富翁
日期:2009-06-16 11:48:01NBA季后赛大富翁
日期:2009-06-16 11:48:01ITPUB年度最佳版主
日期:2011-04-08 18:37:09ITPUB年度最佳版主
日期:2011-12-28 15:24:18ITPUB年度最佳技术原创精华奖
日期:2012-03-13 17:12:05
23#
发表于 2008-8-24 16:50 | 只看该作者
By default, when multiple event listeners are registered for a single event type with a
given object, those listeners are triggered in the order in which they registered.
The priority parameter is an integer indicating the order in which the event listener
being registered should be triggered, relative to other listeners registered for the same
event with the same object. Listeners registered with a higher priority are triggered
before listeners registered with a lower priority.

使用道具 举报

回复
论坛徽章:
927
世界杯纪念徽章
日期:2014-07-14 11:31:462014年世界杯参赛球队: 智利
日期:2014-07-04 23:38:162014年世界杯参赛球队: 尼日利亚
日期:2014-07-04 23:38:162014年世界杯参赛球队:墨西哥
日期:2014-07-03 23:45:472014年世界杯参赛球队: 希腊
日期:2014-07-03 23:45:472014年世界杯参赛球队: 荷兰
日期:2014-07-03 23:45:472014年世界杯参赛球队: 阿尔及利亚
日期:2014-07-02 00:13:542014年世界杯参赛球队: 乌拉圭
日期:2014-07-02 00:12:112014年世界杯参赛球队: 哥斯达黎加
日期:2014-07-02 00:12:102014年世界杯参赛球队:巴西
日期:2014-07-01 23:38:18
24#
发表于 2008-8-25 13:25 | 只看该作者
BS 水虎 你结巴啊

使用道具 举报

回复
论坛徽章:
350
2006年度最佳版主
日期:2007-01-24 12:56:49NBA大富翁
日期:2008-04-21 22:57:29地主之星
日期:2008-11-17 19:37:352008年度最佳版主
日期:2009-03-26 09:33:53股神
日期:2009-04-01 10:05:56NBA季后赛大富翁
日期:2009-06-16 11:48:01NBA季后赛大富翁
日期:2009-06-16 11:48:01ITPUB年度最佳版主
日期:2011-04-08 18:37:09ITPUB年度最佳版主
日期:2011-12-28 15:24:18ITPUB年度最佳技术原创精华奖
日期:2012-03-13 17:12:05
25#
发表于 2008-8-25 17:29 | 只看该作者
Adding a [Bindable] tag prior to a class definition establishes a binding expression for all public attributes held on that class. Classes using binding must be an implementation of IEventDispatcher because data binding is an event-based notification system to copy source properties to destination properties.

使用道具 举报

回复
论坛徽章:
350
2006年度最佳版主
日期:2007-01-24 12:56:49NBA大富翁
日期:2008-04-21 22:57:29地主之星
日期:2008-11-17 19:37:352008年度最佳版主
日期:2009-03-26 09:33:53股神
日期:2009-04-01 10:05:56NBA季后赛大富翁
日期:2009-06-16 11:48:01NBA季后赛大富翁
日期:2009-06-16 11:48:01ITPUB年度最佳版主
日期:2011-04-08 18:37:09ITPUB年度最佳版主
日期:2011-12-28 15:24:18ITPUB年度最佳技术原创精华奖
日期:2012-03-13 17:12:05
26#
发表于 2008-8-25 17:29 | 只看该作者
Bindable variables marked as private are available for binding within that class only. Protected variables are available for data binding to the class in which the variable is declared and any subclasses of that class. Public variables are available for data binding to that class, any subclasses, and any external classes.

使用道具 举报

回复
论坛徽章:
350
2006年度最佳版主
日期:2007-01-24 12:56:49NBA大富翁
日期:2008-04-21 22:57:29地主之星
日期:2008-11-17 19:37:352008年度最佳版主
日期:2009-03-26 09:33:53股神
日期:2009-04-01 10:05:56NBA季后赛大富翁
日期:2009-06-16 11:48:01NBA季后赛大富翁
日期:2009-06-16 11:48:01ITPUB年度最佳版主
日期:2011-04-08 18:37:09ITPUB年度最佳版主
日期:2011-12-28 15:24:18ITPUB年度最佳技术原创精华奖
日期:2012-03-13 17:12:05
27#
发表于 2008-8-25 17:30 | 只看该作者
When you define implicit getter/setter methods as bindable, by adding the [Bindable] metadata tag above the getter declaration, the property can be bound to using dot-notation syntax

使用道具 举报

回复
论坛徽章:
350
2006年度最佳版主
日期:2007-01-24 12:56:49NBA大富翁
日期:2008-04-21 22:57:29地主之星
日期:2008-11-17 19:37:352008年度最佳版主
日期:2009-03-26 09:33:53股神
日期:2009-04-01 10:05:56NBA季后赛大富翁
日期:2009-06-16 11:48:01NBA季后赛大富翁
日期:2009-06-16 11:48:01ITPUB年度最佳版主
日期:2011-04-08 18:37:09ITPUB年度最佳版主
日期:2011-12-28 15:24:18ITPUB年度最佳技术原创精华奖
日期:2012-03-13 17:12:05
28#
发表于 2008-8-25 17:35 | 只看该作者
Internally, bindable properties held on objects within the Framework dispatch a propertyChange event when their values are updated. The [Bindable] metadata tag accepts an event attribute that you can define with a custom event type:

[Bindable(event="myValueChanged")]


By default, the event attribute is set as propertyChange. If the event attribute is left as the default, destination properties are notified by using that event type internally. If you assign a custom event type to notify objects of updates to a value, you must also dispatch the event explicitly within the class.

使用道具 举报

回复
论坛徽章:
350
2006年度最佳版主
日期:2007-01-24 12:56:49NBA大富翁
日期:2008-04-21 22:57:29地主之星
日期:2008-11-17 19:37:352008年度最佳版主
日期:2009-03-26 09:33:53股神
日期:2009-04-01 10:05:56NBA季后赛大富翁
日期:2009-06-16 11:48:01NBA季后赛大富翁
日期:2009-06-16 11:48:01ITPUB年度最佳版主
日期:2011-04-08 18:37:09ITPUB年度最佳版主
日期:2011-12-28 15:24:18ITPUB年度最佳技术原创精华奖
日期:2012-03-13 17:12:05
29#
发表于 2008-8-25 17:44 | 只看该作者
When you assign a property of one object (the destination object) to be bound to a property of another object (the source object), an event from the source object is dispatched to notify the destination object of an update to the value. Internally, the property value of the source is copied to the property value of the destination. To bind properties within an MXML declaration, you can use curly braces ({}) or the <mx:Binding> tag. To assign a binding within a component declaration, curly braces are used to wrap the source property and evaluate updates to the value

使用道具 举报

回复
论坛徽章:
350
2006年度最佳版主
日期:2007-01-24 12:56:49NBA大富翁
日期:2008-04-21 22:57:29地主之星
日期:2008-11-17 19:37:352008年度最佳版主
日期:2009-03-26 09:33:53股神
日期:2009-04-01 10:05:56NBA季后赛大富翁
日期:2009-06-16 11:48:01NBA季后赛大富翁
日期:2009-06-16 11:48:01ITPUB年度最佳版主
日期:2011-04-08 18:37:09ITPUB年度最佳版主
日期:2011-12-28 15:24:18ITPUB年度最佳技术原创精华奖
日期:2012-03-13 17:12:05
30#
发表于 2008-8-25 17:54 | 只看该作者
Updating a destination property value based on a source property value is a quick and easy way to ensure data syncing. When using just property values, the property of the destination must be the same type as that of the source property. There may come a time when you need the binding property to be of a different type or to display different but related values—which is where the power of using functions for binding comes into play.

使用道具 举报

回复

您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

TOP技术积分榜 社区积分榜 徽章 团队 统计 知识索引树 积分竞拍 文本模式 帮助
  ITPUB首页 | ITPUB论坛 | 数据库技术 | 企业信息化 | 开发技术 | 微软技术 | 软件工程与项目管理 | IBM技术园地 | 行业纵向讨论 | IT招聘 | IT文档
  ChinaUnix | ChinaUnix博客 | ChinaUnix论坛
CopyRight 1999-2011 itpub.net All Right Reserved. 北京盛拓优讯信息技术有限公司版权所有 联系我们 未成年人举报专区 
京ICP备16024965号-8  北京市公安局海淀分局网监中心备案编号:11010802021510 广播电视节目制作经营许可证:编号(京)字第1149号
  
快速回复 返回顶部 返回列表