第4课 Flex应用程序结构概述


  第4课 Flex应用程序结构概述
  -------------------------------------------------- ------------------------------
  Task.as
  package com.pomodo.model
  {
  public class Task
  {
  [Bindable]
  public var name:String;
  public function Task(name:String = ""){
  this.name = name;
  }
  }
  }
  TodoList.mxml
  
  flex/spark" 
  xmlns:mx="library://ns.adobe.com/flex/mx" minWidth="955" minHeight="600">
  
  
  
  
  
  
  width="100%" height="100%">
  width="100%" height="100%">
  width="100%" verticalAlign="middle">
  
  width="100%"
  enter="createTask()"/>
  
      
  width="100%" height="100%"
  labelField="name"
  dataProvider="{_tasks}" />
  width="100%">
  width="100%" height="30"
  enabled="{taskList.selectedItem != null}"
  click="deleteSelectedTask()" />
      
  
  
  
  -------------------------------------------------- ------------------------------

你可能感兴趣的:(Flex)