| 패키지 | org.osmf.traits | 
| 클래스 | public class TimeTrait | 
| 상속 | TimeTrait    MediaTraitBase   EventDispatcher   Object | 
| 언어 버전: | ActionScript 3.0 | 
| 제품 버전: | OSMF 1.0 | 
| 런타임 버전: | Flash Player 10, AIR 1.5 | 
Use the MediaElement.hasTrait(MediaTraitType.TIME) method to query
	 whether a media element has a trait of this type.
	 If hasTrait(MediaTraitType.TIME) returns true,
	 use the MediaElement.getTrait(MediaTraitType.TIME) method
	 to get an object that is of this type.
관련 API 요소
| 속성 | 정의 주체 | ||
|---|---|---|---|
![]()  | constructor : Object 
	 지정된 객체 인스턴스의 클래스 객체 또는 생성자 함수에 대한 참조입니다.  | Object | |
| currentTime : Number [읽기 전용] 
		 The current time of the media, in seconds.  | TimeTrait | ||
| duration : Number [읽기 전용] 
		 The duration of the media, in seconds.  | TimeTrait | ||
![]()  | traitType : String [읽기 전용] 
		 The MediaTraitType for this trait.  | MediaTraitBase | |
| 메서드 | 정의 주체 | ||
|---|---|---|---|
		 Constructor.  | TimeTrait | ||
![]()  | addEventListener(type:String, listener:Function, useCapture:Boolean = false, priority:int = 0, useWeakReference:Boolean = false):void 
	리스너에서 이벤트 알림을 받을 수 있도록 EventDispatcher 객체에 이벤트 리스너 객체를 등록합니다.  | EventDispatcher | |
![]()  | 
	이벤트를 이벤트 흐름으로 전달합니다.  | EventDispatcher | |
![]()  | 
		 Disposes of any resources used by this trait.  | MediaTraitBase | |
![]()  | 
	EventDispatcher 객체에 특정 유형의 이벤트에 대한 리스너가 등록되어 있는지 여부를 확인합니다.  | EventDispatcher | |
![]()  | 
	 지정된 속성이 객체에 정의되어 있는지 여부를 나타냅니다.  | Object | |
![]()  | 
	 Object 클래스의 인스턴스가 매개 변수로 지정된 객체의 프로토타입 체인에 있는지 여부를 나타냅니다.  | Object | |
![]()  | 
	 지정된 속성이 존재하고 열거 가능한지 여부를 나타냅니다.  | Object | |
![]()  | 
	EventDispatcher 객체에서 리스너를 제거합니다.  | EventDispatcher | |
![]()  | 
     루프 작업에서 동적 속성을 사용할 수 있는지 여부를 설정합니다.  | Object | |
![]()  | 
	 로캘별 규칙에 따라 서식이 지정된 이 객체의 문자열 표현을 반환합니다.  | Object | |
![]()  | 
	 지정된 객체의 문자열 표현을 반환합니다.  | Object | |
![]()  | 
	 지정된 객체의 프리미티브 값을 반환합니다.  | Object | |
![]()  | 
	이 EventDispatcher 객체 또는 조상 객체에 지정한 이벤트 유형에 대한 이벤트 리스너가 등록되어 있는지 여부를 확인합니다.  | EventDispatcher | |
| 메서드 | 정의 주체 | ||
|---|---|---|---|
		 Called just after the currentTime property has changed.  | TimeTrait | ||
		 Called immediately before the currentTime property is changed.  | TimeTrait | ||
		 Called just after the duration property has changed.  | TimeTrait | ||
		 Called immediately before the duration property is changed.  | TimeTrait | ||
		 Invoking this setter will result in the trait's currentTime
		 value changing if it differs from currentTime's current value.  | TimeTrait | ||
		 Invoking this setter will result in the trait's duration
		 value changing if it differs from duration's current value.  | TimeTrait | ||
| 이벤트 | 요약 | 정의 주체 | ||
|---|---|---|---|---|
![]()  | [브로드캐스트 이벤트] Flash Player 또는 AIR 응용 프로그램이 운영 체제 포커스를 얻어 활성화될 때 전달됩니다. | EventDispatcher | ||
| Dispatched when the currentTime of the trait has changed to a value equal to its duration. | TimeTrait | |||
![]()  | [브로드캐스트 이벤트] Flash Player 또는 AIR 응용 프로그램이 운영 체제 포커스를 잃고 비활성화될 때 전달됩니다. | EventDispatcher | ||
| Dispatched when the duration of the trait changed. | TimeTrait | |||
currentTime | 속성 | 
duration | 속성 | 
TimeTrait | () | 생성자 | 
currentTimeChangeEnd | () | 메서드 | 
currentTimeChangeStart | () | 메서드 | 
 protected function currentTimeChangeStart(newCurrentTime:Number):void| 언어 버전: | ActionScript 3.0 | 
| 제품 버전: | OSMF 1.0 | 
| 런타임 버전: | Flash Player 10, AIR 1.5 | 
		 Called immediately before the currentTime property is changed.
		 
Subclasses can override this method to communicate the change to the media.
매개 변수
newCurrentTime:Number — New currentTime value.
		  
		   | 
durationChangeEnd | () | 메서드 | 
 protected function durationChangeEnd(oldDuration:Number):void| 언어 버전: | ActionScript 3.0 | 
| 제품 버전: | OSMF 1.0 | 
| 런타임 버전: | Flash Player 10, AIR 1.5 | 
		 Called just after the duration property has changed.
		 Dispatches the change event.
		 
Subclasses that override should call this method to dispatch the durationChange event.
매개 변수
oldDuration:Number — Previous duration value.
		 
		  
		   | 
durationChangeStart | () | 메서드 | 
 protected function durationChangeStart(newDuration:Number):void| 언어 버전: | ActionScript 3.0 | 
| 제품 버전: | OSMF 1.0 | 
| 런타임 버전: | Flash Player 10, AIR 1.5 | 
		 Called immediately before the duration property is changed.
		 
Subclasses can override this method to communicate the change to the media.
매개 변수
newDuration:Number — New duration value.
		  
		   | 
setCurrentTime | () | 메서드 | 
setDuration | () | 메서드 | 
complete | 이벤트 | 
org.osmf.events.TimeEvent속성 TimeEvent.type =
org.osmf.events.TimeEvent.COMPLETE| 언어 버전: | ActionScript 3.0 | 
| 제품 버전: | OSMF 1.0 | 
| 런타임 버전: | Flash Player 10, AIR 1.5 | 
Dispatched when the currentTime of the trait has changed to a value equal to its duration.
The TimeEvent.COMPLETE constant defines the value of the type property of the event object for a complete event.durationChange | 이벤트 | 
org.osmf.events.TimeEvent속성 TimeEvent.type =
org.osmf.events.TimeEvent.DURATION_CHANGE| 언어 버전: | ActionScript 3.0 | 
| 제품 버전: | OSMF 1.0 | 
| 런타임 버전: | Flash Player 10, AIR 1.5 | 
Dispatched when the duration of the trait changed.
The TimeEvent.DURATION_CHANGE constant defines the value of the type property of the event object for a durationChange event.Tue Jun 12 2018, 03:17 PM Z
 
 상속되는 공용 속성 숨기기
 상속되는 공용 속성 표시