⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 drage.mxml

📁 这是一个Flex开发的一个例子,菜单的拉取和拖放
💻 MXML
字号:
<?xml version="1.0" encoding="utf-8"?>
<mx:Application layout="absolute" 
  xmlns:mx="http://www.adobe.com/2006/mxml" 
  width="450" height="350" 
  creationComplete="initApp();"
  backgroundColor="#FFFFFF">
  <mx:Script>
    <![CDATA[
    // setup 3 dataProviders, 2 empty
    private function initApp():void{
      words.dataProvider = ['Water', 'Agua', 'Car', 'Coche', 'House', 'Casa', 'Book', 'Libro', 'Music', 'M煤sica', 'Sandwich', 'Bocadillo'];        
      english.dataProvider = [];
      spanish.dataProvider = [];
    }
    ]]>
  </mx:Script>
  <mx:Panel title="Sort Words By Language" layout="absolute" x="0" y="0" width="450" height="350">
    <mx:Label text="Drag to the Correct Language" x="7" y="3"/>
    <mx:List id="words" width="200" height="275" 
      allowMultipleSelection="true"                
      dragEnabled="true" y="25" x="7"/>
    <mx:Label text="English" y="6" x="223"/>
    <mx:List id="english" width="200" height="120" 
      dropEnabled="true" y="25" x="223"/>
    <mx:Label text="Spanish" x="223" y="150"/>
    <mx:List id="spanish" width="200" height="120" 
      dropEnabled="true" y="177" x="223"/>
  </mx:Panel>
</mx:Application>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -