<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" creationComplete="dc()" layout="absolute" backgroundGradientAlphas="[1.0, 1.0]" backgroundGradientColors="[#ED2727, #EDE2E2]" width="482" height="389">
<mx:Label text="Hello Word" color="#EBF4F6" fontSize="20" x="10" y="10"/>
<mx:Script>
<![CDATA[
internal function dc():void{
var arr:Array=new Array();
for(var i:Number=0;i<6;i++)
{
//给数组赋值
arr.push("元素"+i);
}
//绑定数据到list控件
dt1.dataProvider=arr;
dt2.dataProvider=arr;
//允许拖动
dt1.dragEnabled=true;
//允许放入
dt2.dropEnabled=true;
dt1.allowMultipleSelection=true;
dt2.dropEnabled=true;
}
]]>
</mx:Script>
<mx:Label x="134" y="21" text="测试数据" id="mydt"/>
<mx:List x="54" y="69" id="dt1" width="116" height="252"></mx:List>
<mx:List x="236" y="69" height="252" id="dt2"></mx:List>
</mx:Application>
分享到:
相关推荐
《A First Book of C++ 4th Edition》是一本针对初学者的经典C++编程教材,旨在引导读者逐步掌握C++语言的基础知识和编程技巧。第四版的更新通常意味着作者已经根据最新的C++标准和教学实践进行了修订,以适应当前的...
A First Book of ANSI C PPT Chapter 1 Introduction to Computer Programming
【标题】"Flex教程:first_flexapp_tutorial1" 本教程主要针对Adobe Flex初学者,旨在引导你完成创建第一个Flex应用程序的过程。Flex是一种用于构建富互联网应用(RIA)的开源框架,它允许开发者利用MXML和...
A First Book of ANSI C PPT Chapter 2 Getting Started in C Programming
在本压缩包"Flex_FirstStep 中文"中,我们可以期待找到一系列关于Flex初学者教程的中文资源。 1. **Flex基础概念**: - **Flex SDK**: Flex软件开发工具包,包括编译器、框架库以及用于创建RIA的工具。 - **...
first_day_of_school
One of my first projects for school when I learned how to code with the If/Then statements. Great little Morse Code code for any new beginners
Taobao shop entry basics to advanced tutorial --------The first one: the primary article.part03
### Flex教程大全:Flex快速入门 #### 一、Flex简介 Flex是由Adobe公司推出的一款用于构建Web应用程序的技术框架。它允许开发者使用MXML(一种基于XML的语言)和ActionScript(一种面向对象的脚本语言)来进行高效...
Leonid Fridman, Jaime H. Moreno, Rafael Iriarte,等. Sliding Modes after the First Decade of the 21st Century[M]. Springer Berlin Heidelberg, 2012.
A First Book of C++ (Introduction to Programming) By 作者: Gary J. Bronson ISBN-10 书号: 1111531005 ISBN-13 书号: 9781111531003 Edition 版本: 4 出版日期: 2011-02-11 pages 页数: 802 Gary Bronson’s A ...
4. **测试环境**:创建一个测试文件,如`firstapp.mxml`,放在配置好的站点目录下。通过Debug模式测试服务器配置,确保Apache和Resin服务器已启动。如果配置无误,将能成功运行并显示页面,表示环境配置完成。 对于...
Taobao shop entry basics to advanced tutorial -------- The first one: the primary article.part07
Taobao shop entry basics to advanced tutorial -------- The first one: the primary article.part02
Taobao shop entry basics to advanced tutorial -------- The first one: the primary article.part09
Taobao shop entry basics to advanced tutorial -------- The first one: the primary article.part05
Taobao shop entry basics to advanced tutorial -------- The first one: the primary article.part06
Taobao shop entry basics to advanced tutorial -------- The first one: the primary article.part04