flex list拖拽 calculateDropIndex方法的使用
来源:互联网 发布:灌砂法压实度试验算法 编辑:程序博客网 时间:2024/05/22 12:13
flex list calculateDropIndex方法的使用,获取当前位置
protected function dragOverHandler(event:DragEvent):void
{
var dropTarget:List = List(event.currentTarget);
var r:int = dropTarget.layout.calculateDropLocation(event).dropIndex
dropTarget.selectedIndex=r;
btn1.label=r.toString();
}
spark calculateDropIndex()
Calculate the drop index
Returns the item index in the data provider of the drop target where the item will be dropped. Used by the
dragDrop
event handler to add the items in the correct location.
Not available in the MX TileList or HorizontalList controls.
Use the
spark.layouts.supportClasses.LayoutBase.calculateDropLocation()
method. Use the
layout
property of the list class to access this method in the layout class of the component.
Use the
mx.controls.listClasses.ListBase.calculateDropIndex()
method.
- flex list拖拽 calculateDropIndex方法的使用
- Flex List组件的使用
- Flex List组件的使用
- flex List的使用1
- Flex服务器端SQL(Ibatis)中使用嵌套List的方法
- flex List使用2
- 使用Flex 4的定制化Sortable List元件
- Flex 中List控件的使用,绑定XML!
- Flex学习之路之二十三 List的使用
- list.contains()方法的使用
- List中方法的使用
- list.contains()方法的使用
- flex日志的使用与配置方法
- FLEX中使用xml的方法
- 使用flex的方法(2)
- [Flex=JRun+IIS] 的方法,使用Flex Bulider 建立Flex新站点!
- Flex Actionscript将方法作为方法的参数 使用demo
- List 中的 list.contains(o)方法的使用
- 基于mt7620的newifi y1的Pandorabox新软件源备忘
- c语言-数据类型-基本数据类型
- Android RoboGuice 使用指南(1):概述
- max()函数的高级用法
- 源码推荐(12.29):10秒钟快速集成下拉刷新和上拉加载,多行可滑动action sheet
- flex list拖拽 calculateDropIndex方法的使用
- Yii 字段缓存 SHOW FULL COLUMNS
- 黑马程序员—if、switch、for、while语句
- Android利用Fiddler进行网络数据抓包
- 算法系列笔记5(扩展数据结构-动态顺序统计和区间树)
- JS遍历所有checkbox是否选中
- OpenFire源码学习之二十四:消息回执与离线消息(上)
- POJ2251 Dungeon Master BFS
- Linux开通/关闭端口