Flex event 官方文档重点小结(不全)
2011-12-19 23:29
281 查看
Flex priority
1.You can register any number of event listenres with a single event;
2.If you register some event listeners inline and some with the addEventListener() method, the order in which the listeners are called for a
single event can be unpredictable. ?
3.Change the order by using the priority parameter of the addEventListerner()
method. The default value is 0. The highest priority event is called first.
4.If you want to change the priority of an event listener, you must remove the
listerner by calling the removeEventListerner() method, and then add the
listener again with the new priority.
5.The priority can guarantee the order in which listener functions will be called, but it can't ensure that the listener will finish executing before the next listener
is called. So you should ensure your listeners don't rely on each other.
(asynchronous)
Keyboard events
1.If you want to dispatch the keyboard event, you must set the focus first.
2.keyCode: a numeric value that corresponds to the value of a key on the keyboard. It depends on the device and operating system.
charCode: ASCII value.
3.When handling a key or key combination that the underlying operating system or browser recognizes, the operating system or browser generally
processes the event first.
4.The MouseEvent class and all MouseEvent subclasses have the three properties(altKey, ctrlKey, shiftKey) that you can use to determine if a specific
key was held down when the event occurred.
相关文章推荐
- ubuntu 系统安装配置搭建jenkins(官方文档小结)
- Inside the ArcGIS API for Flex 1.3(官方文档精彩转载)
- storm学习小结二:转载一个比较好的storm官方文档译文
- javafx官方文档学习之Event体系理解
- BeautifulSoup 4.4.0官方文档学习小结
- 从 Adobe 官方下载 AS3 Flex3 Flex4 的帮助文档 地址
- css参考文档; 官方英文说明!! 1 margin padding 百分比参照物 2 margin值为auto时的说明 3 div在div里垂直居中方法 4 dispaly:flex说明
- Android 微信支付集成重点(已经看过官方开发文档)
- Simple Spring Flex 官方文档地址
- 11g自动内存设置-整理自官方文档
- ViewStub和include布局使用(官方文档)
- RHEL6参考文档(官方的PDF文件)
- [每日一课】 Python官方文档--- 函数进阶
- RecyclerView API官方文档译文
- Fragments (Android官方文档中文版)
- Android官方开发文档Training系列课程中文版:与其它APP交互之允许其它APP启动你的Activity
- 谷歌发布 TensorFlow Lite [官方网站,文档]
- 自制JDK1.7 API 帮助文档(官方压缩包版chm 和 网页版chm)
- 翻译官方开发文档ArcGIS Server ArcObjects API(中英文对照)
- 忘记了root密码不能进入系统 -红帽官方文档