Referência do ActionScript® 3.0 para Adobe® Flash® Platform
Início  |  Ocultar listas de Pacotes e Classes |  Pacotes  |  Classes  |  Novidades  |  Índice  |  Apêndices  |  Por que inglês?
Filtros: AIR 30.0 e anterior, Flash Player 30.0 e anterior, Flash Lite 4
Flex 4.6 e anterior, Flash Pro CS6 e anterior
Ocultar filtros
org.osmf.traits 

PlayTrait  - AS3 OSMF

Pacoteorg.osmf.traits
Classepublic class PlayTrait
HerançaPlayTrait Inheritance MediaTraitBase Inheritance EventDispatcher Inheritance Object

Versão da linguagem: ActionScript 3.0
Versão de produto: OSMF 1.0
Versões de runtime: Flash Player 10, AIR 1.5

PlayTrait defines the trait interface for media whose playback can be started and stopped. It can be used as the base class for a more specific PlayTrait subclass.

Use the MediaElement.hasTrait(MediaTraitType.PLAY) method to query whether a media element has a trait of this type. If hasTrait(MediaTraitType.PLAY) returns true, use the MediaElement.getTrait(MediaTraitType.PLAY) method to get an object of this type.

Elementos da API relacionados



Propriedades públicas
 PropriedadeDefinido por
  canPause : Boolean
[somente leitura] Indicates whether the media can be paused.
PlayTrait
 Inheritedconstructor : Object
Uma referência ao objeto de classe ou à função de construtor de uma determinada ocorrência de objeto.
Object
  playState : String
[somente leitura] The current playback state, of type PlayState.
PlayTrait
Métodos públicos
 MétodoDefinido por
  
Constructor.
PlayTrait
 Inherited
addEventListener(type:String, listener:Function, useCapture:Boolean = false, priority:int = 0, useWeakReference:Boolean = false):void
Registra um objeto de ouvinte de evento em um objeto EventDispatcher, de forma que o ouvinte receba a notificação de um evento.
EventDispatcher
 Inherited
Envia um evento para o fluxo de eventos.
EventDispatcher
 Inherited
Verifica se o objeto EventDispatcher tem ouvintes registrados para um tipo específico de evento.
EventDispatcher
 Inherited
Indica se um objeto tem uma propriedade especificada definida.
Object
 Inherited
Indica se uma ocorrência da classe Object está na cadeia de protótipos do objeto especificado como o parâmetro.
Object
  
Pauses the media if it is not already paused.
PlayTrait
  
Plays the media if it is not already playing.
PlayTrait
 Inherited
Indica se a propriedade especificada existe e é enumerável.
Object
 Inherited
removeEventListener(type:String, listener:Function, useCapture:Boolean = false):void
Remove um ouvinte do objeto EventDispatcher.
EventDispatcher
 Inherited
Define a disponibilidade de uma propriedade dinâmica para operações de repetição.
Object
  
Stops the media if it is not already stopped.
PlayTrait
 Inherited
Retorna a representação da string deste objeto, formatado segundo as convenções específicas para a localidade.
Object
 Inherited
Retorna a representação de string do objeto especificado.
Object
 Inherited
Retorna o valor primitivo do objeto especificado.
Object
 Inherited
Verifica se um ouvinte de evento está registrado nesse objeto EventDispatcher ou em qualquer um de seus ancestrais para o tipo de evento especificado.
EventDispatcher
Métodos protegidos
 MétodoDefinido por
  
Called just after the playState property value has changed.
PlayTrait
  
Called immediately before the playState property value is changed.
PlayTrait
  
Sets the canPause property for this PlayTrait.
PlayTrait
Eventos
 Evento Resumo Definido por
 Inherited[transmissão de evento] Despachado quando o Flash Player ou o aplicativo do AIR ganha o foco do sistema operacional e está se tornando inativo.EventDispatcher
  Dispatched when the canPause property has changed.PlayTrait
 Inherited[transmissão de evento] Despachado quando o Flash Player ou o aplicativo do AIR perde o foco do sistema operacional e está se tornando inativo.EventDispatcher
  Dispatched when playback resumes after a live stallPlayTrait
  Dispatched when playback runs out of content for a live stream but the stream is not done.PlayTrait
  Dispatched when the playState of the PlayTrait has changed.PlayTrait
Detalhes da propriedade
Detalhes do construtor

PlayTrait

()Construtor
public function PlayTrait()

Constructor.

Detalhes do método
Detalhe do evento




[ X ]Por que inglês?
O conteúdo na Referência do ActionScript 3.0 aparece em inglês

Nem todas as partes da Referência do ActionScript 3.0 estão traduzidas em todos os idiomas. Quando um elemento de um idioma não está traduzido, ele é exibido em inglês. Por exemplo, a classe ga.controls.HelpBox não está traduzida em nenhum idioma. Por isso, na versão da referência em português do Brasil, a classe ga.controls.HelpBox é exibida em inglês.