`
hyj0903
  • 浏览: 148476 次
  • 性别: Icon_minigender_1
  • 来自: 湖南
社区版块
存档分类
最新评论

Flex4 drag and drop第一步

阅读更多
<?xml version="1.0" encoding="utf-8"?>
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009" 
			   xmlns:s="library://ns.adobe.com/flex/spark" 
			   xmlns:mx="library://ns.adobe.com/flex/mx" minWidth="955" minHeight="600"
			   creationComplete="init_app()"
			   >
	<s:layout>
		<s:HorizontalLayout />
	</s:layout>
	<fx:Script>
		<![CDATA[
			import mx.collections.ArrayList
			private function init_app():void
			{
				srcList.dataProvider= new ArrayList(["Test1","Test2","Test3","Test4"]);
				destList.dataProvider= new ArrayList();
				
			}
		]]>
	</fx:Script>
	<s:List id="srcList" dragEnabled="true" dragMoveEnabled="true" allowMultipleSelection="true"/>
	<s:List id="destList" dropEnabled="true" />
</s:Application>

 

0
1
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics