<?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英文原版高清带书签
<<The first line of code>>这本书,生动得体地讲解知识,实用性很强,帮助性很大!
First Draft of a Report on the EDVAC.pdf
冯诺依曼著名的101报告,First Draft of a Report on the EDVAC。
The main goal of this fourth edition of A First Book of C++ remains the same as in previous editions: to introduce, develop, and reinforce well-organized programming skills using C++. All topics are ...
A First Book of ANSI C PPT Chapter 1 Introduction to Computer Programming
冯诺依曼著名的101报告,First Draft of a Report on the EDVAC。
A First Book of ANSI C PPT Chapter 2 Getting Started in C Programming
A first book of Ansi C 习题答案
官网的C:\Documents and Settings\dell.SJ-0017\桌面\Lin\calculator_tutorial1\first_flexapp_tutorial1.zip
The Myth of The First of Three Years
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
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 ...
the first driver of zmx
Since the first 1.0 release of the Flex framework, I've been a fan. I discovered Flex while I was distaining HTML/JavaScript and browser compatibility issues. I was trying to prototype a form-heavy...
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