| 패키지 | mx.core | 
| 클래스 | public class DragSource | 
| 상속 | DragSource    Object | 
| 언어 버전: | ActionScript 3.0 | 
| 제품 버전: | Flex 3 | 
| 런타임 버전: | Flash Player 9, AIR 1.1 | 
Each format of data is identified with a string. The 
  hasFormat() method is used to determine if the object has
  data in that format. The dataForFormat() method is used
  to retrieve the data in the specified format.
Data can be added directly using the addData() method,
  or indirectly using the addHandler() method. The 
  addHandler() method registers a callback that will be called
  if the data is requested. This is useful for adding data in a non-native 
  format that may require large computations or conversions. For example, 
  if you have raw sound data you can add an MP3 format handler. The MP3 
  conversion will only be done if the MP3 data is requested.
| 속성 | 정의 주체 | ||
|---|---|---|---|
![]()  | constructor : Object 
	 지정된 객체 인스턴스의 클래스 객체 또는 생성자 함수에 대한 참조입니다.  | Object | |
| formats : Array [읽기 전용] 
	  Contains the formats of the drag data, as an Array of Strings.  | DragSource | ||
| 메서드 | 정의 주체 | ||
|---|---|---|---|
	  Constructor.  | DragSource | ||
	  Adds data and a corresponding format String to the drag source.  | DragSource | ||
	  Adds a handler that is called when data
	  for the specified format is requested.  | DragSource | ||
	  Retrieves the data for the specified format.  | DragSource | ||
	  Returns true if the data source contains
	  the requested format; otherwise, it returns false.  | DragSource | ||
![]()  | 
	 지정된 속성이 객체에 정의되어 있는지 여부를 나타냅니다.  | Object | |
![]()  | 
	 Object 클래스의 인스턴스가 매개 변수로 지정된 객체의 프로토타입 체인에 있는지 여부를 나타냅니다.  | Object | |
![]()  | 
	 지정된 속성이 존재하고 열거 가능한지 여부를 나타냅니다.  | Object | |
![]()  | 
     루프 작업에서 동적 속성을 사용할 수 있는지 여부를 설정합니다.  | Object | |
![]()  | 
	 로캘별 규칙에 따라 서식이 지정된 이 객체의 문자열 표현을 반환합니다.  | Object | |
![]()  | 
	 지정된 객체의 문자열 표현을 반환합니다.  | Object | |
![]()  | 
	 지정된 객체의 프리미티브 값을 반환합니다.  | Object | |
formats | 속성 | 
formats:Array  [읽기 전용] | 언어 버전: | ActionScript 3.0 | 
| 제품 버전: | Flex 3 | 
| 런타임 버전: | Flash Player 9, AIR 1.1 | 
	  Contains the formats of the drag data, as an Array of Strings.
	  Set this property using the addData()
	  or addHandler() methods.
	  The default value depends on data added to the DragSource object.
	 
	  
	  
구현
    public function get formats():ArrayDragSource | () | 생성자 | 
public function DragSource()| 언어 버전: | ActionScript 3.0 | 
| 제품 버전: | Flex 3 | 
| 런타임 버전: | Flash Player 9, AIR 1.1 | 
Constructor.
addData | () | 메서드 | 
 public function addData(data:Object, format:String):void| 언어 버전: | ActionScript 3.0 | 
| 제품 버전: | Flex 3 | 
| 런타임 버전: | Flash Player 9, AIR 1.1 | 
Adds data and a corresponding format String to the drag source. This method does not return a value.
매개 변수
data:Object — Object that specifies the drag data.
	  This can be any object, such as a String, a DataProvider, and so on.
	 
	   | |
format:String — String that specifies a label that describes
	  the format for this data.
	  
	   | 
addHandler | () | 메서드 | 
 public function addHandler(handler:Function, format:String):void| 언어 버전: | ActionScript 3.0 | 
| 제품 버전: | Flex 3 | 
| 런타임 버전: | Flash Player 9, AIR 1.1 | 
Adds a handler that is called when data for the specified format is requested. This is useful when dragging large amounts of data. The handler is only called if the data is requested. This method does not return a value.
매개 변수
handler:Function — Function that specifies the handler
	  called to request the data.
	  This function must return the data in the specified format.
	 
	   | |
format:String — String that specifies the format for this data.
	  
	   | 
dataForFormat | () | 메서드 | 
 public function dataForFormat(format:String):Object| 언어 버전: | ActionScript 3.0 | 
| 제품 버전: | Flex 3 | 
| 런타임 버전: | Flash Player 9, AIR 1.1 | 
	  Retrieves the data for the specified format.
	  If the data was added with the addData() method,
	  it is returned directly.
	  If the data was added with the addHandler() method,
	  the handler function is called to return the data.
	 
	  
매개 변수
format:String — String that specifies a label that describes
	  the format for the data to return. This string can be a custom value
	  if you are creating a custom drop target with the addData() method. 
	  List-based controls have predefined values 
	  for the   | 
Object — An Object
	  containing the data in the requested format.
	  If you drag multiple items, the returned value is an Array. 
	  For a List-based control, the returned value is always an Array, 
	  even if it contains a single item.
	  
	   | 
hasFormat | () | 메서드 | 
 public function hasFormat(format:String):Boolean| 언어 버전: | ActionScript 3.0 | 
| 제품 버전: | Flex 3 | 
| 런타임 버전: | Flash Player 9, AIR 1.1 | 
	  Returns true if the data source contains
	  the requested format; otherwise, it returns false.
	 
	  
매개 변수
format:String — String that specifies a label that describes the format 
	  for the data. 
	 
	   | 
Boolean — true if the data source contains
	  the requested format.
	  
	   | 
Tue Jun 12 2018, 03:17 PM Z
 
 상속되는 공용 속성 숨기기
 상속되는 공용 속성 표시