Pacotemx.controls
Classeclasse pública VideoDisplay
HerançaVideoDisplay Inheritance UIComponent Inheritance FlexSprite Inheritance Sprite Inheritance DisplayObjectContainer Inheritance InteractiveObject Inheritance DisplayObject Inheritance EventDispatcher Inheritance Object

O controle VideoDisplay permite que você execute um arquivo FLV e um aplicativo Flex. It supports progressive download over HTTP, streaming from the Flash Media Server, and streaming from a Camera object.

Sintaxe MXMLexpandedOcultar Sintaxe MXML

The <mx:VideoDisplay> tag inherits all the tag attributes of its superclass, and adds the following tag attributes:

  <mx:VideoDisplay
    Propriedades
    autoBandWidthDetection="false|true"
    autoPlay="true|false"
    autoRewind="true|false"
    bufferTime="0.1"
    cuePointManagerClass=""
    cuePoints=""
    idleTimeout="300000"
    live="false|true"
    maintainAspectRatio="true|false"
    playheadTime=""
    playheadUpdateInterval="250"
    progressInterval="250"
    source=""
    totalTime=""
    volume="0.75"
  
    Estilos
    backgroundAlpha="1.0"
    backgroundColor="0x000000"
    backgroundImage="undefined"
    backgroundSize="undefined"
    borderColor="undefined"
    borderSides="left top right bottom"
    borderSkin="ClassReference('mx.skins.halo.HaloBorder')"
    borderStyle="none"
    borderThickness="1"
    cornerRadius="0"
    dropShadowColor="0x000000"
    dropShadowEnabled="false|true"
    shadowDirection="center"
    shadowDistance="2"
  
    Eventos
    close="No default"
    complete="No default"
    cuePoint="No default"
    playheadUpdate="No default"
    progress="No default"
    ready="No default"
    rewind="No default"
    stateChange="No default"
   />
  

Veja os exemplos



Propriedades Públicas
 PropriedadeDefinido Por
 InheritedaccessibilityProperties : AccessibilityProperties
As atuais opções de acessibilidade para esse objeto display.
DisplayObject
 InheritedactiveEffects : Array
[leitura-somente] A lista de efeitos que estão atualmente ocorrendo no componente, como um Array de instâncias EffectInstance.
UIComponent
 Inheritedalpha : Number
Indica o valor de transparência alpha do objeto especificado.
DisplayObject
  autoBandWidthDetection : Boolean
Specifies whether the VideoDisplay control should use the built-in automatic bandwidth detection feature.
VideoDisplay
 InheritedautomationDelegate : Object
O objeto de delegação que maneja a funcionalidade relacionada à automatização.
UIComponent
 InheritedautomationName : String
Nome que pode ser usado como um identificador para esse objeto.
UIComponent
 InheritedautomationTabularData : Object
[leitura-somente] Uma implementação da interface IAutomationTabularData, que pode ser usada para retomar os dados.
UIComponent
 InheritedautomationValue : Array
[leitura-somente] Esse valor geralmente corresponde a dada aparência do objeto e deve ser utilizável para correlacionar o identificador com o objeto como aparece visualmente dentro do aplicativo.
UIComponent
  autoPlay : Boolean
Specifies whether the video should start playing immediately when the source property is set.
VideoDisplay
  autoRewind : Boolean
Specifies whether the FLV file should be rewound to the first frame when play stops, either by calling the stop() method or by reaching the end of the stream.
VideoDisplay
 InheritedbaselinePosition : Number
[leitura-somente] A coordenada y do baseline da primeira linha do texto do componente.
UIComponent
 InheritedblendMode : String
Um valor da classe BlendMode que especifica o modo blend a ser usado.
DisplayObject
  borderMetrics : EdgeMetrics
[leitura-somente] Retorna um objeto EdgeMetrics que tem quatro propriedades: left, top, right, e bottom.
VideoDisplay
  bufferTime : Number
Number of seconds of video to buffer in memory before starting to play the video file.
VideoDisplay
 InheritedbuttonMode : Boolean
Especifica o modo de button desse sprite.
Sprite
  bytesLoaded : int
[leitura-somente] Number of bytes already loaded that are available for playing.
VideoDisplay
  bytesTotal : int
[leitura-somente] Total number of bytes to load.
VideoDisplay
 InheritedcacheAsBitmap : Boolean
Se colocado como true, Flash Player ou Adobe AIR faz o cache de uma representação interna de bitmap do objeto display.
DisplayObject
 InheritedcacheHeuristic : Boolean
[escrever-somente] Usado pelo Flex para sugerir cache de bitmap para o objeto.
UIComponent
 InheritedcachePolicy : String
Especifica a política para criar o cache bitmap para esse objeto.
UIComponent
 InheritedclassName : String
[leitura-somente] O nome da classe dessa instância, tal como "Button".
UIComponent
 Inheritedconstructor : Object
Uma referência ao objeto da classe ou função construtora para uma instância determinada de um objeto.
Object
 InheritedcontentMouseX : Number
[leitura-somente] Retorna a posição x do mouse, no sistema de coordenação do conteúdo.
UIComponent
 InheritedcontentMouseY : Number
[leitura-somente] Retorna a posição y do mouse, no sistema de coordenação do conteúdo.
UIComponent
 InheritedcontextMenu : NativeMenu
Especifica o context menu associado a esse objeto.
InteractiveObject
  cuePointManager : Object
[leitura-somente] The instance of the CuePointManager class associated with the VideoPlayer control.
VideoDisplay
  cuePointManagerClasse : Class
Cue point manager to use.
VideoDisplay
  cuePoints : Array
The Array of cue points associated with the control.
VideoDisplay
 InheritedcurrentState : String
O atual estado de visão do componente.
UIComponent
 InheritedcursorManager : ICursorManager
[leitura-somente] Pega o CursorManager que controla o cursor para esse componente e seus semelhantes.
UIComponent
 Inheriteddescriptor : UIComponentDescriptor
Referência do UIComponentDescriptor, se houver, que foi usado pelo método createComponentFromDescriptor() para criar essa instância UIComponent.
UIComponent
 Inheriteddocument : Object
Uma referência ao objeto de documento associado a esse UIComponent.
UIComponent
 InheriteddoubleClickEnabled : Boolean
Especifica se o objeto UIComponent recebe eventos doubleClick.
UIComponent
 InheriteddropTarget : DisplayObject
[leitura-somente] Especifica o objeto display sobre qual o sprite está sendo arrastado, ou sobre qual o sprite foi largado.
Sprite
 Inheritedenabled : Boolean
Se o componente pode aceitar interação do usuário.
UIComponent
 InheritederrorString : String
O texto que será mostrado por uma dica de erro de um componente quando um componente for monitorado por um Validator e a validação falha.
UIComponent
 InheritedexplicitHeight : Number
Número que especifica a altura explícita do componente, em pixels, na coordenada do componente.
UIComponent
 InheritedexplicitMaxHeight : Number
Número que especifica a altura máxima do componente, em pixels, na coordenada do componente.
UIComponent
 InheritedexplicitMaxWidth : Number
Número que especifica a largura máxima do componente, em pixels, na coordenada do componente.
UIComponent
 InheritedexplicitMinHeight : Number
Número que especifica a altura mínima do componente, em pixels, na coordenadas do componente.
UIComponent
 InheritedexplicitMinWidth : Number
Número que especifica a largura mínima do componente, em pixels, na coordenadas do componente.
UIComponent
 InheritedexplicitWidth : Number
Número que especifica a largura explícita do componente, em pixels, na coordenadas do componente.
UIComponent
 Inheritedfilters : Array
Um array incluindo o índice que contém cada objeto de filtro atualmente associado ao objeto display.
DisplayObject
 InheritedflexContextMenu : IFlexContextMenu
O context menu para esse UIComponent.
UIComponent
 InheritedfocusEnabled : Boolean
Indica se o componente pode receber foco utilizando a tecla Tab.
UIComponent
 InheritedfocusManager : IFocusManager
Pega o FocusManager que controla o foco para esse componente e seus semelhantes.
UIComponent
 InheritedfocusPane : Sprite
O painel de foco associado a esse objeto.
UIComponent
 InheritedfocusRect : Object
Especifica se esse objeto mostra um retângulo de foco.
InteractiveObject
 Inheritedgraphics : Graphics
[leitura-somente] Especifica o objeto Graphics que pertence a esse sprite onde comandos de desenho em vetor podem ocorrer.
Sprite
 Inheritedheight : Number
Número que especifica a altura do componente, em pixels, na coordenadas do parent.
UIComponent
 InheritedhitArea : Sprite
Designa outro sprite para servir como hit area para um sprite.
Sprite
 Inheritedid : String
ID do componente.
UIComponent
  idleTimeout : int
Specifies the amount of time, in milliseconds, that the connection is idle (playing is paused or stopped) before the connection to the Flash Media Server is stopped.
VideoDisplay
 InheritedincludeInLayout : Boolean
Especifica se esse componente está incluso no layout do parent container.
UIComponent
 InheritedinheritingStyles : Object
O início da corrente de estilos herdados da corrente desse componente.
UIComponent
 Inheritedinitialized : Boolean
Um indicador que determina se um objeto passou por todas as três fases do layout: commitment, measurement, e layout (provido que algum foi requerido).
UIComponent
 InheritedinstanceIndex : int
[leitura-somente] O índice do componente repetido.
UIComponent
 InheritedinstanceIndices : Array
Um Array contendo os indices necessários para referenciar esse objeto UIComponent de seus documentos parent.
UIComponent
 InheritedisDocument : Boolean
[leitura-somente] Determina se essa instância UIComponent é um objeto de documento, isso é, se está no topo da hierarquia de um aplicativo Flex, componente MXML, ou componente ActionScript.
UIComponent
 InheritedisPopUp : Boolean
Colocado para true pelo PopUpManager para indicar que aquele componente foi popped up.
UIComponent
  live : Boolean
Specifies whether the control is streaming a live feed.
VideoDisplay
 InheritedloaderInfo : LoaderInfo
[leitura-somente] Retorna um objeto LoaderInfo contendo informações sobre o carregamento de um arquivo para qual esse objeto display pertença.
DisplayObject
  maintainAspectRatio : Boolean
Specifies whether the control should maintain the original aspect ratio while resizing the video.
VideoDisplay
 Inheritedmask : DisplayObject
O objeto calling display é mascarado pelo especificado objeto de máscara.
DisplayObject
 InheritedmaxHeight : Number
Número que especifica a altura máxima do componente, em pixels, na coordenada do componente.
UIComponent
 InheritedmaxWidth : Number
Número que especifica a largura máxima do componente, em pixels, na coordenada do componente.
UIComponent
 InheritedmeasuredHeight : Number
A altura padrão do componente, em pixels.
UIComponent
 InheritedmeasuredMinHeight : Number
A altura mínima padrão do componente, em pixels.
UIComponent
 InheritedmeasuredMinWidth : Number
A largura mínima padrão do componente, em pixels.
UIComponent
 InheritedmeasuredWidth : Number
A largura padrão do componente, em pixels.
UIComponent
  metadata : Object
[leitura-somente] An object that contains a metadata information packet that is received from a call to the NetSteam.onMetaData() callback method, if available.
VideoDisplay
 InheritedminHeight : Number
Número que especifica a altura mínima do componente, em pixels, na coordenadas do componente.
UIComponent
 InheritedminWidth : Number
Número que especifica a largura mínima do componente, em pixels, na coordenadas do componente.
UIComponent
 InheritedmoduleFactory : IFlexModuleFactory
O moduleFactory que é usado para criar TextFields no contexto SWF correto.
UIComponent
 InheritedmouseChildren : Boolean
Determina se os children do objeto são mouse permitidos.
DisplayObjectContainer
 InheritedmouseEnabled : Boolean
Especifica se esse objeto recebe mensagens de mouse.
InteractiveObject
 InheritedmouseFocusEnabled : Boolean
Se pode ou não receber foco quando clicado.
UIComponent
 InheritedmouseX : Number
[leitura-somente] Indica a coordenada x da posição do mouse, em pixels.
DisplayObject
 InheritedmouseY : Number
[leitura-somente] Indica a coordenada y da posição do mouse, em pixels.
DisplayObject
 Inheritedname : String
Indica o nome da instância do DisplayObject.
DisplayObject
 InheritednestLevel : int
Profundidade desse objeto na hierarquia do containment.
UIComponent
 InheritednonInheritingStyles : Object
O começo da corrente do componente de estilos não herdados.
UIComponent
 InheritednumAutomationChildren : int
[leitura-somente] O número de children de automatização que esse container tem.
UIComponent
 InheritednumChildren : int
[leitura-somente] Retorna o número de children desse objeto.
DisplayObjectContainer
 InheritedopaqueBackground : Object
Especifica se o objeto display é opaco com uma cor determinada de fundo.
DisplayObject
 Inheritedowner : DisplayObjectContainer
O dono desse UIComponent.
UIComponent
 Inheritedparent : DisplayObjectContainer
[leitura-somente] O container ou componente parent para esse componente.
UIComponent
 InheritedparentApplication : Object
[leitura-somente] Uma referência ao objeto Application que contém essa instância UIComponent.
UIComponent
 InheritedparentDocument : Object
[leitura-somente] Uma referência ao objeto de documento parent para esse UIComponent.
UIComponent
 InheritedpercentHeight : Number
Número que especifica a altura de um componente como uma porcentagem do tamanho de seu parent.
UIComponent
 InheritedpercentWidth : Number
Número que especifica a largura de um componente como porcentagem do tamanho do parent.
UIComponent
  playheadTime : Number
Playhead position, measured in seconds, since the video starting playing.
VideoDisplay
  playheadUpdateInterval : int
Specifies the amount of time, in milliseconds, between each playheadUpdate event.
VideoDisplay
  playing : Boolean
[leitura-somente] If true, the media is currently playing.
VideoDisplay
 InheritedprocessedDescriptors : Boolean
Colocado para true após criação de child imediato ou atrasado, dependendo de qual aconteça.
UIComponent
  progressInterval : int
Specifies the amount of time, in milliseconds, between each progress event.
VideoDisplay
 Inheritedprototype : Object
[static] Uma referência ao objeto protótipo de uma classe ou função de objeto.
Object
 Inheritedrepeater : IRepeater
[leitura-somente] Uma referência ao objeto Repeater no documento parent que produziu esse UIComponent.
UIComponent
 InheritedrepeaterIndex : int
[leitura-somente] O indice do item no data provider do Repeater que produziu esse UIComponent.
UIComponent
 InheritedrepeaterIndices : Array
Um Array contendo os índices dos itens no data provider dos Repeater no documento parent que produziu esse UIComponent.
UIComponent
 Inheritedrepeaters : Array
Um Array contendo referências aos objetos Repeater no documento parent que produziu esse UIComponent.
UIComponent
 Inheritedroot : DisplayObject
[leitura-somente] Para um objeto display em um arquivo SWF carregado, a propriedade root é o objeto display no topo na porção da estrutura de tree do display list representado por aquele arquivo SWF.
DisplayObject
 Inheritedrotation : Number
Indica a rotação da instância DisplayObject, em graus, de sua orientação original.
DisplayObject
 Inheritedscale9Grid : Rectangle
O atual grid de escala que está em efeito.
DisplayObject
 InheritedscaleX : Number
Número que especifica o fator de escala horizontal.
UIComponent
 InheritedscaleY : Number
Número que especifica o fator de escala vertical.
UIComponent
 Inheritedscreen : Rectangle
[leitura-somente] Retorna um objeto que contém o tamanho e posição da base da superfície de desenho para esse objeto.
UIComponent
 InheritedscrollRect : Rectangle
Os limites de área do retângulo scroll do objeto display.
DisplayObject
 InheritedshowInAutomationHierarchy : Boolean
Um indicador que determina se um objeto de automatização mostra a hierarquia de automatização.
UIComponent
 InheritedsoundTransform : SoundTransform
Controles de som dentro desse sprite.
Sprite
  source : String
Relative path and filename of the FLV file to stream.
VideoDisplay
 Inheritedstage : Stage
[leitura-somente] O Stage do objeto display.
DisplayObject
  state : String
[leitura-somente] The current state of the VideoDisplay control.
VideoDisplay
  stateResponsive : Boolean
[leitura-somente] Specifies whether the VideoDisplay control is in a responsive state, true, or in the unresponsive state, false.
VideoDisplay
 Inheritedstates : Array
Os estados de visão que são definidos para esse componente.
UIComponent
 InheritedstyleDeclaration : CSSStyleDeclaration
Armazenagem para os estilos de herança inline nesse objeto.
UIComponent
 InheritedstyleName : Object
O estilo da classe usado por esse componente.
UIComponent
 InheritedsystemManager : ISystemManager
Retorna o objeto SystemManager usado por esse componente.
UIComponent
 InheritedtabChildren : Boolean
Determina se os children do objeto permitem uso da tecla tab.
DisplayObjectContainer
 InheritedtabEnabled : Boolean
Especifica se esse objeto está na ordem tab.
InteractiveObject
 InheritedtabIndex : int
Especifica a a disposição tab de objetos em um arquivo SWF.
InteractiveObject
 InheritedtextSnapshot : TextSnapshot
[leitura-somente] Retorna um objeto TextSnapshot para essa instância DisplayObjectContainer.
DisplayObjectContainer
 InheritedtoolTip : String
Texto a ser mostrado no ToolTip.
UIComponent
  totalTime : Number
Total length of the media, in seconds.
VideoDisplay
 Inheritedtransform : Transform
Um objeto com propriedades pertencentes a matriz do objeto display, transformação de cor, e fronteira de pixels.
DisplayObject
 Inheritedtransitions : Array
Um Array de objetos Transition, onde cada objeto Transition define um conjunto de efeitos a começarem quando ocorre uma mudança no estado de visão.
UIComponent
 InheritedtweeningProperties : Array
Array de propriedades que estão atualmente sofrendo tween nesse objeto.
UIComponent
 Inheriteduid : String
Um identificador exclusivo para o objeto.
UIComponent
 InheritedupdateCompletePendingFlag : Boolean
Um indicador que determina se um objeto passou por todas as três fases de validação de layout (provido que algum foi requerido).
UIComponent
 InheriteduseHandCursor : Boolean
Um valor Boolean que indica se o ponteiro (hand cursor) aparece quando o mouse faz o roll over sobre um sprite no qual a propriedade buttonMode é colocado como true.
Sprite
 InheritedvalidationSubField : String
Usado por um validor para associar um subcampo a esse componente.
UIComponent
  videoHeight : int
[leitura-somente] Height of the loaded FLV file.
VideoDisplay
  videoWidth : int
[leitura-somente] Width of the loaded FLV file.
VideoDisplay
 Inheritedvisible : Boolean
Controla a visibilidade desse UIComponent.
UIComponent
  volume : Number
The volume level, specified as an value between 0 and 1.
VideoDisplay
 Inheritedwidth : Number
Número que especifica a largura do componente, em pixels, na coordenadas do parent.
UIComponent
 Inheritedx : Number
Número que especifica a posição horizontal do componente, em pixels, dentro de seu parent container.
UIComponent
 Inheritedy : Number
Número que especifica a posição vertical do componente, em pixels, dentro de seu parent container.
UIComponent
Propriedades Protegidas
 PropriedadeDefinido Por
  border : IFlexDisplayObject
The border object for the control.
VideoDisplay
 InheritedresourceManager : IResourceManager
[escrever-somente] Uma referência ao objeto que gerencia todos os recursos localizados do aplicativo.
UIComponent
 InheritedunscaledHeight : Number
[leitura-somente] Um método de conveniência para determinar a altura não redimensionada do componente.
UIComponent
 InheritedunscaledWidth : Number
[leitura-somente] Um método de conveniência para determinar a largura não redimensionada de um componente. Todo desenho e child layout de um componente deveriam ser feitos dentro de um retângulo limite dessa largura, que também é passado como um argumento para updateDisplayList().
UIComponent
Métodos Públicos
 MétodoDefinido Por
  
Constructor.
VideoDisplay
 Inherited
Adiciona uma instância child DisplayObject a essa instância DisplayObjectContainer.
DisplayObjectContainer
 Inherited
Adiciona uma instância child DisplayObject a essa instância DisplayObjectContainer.
DisplayObjectContainer
 Inherited
addEventListener(type:String, listener:Function, useCapture:Boolean = false, priority:int = 0, useWeakReference:Boolean = false):void
Registra um objeto event listener com um objeto do EventDispatcher para que o listener receba notificação de um evento.
EventDispatcher
 Inherited
Indica se as restrições de segurança causariam qualquer objeto display a ser omitido da lista retornada chamando o método DisplayObjectContainer.getObjectUnderPoint() com o point especificado.
DisplayObjectContainer
  
Specifies to play a video stream from a camera.
VideoDisplay
 Inherited
callLater(method:Function, args:Array = null):void
Coloca na fila uma função para ser chamada depois.
UIComponent
 Inherited
clearStyle(styleProp:String):void
Deleta uma propriedade de estilo dessa instância de componente.
UIComponent
  
Forces the close of an input stream and connection to Flash Media Server.
VideoDisplay
 Inherited
Determina se o objeto display especificado é um child da instânica DisplayObjectContainer ou a instância em si mesma.
DisplayObjectContainer
 Inherited
Converte um objeto Point das coordenadas do conteúdo para coordenadas global.
UIComponent
 Inherited
Converte um objeto Point de conteúdo para coordenadas locais.
UIComponent
 Inherited
Retorna um conjunto de propriedades que identificam o child dentro desse container.
UIComponent
 Inherited
Cria uma referência de id a esse objeto IUIComponent em seu objeto de documento parent.
UIComponent
 Inherited
Deleta a referência id para esse objeto IUIComponent em seu objeto de documento parent.
UIComponent
 Inherited
Retorna um objeto UITextFormat correspondendo aos estilos de texto para esse UIComponent.
UIComponent
 Inherited
Despacha um evento no fluxo de eventos.
UIComponent
 Inherited
drawFocus(isFocused:Boolean):void
Mostra ou esconde o indicador de foco em volta desse componente.
UIComponent
 Inherited
drawRoundRect(x:Number, y:Number, width:Number, height:Number, cornerRadius:Object = null, color:Object = null, alpha:Object = null, gradientMatrix:Matrix = null, gradientType:String = "linear", gradientRatios:Array = null, hole:Object = null):void
Programadamente desenha um retângulo para dentro desse objeto Graphics do skin.
UIComponent
 Inherited
Chamado pela instância de efeito quando pára a execução no componente.
UIComponent
 Inherited
Chamado pela instância de efeito quando começa a execução no componente.
UIComponent
 Inherited
Termina todos os efeitos atualmente em execução no componente.
UIComponent
 Inherited
executeBindings(recurse:Boolean = false):void
Executa a união de dados para dentro desse objeto UIComponent.
UIComponent
 Inherited
Chamado depois que a impressão estiver completa.
UIComponent
 Inherited
Providencia o objeto de automatização no índice especificado.
UIComponent
 Inherited
getBounds(targetCoordinateSpace:DisplayObject):Rectangle
Retorna um retângulo que define a área do objeto display relativo ao sistema de coordenadas do objeto targetCoordinateSpace.
DisplayObject
 Inherited
Retorna o objeto child display que existe no índice especificado.
DisplayObjectContainer
 Inherited
Retorna o objeto display child que existe com o nome especificado.
DisplayObjectContainer
 Inherited
Retorna a posição do índice de uma instância child DisplayObject.
DisplayObjectContainer
 Inherited
Acha os seletores de tipo para essa instância UIComponent.
UIComponent
 Inherited
getConstraintValue(constraintName:String):*
Retorna um valor layout constraint, que é o mesmo que pegar o estilo contraint para esse componente.
UIComponent
 Inherited
Um método de conveniência para determinar usar a altura explícita ou medida.
UIComponent
 Inherited
Um método de conveniência para determinar usar a largura explícita ou medida.
UIComponent
 Inherited
Pega o objeto que atualmente tem o foco.
UIComponent
 Inherited
Retorna um array de objetos que ficam por baixo do point especificado e são children (ou grandchildren, e assim por diante) dessa instância DisplayObjectContainer.
DisplayObjectContainer
 Inherited
getRect(targetCoordinateSpace:DisplayObject):Rectangle
Retorna um retângulo que define os limites do objeto display, baseado no sistema de coordenadas definido pelo parâmetro targetCoordinateSpace, excluindo qualquer traço em formas.
DisplayObject
 Inherited
getRepeaterItem(whichRepeater:int = -1):Object
Retorna um item no dataProvider que foi usado pelo Repeater específico para produzir esse Repeater, ou null se esse Repeater não é repetido.
UIComponent
 Inherited
getStyle(styleProp:String):*
Pega uma propriedade de estilo que tem sido colocado em qualquer lugar na corrente lookup de estilo desse componente
UIComponent
 Inherited
Converte um objeto Point de coordenadas global a conteúdo.
UIComponent
 Inherited
Converte o objeto point das coordenadas Stage (global) para as coordenadas do objeto display (local).
DisplayObject
 Inherited
Verifica se o objeto do EventDispatcher tem listeners registrados para um tipo determinado de evento.
EventDispatcher
 Inherited
Indica se um objeto tem uma propriedade específica definida.
Object
 Inherited
Avalia o objeto display para ver se sobrepõe ou intersecta com o objeto obj display.
DisplayObject
 Inherited
hitTestPoint(x:Number, y:Number, shapeFlag:Boolean = false):Boolean
Avalia o objeto display para ver se sobrepõe o intersecta com o ponto especificado pelos parâmetros x e y.
DisplayObject
 Inherited
Retorna um box Matrix que pode ser passado para o método drawRoundRect() como o parâmetro rot quando desenhando um gradiente horizontal.
UIComponent
 Inherited
Inicializa a estrutura interna desse componente.
UIComponent
 Inherited
Inicializa várias propriedades que ficam de olho em instância repetidas desse componente.
UIComponent
 Inherited
Marca um componente para que seu método updateDisplayList() seja chamado durante um atualização de tela tardia.
UIComponent
 Inherited
Marca um componente para que seu método commitProperties() seja chamado durante um atualização de tela tardia.
UIComponent
 Inherited
Marca um componente para que seu método measure() seja chamado durante um atualização de tela tardia.
UIComponent
 Inherited
Indica se uma instância da classe Object está na corrente do protótipo do objeto determinado como parâmetro.
Object
  
Loads the media file without playing it.
VideoDisplay
 Inherited
Converte um objeto Point de coordenadas local para conteúdo.
UIComponent
 Inherited
Converte o objeto point das coordenadas de um objeto display (local) para as coordenadas Stage (global).
DisplayObject
 Inherited
Mede o texto HTML especificado, que pode conter tags HTML tal como <font> e <b>, supondo que é mostrado em um UITextField de linha única usando um UITextFormat determinado pelos estilos desse UIComponent.
UIComponent
 Inherited
Mede o texto especificado, supondo que é mostrado em um UITextField de linha única usando um UITextFormat determinado pelos estilos desse UIComponent.
UIComponent
 Inherited
Move o componente para uma posição especificada dentro de seu parent.
UIComponent
 Inherited
Propaga mudança do estilo para os children.
UIComponent
 Inherited
Retornam true se a corrente de propriedades de posse apontam do child para esse UIComponent.
UIComponent
 Inherited
Chamado pelo Flex quando um objeto UIComponent é adicionado ou removido de um parent.
UIComponent
  
Pauses playback without moving the playhead.
VideoDisplay
  
Plays the media file.
VideoDisplay
 Inherited
Preparam um IFlexDisplayObject para imprimir.
UIComponent
 Inherited
Indica se a propriedade especificada existe e se é enumerável.
Object
 Inherited
Constrói ou reconstrói o cache do estilo CSS para esse componente e, se o parâmetro recursivo for true, assim também para todos os descendentes desse componente.
UIComponent
 Inherited
Para cada evento efeito, registra o EffectManager como um dos event listeners.
UIComponent
 Inherited
Remove a instância child DisplayObject especificado da lista child da instância DisplayObjectContainer.
DisplayObjectContainer
 Inherited
Remove um child DisplayObject da posição do índice especificada na lista child do DisplayObjectContainer.
DisplayObjectContainer
 Inherited
removeEventListener(type:String, listener:Function, useCapture:Boolean = false):void
Remove um listener do objeto do EventDispatcher.
EventDispatcher
 Inherited
Faz o replay do evento específico.
UIComponent
 Inherited
Resolve um child usando o id providenciado.
UIComponent
 Inherited
[static] Termina o processamento de fundo de métodos colocados em fila pelo callLater(), depois chama suspendBackgroundProcessing().
UIComponent
 Inherited
Coloca o tamanho do objeto.
UIComponent
 Inherited
Muda a posição de um child existente no container do objeto display.
DisplayObjectContainer
 Inherited
setConstraintValue(constraintName:String, value:*):void
Coloca um valor de limitação do layout, que é o mesmo que colocar um estilo de limitação para esse componente.
UIComponent
 Inherited
setCurrentState(stateName:String, playTransition:Boolean = true):void
Determina o estado atual.
UIComponent
 Inherited
Determina o foco para esse componente.
UIComponent
 Inherited
Determina a disponibilidade de uma propriedade dinâmica para operações em loop.
Object
 Inherited
setStyle(styleProp:String, newValue:*):void
Ajusta uma propriedade de estilo nessa instância do componente.
UIComponent
 Inherited
setVisible(value:Boolean, noEvent:Boolean = false):void
Chamado quando a propriedade de visibilidade muda.
UIComponent
 Inherited
startDrag(lockCenter:Boolean = false, bounds:Rectangle = null):void
Deixa o usuário arrastar o sprite especificado.
Sprite
  
Stops playback.
VideoDisplay
 Inherited
Finaliza o método startDrag().
Sprite
 Inherited
styleChanged(styleProp:String):void
Detecta mudanças nas propriedades de estilo.
UIComponent
 Inherited
Flex chama o método stylesInitialized() quando os estilos para um componente são primeiramente inicializados.
UIComponent
 Inherited
[static] Bloqueia o processamento de fundo de métodos colocados em fila pelo callLater(), até resumeBackgroundProcessing() ser chamado.
UIComponent
 Inherited
Troca a ordem z (ordem de frente para trás) de dois objetos child especificados.
DisplayObjectContainer
 Inherited
swapChildrenAt(index1:int, index2:int):void
Troca a ordem z (ordem de frente para trás) dos objetos child em duas posições índice especificadas na lista child.
DisplayObjectContainer
 Inherited
Retorna um string indicando o local desse objeto dentro da hierarquia do DisplayObjects no Application.
FlexSprite
 Inherited
Valida a posição e tamanho de children e desenha outros visuais.
UIComponent
 Inherited
Validar e fazer o update de propriedades e layout desse objeto e redesenhá-lo, se necessário.
UIComponent
 Inherited
Usado pela lógica do layout para validar as propriedades de um componente chamando o método commitProperties().
UIComponent
 Inherited
validateSize(recursive:Boolean = false):void
Valida o tamanho medido do componente se o método LayoutManager.invalidateSize() for chamado com esse ILayoutManagerClient, depois o método validateSize é chamado quando é hora de fazer medidas.
UIComponent
 Inherited
Maneja os eventos válidos e inválidos de um validator designado a esse componente.
UIComponent
 Inherited
Retorna o valor primitivo de um objeto específico.
Object
 Inherited
Retorna um box Matrix que pode ser passado ao drawRoundRect() como o parâmetro rot quando desenhando um gradiente vertical.
UIComponent
 Inherited
Verifica se um event listener está registrado com esse objeto do EventDispatcher ou qualquer um de seus parents para o determinado tipo de evento.
EventDispatcher
Métodos Protegidos
 MétodoDefinido Por
 Inherited
Ajusta o retângulo de foco.
UIComponent
 Inherited
Esse é um método interno usado pelo Flex framework para suportar o efeito Dissolve.
UIComponent
 Inherited
Executa qualquer processo final depois que objetos child forem criados.
UIComponent
 Inherited
Processa as propriedades determinadas no componente.
UIComponent
  
Cria a borda para esse componente.
VideoDisplay
 Inherited
Cria objetos child para o componente.
UIComponent
 Inherited
Cria um novo objeto usando um contexto baseado na fonte embeded sendo usada.
UIComponent
 Inherited
Cria o objeto usando um dado moduleFactory.
UIComponent
 Inherited
O event handler chamado quando um objeto UIComponent recebe foco.
UIComponent
 Inherited
O event handler chamado quando um objeto UIComponent perde foco.
UIComponent
 Inherited
Finaliza a inicialização desse componente.
UIComponent
 Inherited
Inicializa o código de acessabilidade desse componente.
UIComponent
 Inherited
Tipicamente anulado por componentes contendo objetos UITextField, onde os objetos UITextField recebem foco.
UIComponent
 Inherited
O event handler chamado para um evento keyDown.
UIComponent
 Inherited
Um event handler chamado para um evento keyUp.
UIComponent
  
layoutChrome(unscaledWidth:Number, unscaledHeight:Number):void
Responds to size changes by setting the positions and sizes of the borders.
VideoDisplay
 Inherited
Calcula o tamanho padrão, e opcionalmente o tamanho mínimo padrão do componente.
UIComponent
 Inherited
Esse método é chamado quando um UIComponent é construido, e de novo quando o ResourceManager despacha um evento "change" para indicar que os recursos localizados têm mudado de alguma forma.
UIComponent
 Inherited
updateDisplayList(unscaledWidth:Number, unscaledHeight:Number):void
Desenha o objeto e/ou tamanha e posiciona seus children.
UIComponent
Eventos
 Evento Sumário Definido Por
 Inherited Despachado quando o Flash Player ou um aplicativo AIR obtém foco do sistema operacional e se torna ativo.EventDispatcher
 Inherited
add
Despachado quando o componente é adicionado ao container como um child de conteúdo usando o método addChild() ou addChildAt().UIComponent
 Inherited Despachado quando um objeto display é adicionado à lista display.DisplayObject
 Inherited Despachado quando um objeto display é adicionado à lista display do stage, de forma direta ou através da adição de um sub tree no qual o objeto display está contido.DisplayObject
 Inherited Despachado quando o usuário pressiona e solta o principal botão do despositivo de apontamento do usuário sobre o mesmo InteractiveObject.InteractiveObject
   Dispatched when the NetConnection object is closed, whether by timing out or by calling the close() method.VideoDisplay
   Dispatched when the playhead reaches the end of the FLV file.VideoDisplay
 Inherited Despachado quando o usuário seleciona o context menu associado a esse objeto interativo no aplicativo AIR.InteractiveObject
 Inherited Despachado quando o componente terminou sua contrução, processamento de propriedade, medidas, layout e desenho.UIComponent
   Dispatched when the value of a cue point's time property is equal to the current playhead location.VideoDisplay
 Inherited Despachado após a mudança do estado de visão.UIComponent
 Inherited Despachado após a mudança da propriedade currentState, mas antes da mudança do estado de visão.UIComponent
 Inherited Despachado quando o Flash Player ou um aplicativo AIR perde o foco do sistema operacional e está se tornando inativo.EventDispatcher
 Inherited Despachado quando o usuário pressiona e libera duas vezes em sucessão rápida o principal botão de um dispositivo e apontamento sobre o mesmo InteractiveObject quando o indicador daquele objeto doubleClickEnabled foi ajustado para true.InteractiveObject
 Inherited Despachado pelo iniciador de arrasto (o componente que é a fonte dos dados sendo arrastados) quando a operação de arrasto for completada, ou quando você largar os dados arrastados em um alvo onde o item será largado ou quando você termina a operação drag-and-drop sem fazer largar o item.UIComponent
 Inherited Despachado pelo alvo onde o item será largado quando o usuário solta o mouse por cima dele.UIComponent
 Inherited Despachado por um componente quando o usuário move o mouse sobre o componente durante uma operação de arrasto.UIComponent
 Inherited Despachado pelo componente quando o usuário arrasta para fora do componente, mas não larga os dados no alvo.UIComponent
 Inherited Despachado por um componente quando o usuário move o mouse enquanto sobre o componente durante uma operação de arrasto.UIComponent
 Inherited Despachado por um iniciador de arrasto ao começar a operação de arrasto.UIComponent
 Inherited Despachado após o término de um efeito.UIComponent
 Inherited Despachado logo antes do início de um efeito.UIComponent
 Inherited Despachado quando o playhead está entrando em um frame novo.DisplayObject
 Inherited Despachado após o componente ter retornado ao estado de visão root.UIComponent
 Inherited Despachado antes do componente sair do estado de visão root.UIComponent
 Inherited Despachado após o objeto display receber foco.InteractiveObject
 Inherited Despachado após um objeto display perder o foco.InteractiveObject
 Inherited Despachado quando um estado do objeto muda de visível para invisível.UIComponent
 Inherited Despachado quando o componente terminou sua construção e tem todas as propriedades de inicialização ajustadas.UIComponent
 Inherited Despachado quando um componente é monitorado por um Validator e a validação falha.UIComponent
 Inherited Despachado quando o usuário pressiona uma tecla.InteractiveObject
 Inherited Despachado quando o usuário tenta mudar o foco usando a navegação do teclado.InteractiveObject
 Inherited Despachado quando o usuário solta uma tecla.InteractiveObject
   Dispatched the first time metadata in the FLV file is reached.VideoDisplay
 Inherited Despachado quando o usuário pressiona e solta o botão do meio de um dispositivo de apontamento sobre o mesmo InteractiveObject.InteractiveObject
 Inherited Despachado quando o usuário pressionar o dispositivo de apontamento do meio sobre uma instância InteractivObject.InteractiveObject
 Inherited Despachado quando o usuário solta o botão do dispositivo de apontamento sobre uma instância InteractiveObject.InteractiveObject
 Inherited Despachado quando o usuário pressiona o dispositivo de apontamento sobre uma instância InteractiveObject.InteractiveObject
 Inherited Despachado de um componente aberto usando o PopUpManager quando o usuário clica para fora dele.UIComponent
 Inherited Despachado quando o usuário tenta mudar o foco usando um dispositivo de apontemento.InteractiveObject
 Inherited Despachado quando o usuário move o dispositivo de apontemento enquanto está sobre um InteractiveObject.InteractiveObject
 Inherited Despachado quando o usuário move um dispositivo de apontamento para longe de uma instância InteractiveObject.InteractiveObject
 Inherited Despachado quando o usuário move um dispositivo de apontamento sobre a instância InteractiveObject.InteractiveObject
 Inherited Despachado quando o usuário solta o botão do dispositivo de apontamento sobre uma instância InteractiveObject.InteractiveObject
 Inherited Despachado quando a roda do mouse é girada sobre uma instância InteractiveObject.InteractiveObject
 Inherited Despachado do componente aberto usando o PopUpManager quando o usuário faz o scroll na roda do mouse fora dele.UIComponent
 Inherited Despachado quando o objeto se moveu.UIComponent
 Inherited Despachado pelo iniciador de arrasto InteractiveObject quando o usuário solta o gesto de arrasto.InteractiveObject
 Inherited Despachado pelo alvo InteractiveObject quando um objeto arrastado é largado nele este ato foi aceitado com uma chamada ao DragManager.acceptDragDrop().InteractiveObject
 Inherited Despachado por um InteractiveObject quando um gesto de arrasto adentra suas fronteiras.InteractiveObject
 Inherited Despachado por um InteractiveObject quando um gesto de arrasto deixa suas fronteiras.InteractiveObject
 Inherited Despachado por um InteractiveObject continuamente enquanto um gesto de arrasto permanece dentro de sua fronteira.InteractiveObject
 Inherited Despachado no início de operação de arrasto pelo InteractiveObject que é especificado como aquele que começa o arrasto na chamada DragManager.doDrag().InteractiveObject
 Inherited Despachado durante uma operação de arrasto pelo InteractiveObject que é especificado como aquele que inica o arrasto na chamada DragManager.doDrag().InteractiveObject
   Dispatched continuosly while the video is playing.VideoDisplay
 Inherited Despachado no iníncio da seqência de inicialização do componente.UIComponent
   Dispatched continuously until the FLV file has downloaded completely.VideoDisplay
   Dispatched when the FLV file is loaded and ready to play.VideoDisplay
 Inherited Despachado quando o componente é removido de um container como um child de conteúdo usando o método removeChild() ou removeChildAt().UIComponent
 Inherited Despachado quando um objeto display está prestes a ser removido da lista display.DisplayObject
 Inherited Despachado quando um objeto display está prestes a ser removido da lista display, de forma direta ou através da remoção de um sub tree no qual o objeto display está contido.DisplayObject
 Inherited Despachado quando a lista display está prestes a ser atualizada e representada.DisplayObject
 Inherited Despachado quando o componente muda de tamanho.UIComponent
   Dispatched when the control autorewinds.VideoDisplay
 Inherited Despachado quando o usuário pressiona e solta o botão direito de um dispositivo de apontamento do usuário sobre o mesmo InteractiveObject.InteractiveObject
 Inherited Despachado quando o usuário pressiona o dispositivo de apontamento sobre uma instância InteractiveObject.InteractiveObject
 Inherited Despachado quando o usuário solta o botão do dispositivo de apontamento sobre uma instância InteractiveObject.InteractiveObject
 Inherited Despachado quando o usuário move um dispositivo de apontamento para longe de uma instância InteractiveObject.InteractiveObject
 Inherited Despachado quando o usuário move um dispositivo de apontamento sobre a instância InteractiveObject.InteractiveObject
 Inherited Despachado quando o estado de um objeto muda de invisível para visível.UIComponent
   Dispatched when the state of the control changes.VideoDisplay
 Inherited Despachado quando o valor do indicador do objeto tabChildren muda.InteractiveObject
 Inherited Despachado quando o indicador do objeto tabEnabled muda.InteractiveObject
 Inherited Despachado quando o valor da propriedade do objeto tabIndex muda.InteractiveObject
 Inherited Despachado pelo componente quando chega a hora de criar um ToolTip.UIComponent
 Inherited Despachado pelo componente quando seu ToolTip foi ocultado e será logo descartado.UIComponent
 Inherited Despachado pelo componente quando seu ToolTip está prestes a ser ocultado.UIComponent
 Inherited Despachado pelo componente quando seu ToolTip está prestes a ser mostrado.UIComponent
 Inherited Despachado pelo componente quando seu ToolTip foi mostrado.UIComponent
 Inherited Despachado por um componente no qual a propriedade ToolTip é ajustada assim que o usuário passa o mouse por cima.UIComponent
 Inherited Despachado quando um objeto teve seus métodos commitProperties(), measure(), e updateDisplayList() chamados (se necessário).UIComponent
 Inherited Despachado quando um componente é monitorado por um Validator e a validação é um sucesso.UIComponent
 Inherited Despachado quando valores mudam de forma programada ou pela interação do usuário.UIComponent
Estilos
 Estilo Descrição Definido Por
  
backgroundAlpha
Tipo: Number Herança CSS: não
Nível alpha da cor definida pela propriedade backgroundColor, da imagem ou arquivo SWF definido pelo estilo backgroundImage. Valid values range from 0.0 to 1.0. For most controls, O valor padrão é 1.0, but for ToolTip controls, O valor padrão é 0.95 and for Alert controls, O valor padrão é 0.9. O valor padrão é 1.0.
VideoDisplay
  
backgroundColor
Tipo: uint Formato: Cor Herança CSS: não
Cor do fundo de um componente. You can have both a backgroundColor and a backgroundImage set. Some components do not have a background. The DataGrid control ignores this style. O valor padrão é undefined, which means it is not set. If both this style and the backgroundImage style are undefined, the component has a transparent background.

For the Application container, this style specifies the background color while the application loads, and a background gradient while it is running. Flex calculates the gradient pattern between a color slightly darker than the specified color, and a color slightly lighter than the specified color.

The default skins of most Flex controls are partially transparent. As a result, the background color of a container partially "bleeds through" to controls that are in that container. You can avoid this by setting the alpha values of the control's fillAlphas property to 1, as the following example shows:

  <mx:Container backgroundColor="0x66CC66"/>
      <mx:ControlName ... fillAlphas="[1,1]"/>
  </mx:Container>

VideoDisplay
  
backgroundDisabledColor
Tipo: uint Formato: Cor Herança CSS: sim
Cor do fundo de um componente quando ele é desativado. O valor global padrão é undefined. The default value for List controls is 0xDDDDDD (light gray). If a container is disabled, the background is dimmed, and the degree of dimming is controlled by the disabledOverlayAlpha style.
VideoDisplay
  
backgroundImage
Tipo: Object Formato: Arquivo Herança CSS: não
Imagem de fundo de um componente. This can be an absolute or relative URL or class. You can either have both a backgroundColor and a backgroundImage set at the same time. The background image is displayed on top of the background color. O valor padrão é undefined, meaning "not set". If this style and the backgroundColor style are undefined, the component has a transparent background.

The default skins of most Flex controls are partially transparent. As a result, the background image of a container partially "bleeds through" to controls that are in that container. You can avoid this by setting the alpha values of the control's fillAlphas property to 1, as the following example shows:

  <mx:Container backgroundColor="0x66CC66"/>
      <mx:ControlName ... fillAlphas="[1,1]"/>
  </mx:Container>

VideoDisplay
  
backgroundSize
Tipo: String Herança CSS: não
Ajusta o tamanho da imagem especificada pelo backgroundImage para diferentes porcentagens de tamanho. A value of "100%" stretches the image to fit the entire component. To specify a percentage value, you must include the percent sign (%). The default for the Application container is 100%. The default value for all other containers is auto, which maintains the original size of the image.
VideoDisplay
 Inherited Tipo: String Herança CSS: não
A distância vertical em pixels do canto superior da área de conteúdo á posição da base controle.
UIComponent
  
borderColor
Tipo: uint Formato: Cor Herança CSS: não
Cor da borda. The default value depends on the component class; if not overridden for the class, O valor padrão é 0xB7BABC.
VideoDisplay
  
borderSides
Tipo: String Herança CSS: não
Laterais de limite da caixa. A space-delimited String that specifies the sides of the border to show. The String can contain "left", "top", "right", and "bottom" in any order. O valor padrão é "left top right bottom", which shows all four sides. This style is only used when borderStyle is "solid".
VideoDisplay
  
borderSkin
Tipo: Class Herança CSS: não
A classe border skin do componente. The mx.skins.halo.HaloBorder class is the default value for all components that do not explicitly set their own default. The Panel container has a default value of mx.skins.halo.PanelSkin. To determine the default value for a component, see the default.css file. O valor padrão é mx.skins.halo.HaloBorder.
VideoDisplay
  
borderStyle
Tipo: String Herança CSS: não
Estilo das laterais da caixa. The possible values are "none", "solid", "inset", and "outset". The default value depends on the component class; if not overridden for the class, O valor padrão é "inset". The default value for most Containers is "none".
VideoDisplay
  
borderThickness
Tipo: Number Formato: Comprimento Herança CSS: não
A grossura das laterais da caixa. Only used when borderStyle is set to "solid". O valor padrão é 1.
VideoDisplay
 Inherited Tipo: String Herança CSS: não
A distância vertical em pixels do canto inferior do componente ao canto inferior de sua área de conteúdo.
UIComponent
  
cornerRadius
Tipo: Number Formato: Comprimento Herança CSS: não
Raio dos cantos do componente. O valor padrão dessa classe depende na classe do componente; se não anulado para a classe, o valor padrão é 0. The default value for ApplicationControlBar is 5.
VideoDisplay
  
dropShadowColor
Tipo: uint Formato: Cor Herança CSS: sim
Cor da sombra drop. O valor padrão é 0x000000.
VideoDisplay
  
dropShadowEnabled
Tipo: Boolean Herança CSS: não
Propriedade boolean que especifica se o componente tem uma sombra drop visível. This style is used with borderStyle="solid". O valor padrão é false.

Note: For drop shadows to appear on containers, set backgroundColor or backgroundImage properties. Otherwise, the shadow appears behind the container because the default background of a container is transparent.

VideoDisplay
 Inherited Tipo: uint Formato: Cor Herança CSS: sim
Cor do destaque do componente quando validação falha.
UIComponent
 Inherited Tipo: String Herança CSS: não
Blend mode usado pelo retângulo de foco.
UIComponent
 Inherited Tipo: Class Herança CSS: não
Skin usado para desenhar o retângulo de foco.
UIComponent
 Inherited Tipo: Number Formato: Comprimento Herança CSS: não
Grossura, em pixels, do outline do retângulo de foco.
UIComponent
 Inherited Tipo: String Herança CSS: não
A distância horizontal em pixels do centro da área de conteúdo do componente ao centro do componente.
UIComponent
 Inherited Tipo: String Herança CSS: não
A distância horizontal em pixels da beirada esquerda da área de conteúdo do componente à beirada esquerda do componente.
UIComponent
 Inherited Tipo: String Herança CSS: não
A distância horizontal em pixels da beirada direita do componente à beirada direita de sua área de conteúdo.
UIComponent
  
shadowDirection
Tipo: String Herança CSS: não
Direção da sombra drop. Possible values are "left", "center", and "right". O valor padrão é "center".
VideoDisplay
  
shadowDistance
Tipo: Number Formato: Comprimento Herança CSS: não
Distância da sombra drop. If the property is set to a negative value, the shadow appears above the component. O valor padrão é 2.
VideoDisplay
 Inherited Tipo: uint Formato: Cor Herança CSS: sim
Cor do tema de um componente.
UIComponent
 Inherited
top
Tipo: String Herança CSS: não
A distância vertical em pixels da beirada superior da área de conteúdo do control à beirada superior do componente.
UIComponent
 Inherited Tipo: String Herança CSS: não
A distância vertical em pixels do centro da área de conteúdo do componente ao centro do componente.
UIComponent
Efeitos
 Efeito Descrição Definido Por
 Inherited Evento Disparador: added
Executado quando o componente é adicionado a um Container como um child.
UIComponent
 Inherited Evento Disparador: creationComplete
Executado quando o componente é criado.
UIComponent
 Inherited Evento Disparador: focusIn
Executado quando o componente recebe foco do teclado.
UIComponent
 Inherited Evento Disparador: focusOut
Executado quando o componente perde foco do teclado.
UIComponent
 Inherited Evento Disparador: hide
Executado quando o componente se torna invisível.
UIComponent
 Inherited Evento Disparador: mouseDown
Executado quando o usuário pressiona o botão do mouse sobre o componente.
UIComponent
 Inherited Evento Disparador: mouseUp
Executado quando o usuário solta o botão do mouse sobre o componente.
UIComponent
 Inherited Evento Disparador: move
Executado quando o componente é movido.
UIComponent
 Inherited Evento Disparador: removed
Executado quando o componente é removido de um Container.
UIComponent
 Inherited Evento Disparador: resize
Executado quando o componente muda de tamanho.
UIComponent
 Inherited Evento Disparador: rollOut
Executado quando o usuário move o mouse para que não fique mais sobre o componente.
UIComponent
 Inherited Evento Disparador: rollOver
Executado quando o usuário passa o mouse por cima do componente.
UIComponent
 Inherited Evento Disparador: show
Executado quando o componente se torna visível.
UIComponent
Constantes Públicas
 ConstanteDefinido Por
 InheritedDEFAULT_MAX_HEIGHT : Number = 10000
[static] O valor padrão para a propriedade maxHeight.
UIComponent
 InheritedDEFAULT_MAX_WIDTH : Number = 10000
[static] O valor padrão para a propriedade maxWidth.
UIComponent
 InheritedDEFAULT_MEASURED_HEIGHT : Number = 22
[static] O valor padrão para a propriedade measuredHeight.
UIComponent
 InheritedDEFAULT_MEASURED_MIN_HEIGHT : Number = 22
[static] O valor padrão para a propriedade measuredMinHeight.
UIComponent
 InheritedDEFAULT_MEASURED_MIN_WIDTH : Number = 40
[static] O valor padrão para a propriedade measuredMinWidth.
UIComponent
 InheritedDEFAULT_MEASURED_WIDTH : Number = 160
[static] O valor padrão para a propriedade measuredWidth.
UIComponent
Detalhe da Propriedade
autoBandWidthDetectionpropriedade
autoBandWidthDetection:Boolean  [ler-escrever]

Specifies whether the VideoDisplay control should use the built-in automatic bandwidth detection feature. When false, you do not require a main.asc file on Flash Media Server (FMS) 2 to connect to FMS. When true, you need to implement a main.asc and store it in the directory structure of FMS. The main.asc file must define the following functions:

For more information on writing main.asc, see the FMS documentation.

O valor padrão é false.

Essa propriedade pode ser usada como a fonte para a união de dados.


Implementação
    public function get autoBandWidthDetection():Boolean
    public function set autoBandWidthDetection(value:Boolean):void
autoPlaypropriedade 
autoPlay:Boolean  [ler-escrever]

Specifies whether the video should start playing immediately when the source property is set. If true, the video file immediately begins to buffer and play.

Even if autoPlay is set to false, Flex starts loading the video after the initialize() method is called. For Flash Media Server, this means creating the stream and loading the first frame to display (and loading more if autoSize or aspectRatio is set to true). In the case of an HTTP download, Flex starts downloading the stream and shows the first frame.

O valor padrão é true.


Implementação
    public function get autoPlay():Boolean
    public function set autoPlay(value:Boolean):void
autoRewindpropriedade 
autoRewind:Boolean  [ler-escrever]

Specifies whether the FLV file should be rewound to the first frame when play stops, either by calling the stop() method or by reaching the end of the stream. This property has no effect for live streaming video.

O valor padrão é true.

Essa propriedade pode ser usada como a fonte para a união de dados.


Implementação
    public function get autoRewind():Boolean
    public function set autoRewind(value:Boolean):void
borderpropriedade 
protected var border:IFlexDisplayObject

The border object for the control.

borderMetricspropriedade 
borderMetrics:EdgeMetrics  [leitura-somente]

Retorna um objeto EdgeMetrics que tem quatro propriedades: left, top, right, e bottom. The value of each property is equal to the thickness of one side of the border around the control, in pixels.


Implementação
    public function get borderMetrics():EdgeMetrics
bufferTimepropriedade 
bufferTime:Number  [ler-escrever]

Number of seconds of video to buffer in memory before starting to play the video file. For slow connections streaming over RTMP, it is important to increase this property from the default.

O valor padrão é 0.1.

Essa propriedade pode ser usada como a fonte para a união de dados.


Implementação
    public function get bufferTime():Number
    public function set bufferTime(value:Number):void
bytesLoadedpropriedade 
bytesLoaded:int  [leitura-somente]

Number of bytes already loaded that are available for playing. The value is only useful for media loaded using HTTP.

Contains -1 when there is no input stream, when the stream is from Flash Media Server, or if the information is not yet available.

Essa propriedade pode ser usada como a fonte para a união de dados.


Implementação
    public function get bytesLoaded():int
bytesTotalpropriedade 
bytesTotal:int  [leitura-somente]

Total number of bytes to load. The value is only useful for media loaded using HTTP.

Contains -1 when there is no input stream, when the stream is from Flash Media Server, or if the information is not yet available.

Essa propriedade pode ser usada como a fonte para a união de dados.


Implementação
    public function get bytesTotal():int
cuePointManagerpropriedade 
cuePointManager:Object  [leitura-somente]

The instance of the CuePointManager class associated with the VideoPlayer control. You can use this object to control cue points, or use the cuePoints property.

You use cue points to trigger cuePoint events when the playback of your video reaches a specified location. To set cue points, you use methods of the CuePointManager class.

Cue points embedded in the FLV are not available via cuePoints or cuePointManager. In order to retrieve them, you can access the metadata property or the metadataReceived event.


Implementação
    public function get cuePointManager():Object

Ver também

cuePointManagerClasspropriedade 
cuePointManagerClass:Class  [ler-escrever]

Cue point manager to use. Set this to mx.controls.videoClasses.CuePointManager to enable cue point management.


Implementação
    public function get cuePointManagerClass():Class
    public function set cuePointManagerClass(value:Class):void

Ver também

cuePointspropriedade 
cuePoints:Array  [ler-escrever]

The Array of cue points associated with the control. You can use this property to control cue points, or use the cuePointManager property.

You use cue points to trigger cuePoint events when the playback of your video reaches a specified location. To set cue points, you pass an Array to the cuePoints property.

Cue points embedded in the FLV are not available via cuePoints or cuePointManager. In order to retrieve them, you can access the metadata property or the metadataReceived event.

Each element of the Array contains two fields:

Essa propriedade pode ser usada como a fonte para a união de dados.


Implementação
    public function get cuePoints():Array
    public function set cuePoints(value:Array):void
idleTimeoutpropriedade 
idleTimeout:int  [ler-escrever]

Specifies the amount of time, in milliseconds, that the connection is idle (playing is paused or stopped) before the connection to the Flash Media Server is stopped. This property has no effect on the HTTP download of FLV files. If this property is set when the stream is already idle, it restarts the idle timeout with a new value.

O valor padrão é 300000 (five minutes).


Implementação
    public function get idleTimeout():int
    public function set idleTimeout(value:int):void
livepropriedade 
live:Boolean  [ler-escrever]

Specifies whether the control is streaming a live feed. Set this property to true when streaming a live feed from Flash Media Server.

O valor padrão é false.


Implementação
    public function get live():Boolean
    public function set live(value:Boolean):void
maintainAspectRatiopropriedade 
maintainAspectRatio:Boolean  [ler-escrever]

Specifies whether the control should maintain the original aspect ratio while resizing the video.

O valor padrão é true.

Essa propriedade pode ser usada como a fonte para a união de dados.


Implementação
    public function get maintainAspectRatio():Boolean
    public function set maintainAspectRatio(value:Boolean):void
metadatapropriedade 
metadata:Object  [leitura-somente]

An object that contains a metadata information packet that is received from a call to the NetSteam.onMetaData() callback method, if available. Ready when the metadataReceived event is dispatched.

If the FLV file is encoded with the Flash 8 encoder, the metadata property contains the following information. Older FLV files contain only the height, width, and duration values.

ParameterDescription
canSeekToEndA Boolean value that is true if the FLV file is encoded with a keyframe on the last frame that allows seeking to the end of a progressive download movie clip. It is false if the FLV file is not encoded with a keyframe on the last frame.
cuePointsAn Array of objects, one for each cue point embedded in the FLV file. Value is undefined if the FLV file does not contain any cue points. Each object has the following properties:
  • type—A String that specifies the type of cue point as either "navigation" or "event".
  • name—A String that is the name of the cue point.
  • time—A Number that is the time of the cue point in seconds with a precision of three decimal places (milliseconds).
  • parameters—An optional Object that has name-value pairs that are designated by the user when creating the cue points.
audiocodecidA Number that indicates the audio codec (code/decode technique) that was used.
audiodelay A Number that represents time 0 in the source file from which the FLV file was encoded.

Video content is delayed for the short period of time that is required to synchronize the audio. For example, if the audiodelay value is .038, the video that started at time 0 in the source file starts at time .038 in the FLV file.

Note that the VideoDisplay class compensates for this delay in its time settings. This means that you can continue to use the time settings that you used in your the source file.

audiodatarateA Number that is the kilobytes per second of audio.
videocodecidA Number that is the codec version that was used to encode the video.
framerateA Number that is the frame rate of the FLV file.
videodatarateA Number that is the video data rate of the FLV file.
heightA Number that is the height of the FLV file.
widthA Number that is the width of the FLV file.
durationA Number that specifies the duration of the FLV file in seconds.

Essa propriedade pode ser usada como a fonte para a união de dados.


Implementação
    public function get metadata():Object
playheadTimepropriedade 
playheadTime:Number  [ler-escrever]

Playhead position, measured in seconds, since the video starting playing. The event object for many of the VideoPlay events include the playhead position so that you can determine the location in the video file where the event occurred.

Setting this property to a value in seconds performs a seek operation. If the video is currently playing, it continues playing from the new playhead position. If the video is paused, it seeks to the new playhead position and remains paused. If the video is stopped, it seeks to the new playhead position and enters the paused state. Setting this property has no effect with live video streams.

If the new playhead position is less than 0 or NaN, the control throws an exception. If the new playhead position is past the end of the video, or past the amount of the video file downloaded so far, then the control still attempts the seek.

For an FLV file, setting the playheadTime property seeks to the keyframe closest to the specified position, where keyframes are specified in the FLV file at the time of encoding. Therefore, you might not seek to the exact time if there is no keyframe specified at that position.

If player is in an unresponsive state, it queues the request.

This property throws an exception if set when no stream is connected. Use the stateChange event and the connected property to determine when it is safe to set this property.

O valor padrão é NaN.

Essa propriedade pode ser usada como a fonte para a união de dados.


Implementação
    public function get playheadTime():Number
    public function set playheadTime(value:Number):void
playheadUpdateIntervalpropriedade 
playheadUpdateInterval:int  [ler-escrever]

Specifies the amount of time, in milliseconds, between each playheadUpdate event.

If you set this property when the video is playing, the timer restarts at 0, and the next playheadUpdate event occurs after the new time interval.

O valor padrão é 250.


Implementação
    public function get playheadUpdateInterval():int
    public function set playheadUpdateInterval(value:int):void
playingpropriedade 
playing:Boolean  [leitura-somente]

If true, the media is currently playing.

Essa propriedade pode ser usada como a fonte para a união de dados.


Implementação
    public function get playing():Boolean
progressIntervalpropriedade 
progressInterval:int  [ler-escrever]

Specifies the amount of time, in milliseconds, between each progress event. The progress event occurs continuously until the video file downloads completely.

If you set this property when the video is downloading, the timer restarts at 0, and the next progress event occurs after the new time interval.

O valor padrão é 250.


Implementação
    public function get progressInterval():int
    public function set progressInterval(value:int):void
sourcepropriedade 
source:String  [ler-escrever]

Relative path and filename of the FLV file to stream.

Essa propriedade pode ser usada como a fonte para a união de dados.


Implementação
    public function get source():String
    public function set source(value:String):void
statepropriedade 
state:String  [leitura-somente]

The current state of the VideoDisplay control. You set this property by calls to the load(), play(), stop(), and pause() methods, and setting the playHeadTime property.

This property can have the following values defined in the VideoEvent class: VideoEvent.BUFFERING, VideoEvent.CONNECTION_ERROR, VideoEvent.DISCONNECTED, VideoEvent.EXEC_QUEUED_CMD, VideoEvent.LOADING, VideoEvent.PAUSED, VideoEvent.PLAYING, VideoEvent.RESIZING, VideoEvent.REWINDING, VideoEvent.SEEKING, and VideoEvent.STOPPED.

O valor padrão é VideoEvent.DISCONNECTED.

Essa propriedade pode ser usada como a fonte para a união de dados.


Implementação
    public function get state():String

Ver também

stateResponsivepropriedade 
stateResponsive:Boolean  [leitura-somente]

Specifies whether the VideoDisplay control is in a responsive state, true, or in the unresponsive state, false. The control enters the unresponsive state when video is being loaded or is rewinding.

The control is also in a responsive state when the state property is: VideoEvent.CONNECTION_ERROR, VideoEvent.EXEC_QUEUED_CMD, VideoEvent.RESIZING, or VideoEvent.SEEKING.

If the control is unresponsive, calls to the play(), load(), stop(), and pause() methods are queued, and then executed when the control changes to the responsive state.

Essa propriedade pode ser usada como a fonte para a união de dados.


Implementação
    public function get stateResponsive():Boolean
totalTimepropriedade 
totalTime:Number  [ler-escrever]

Total length of the media, in seconds. For FLV 1.0 video files, you manually set this property. For FLV 1.1 and later, the control calculates this value automatically.

Essa propriedade pode ser usada como a fonte para a união de dados.


Implementação
    public function get totalTime():Number
    public function set totalTime(value:Number):void
videoHeightpropriedade 
videoHeight:int  [leitura-somente]

Height of the loaded FLV file. -1 if no FLV file loaded yet.

Essa propriedade pode ser usada como a fonte para a união de dados.


Implementação
    public function get videoHeight():int
videoWidthpropriedade 
videoWidth:int  [leitura-somente]

Width of the loaded FLV file. -1 if no FLV file loaded yet.

Essa propriedade pode ser usada como a fonte para a união de dados.


Implementação
    public function get videoWidth():int
volumepropriedade 
volume:Number  [ler-escrever]

The volume level, specified as an value between 0 and 1.

O valor padrão é 0.75.

Essa propriedade pode ser usada como a fonte para a união de dados.


Implementação
    public function get volume():Number
    public function set volume(value:Number):void
Detalhe do Construtor
VideoDisplay()Construtor
public function VideoDisplay()

Constructor.

Detalhe do Método
attachCamera()método
public function attachCamera(camera:Camera):void

Specifies to play a video stream from a camera. The video is displayed within the boundaries of the control in the application window. Do not call the play() method when displaying a stream from a camera.

Parâmetros

camera:Camera — A Camera object that is capturing video data.

close()método 
public function close():void

Forces the close of an input stream and connection to Flash Media Server. Calling this method dispatches the close event. Typically calling this method directly is not necessary because the connection is automatically closed when the idle period times out, as defined by the idleTimeout property.

createBorder()método 
protected function createBorder():void

Cria a borda para esse componente. Normally the border is determined by the borderStyle and borderSkin styles. It must set the border property to the instance of the border.

layoutChrome()método 
protected function layoutChrome(unscaledWidth:Number, unscaledHeight:Number):void

Responds to size changes by setting the positions and sizes of the borders.

The VideoDisplay.layoutChrome() method sets the position and size of the VideoDisplay's border. In every subclass of VideoDisplay, the subclass's layoutChrome() method should call the super.layoutChrome() method, so that the border is positioned properly.

Parâmetros

unscaledWidth:Number — Especifica a largura do componente, em pixels, nas coordenadas do componente, independente do valor da propriedade scaleX do componente.
 
unscaledHeight:Number — Especifica a altura do componente, em pixels, nas coordenadas do componente, independente do valor da propriedade scaleY do componente.

load()método 
public function load():void

Loads the media file without playing it.

This method is similar to the play() method, but it causes the file to be loaded without playing. Autoresizing will occur if appropriate. After the load and autoresize, the state of the control is set to VideoEvent.PAUSED.

pause()método 
public function pause():void

Pauses playback without moving the playhead. If playback is already is paused or is stopped, this method has no effect.

To start playback again, call the play() method.

If the control is in an unresponsive state, the request is queued.

play()método 
public function play():void

Plays the media file. If the file has not been loaded, it loads it. You can call this method while playback is paused, stopped, or while the control is playing.

If the control is in an unresponsive state, the request is queued.

To stream video from a camera, call the attachCamera() method, instead of the play() method.

stop()método 
public function stop():void

Stops playback. If the autoRewind property is set to true, rewind to the first frame.

To start playback again, call the play() method.

If playback is already stopped, this method has no effect. If the control is in an unresponsive state, the request is queued.

Detalhe do Evento
close Evento
Event Object Type: mx.events.VideoEvent
VideoEvent.type property = mx.events.VideoEvent.CLOSE

Dispatched when the NetConnection object is closed, whether by timing out or by calling the close() method. You use this event when working with Flash Media Server.

The VideoEvent.CLOSE constant defines the value of the type property of the event object for a close event.

As propriedades do objeto de evento tem os seguintes valores:

PropriedadeValor
bubblesfalse
cancelablefalse
currentTargetO Object que define o event listener que cuida do evento. Por exemplo, se você usar o myButton.addEventListener() para registrar um event listener, myButton é o valor do currentTarget.
playheadTimeThe location of the playhead when the event occurs.
stateThe value of the VideoDisplay.state property when the event occurs.
stateResponsiveThe value of the VideoDisplay.stateResponsive property when the event occurs.
targetO Object que despachou o evento; nem sempre é o Object que escuta pelo evento. Use a propriedade currentTarget para sempre acessar o Objeto que faz a escuta pelo evento.
complete Evento  
Event Object Type: mx.events.VideoEvent
VideoEvent.type property = mx.events.VideoEvent.COMPLETE

Dispatched when the playhead reaches the end of the FLV file.

The VideoEvent.COMPLETE constant defines the value of the type property of the event object for a complete event.

As propriedades do objeto de evento tem os seguintes valores:

PropriedadeValor
bubblesfalse
cancelablefalse
currentTargetO Object que define o event listener que cuida do evento. Por exemplo, se você usar o myButton.addEventListener() para registrar um event listener, myButton é o valor do currentTarget.
playheadTimeThe location of the playhead when the event occurs.
stateThe value of the VideoDisplay.state property when the event occurs.
stateResponsiveThe value of the VideoDisplay.stateResponsive property when the event occurs.
targetO Object que despachou o evento; nem sempre é o Object que escuta pelo evento. Use a propriedade currentTarget para sempre acessar o Objeto que faz a escuta pelo evento.
cuePoint Evento  
Event Object Type: mx.events.CuePointEvent
CuePointEvent.type property = mx.events.CuePointEvent.CUE_POINT

Dispatched when the value of a cue point's time property is equal to the current playhead location.

The CuePointEvent.CUE_POINT constant defines the value of the type property of the event object for a cuePoint event.

As propriedades do objeto de evento tem os seguintes valores:

PropriedadeValor
bubblesfalse
cancelablefalse
cuePointNameO nome do cue point.
cuePointTimeThe time of the cue point, in seconds.
cuePointTypeThe string "actionscript".
currentTargetO Object que define o event listener que cuida do evento. Por exemplo, se você usar o myButton.addEventListener() para registrar um event listener, myButton é o valor do currentTarget.
targetO Object que despachou o evento; nem sempre é o Object que escuta pelo evento. Use a propriedade currentTarget para sempre acessar o Objeto que faz a escuta pelo evento.
metadataReceived Evento  
Event Object Type: mx.events.MetadataEvent
MetadataEvent.type property = mx.events.MetadataEvent.METADATA_RECEIVED

Dispatched the first time metadata in the FLV file is reached.

The MetadataEvent.METADATA_RECEIVED constant defines the value of the type property for a metadataReceived event.

This event has the following properties:

PropriedadeValor
bubblesfalse
cancelablefalse; there is no default behavior to cancel.
currentTargetO Object que define o event listener que cuida do evento. Por exemplo, se você usar o myButton.addEventListener() para registrar um event listener, myButton é o valor do currentTarget.
infoAn object describing the FLV file, including any cue points. This property contains the same information as the VideoDisplay.metadata property. See the VideoDisplay.metadata property for more information.
targetO Object que despachou o evento; nem sempre é o Object que escuta pelo evento. Use a propriedade currentTarget para sempre acessar o Objeto que faz a escuta pelo evento.
vpThe index of the VideoPlayer object.
playheadUpdate Evento  
Event Object Type: mx.events.VideoEvent
VideoEvent.type property = mx.events.VideoEvent.PLAYHEAD_UPDATE

Dispatched continuosly while the video is playing. The interval between events, in milliseconds, is specified by the playheadUpdateInterval property, which defaults to 250 ms. This event is not dispatched when the video is in a paused or stopped state.

The VideoEvent.PLAYHEAD_UPDATE constant defines the value of the type property of the event object for a playheadUpdate event.

As propriedades do objeto de evento tem os seguintes valores:

PropriedadeValor
bubblesfalse
cancelablefalse
currentTargetO Object que define o event listener que cuida do evento. Por exemplo, se você usar o myButton.addEventListener() para registrar um event listener, myButton é o valor do currentTarget.
playheadTimeThe location of the playhead when the event occurs.
stateThe value of the VideoDisplay.state property when the event occurs.
stateResponsiveThe value of the VideoDisplay.stateResponsive property when the event occurs.
targetO Object que despachou o evento; nem sempre é o Object que escuta pelo evento. Use a propriedade currentTarget para sempre acessar o Objeto que faz a escuta pelo evento.
progress Evento  
Event Object Type: flash.events.ProgressEvent
ProgressEvent.type property = flash.events.ProgressEvent.PROGRESS

Dispatched continuously until the FLV file has downloaded completely.

You can use this event to check the number of bytes loaded or the number of bytes in the buffer. This event starts getting dispatched when the load() or play() method is called first and ends when all bytes are loaded or if there is a network error.

Defines the value of the type property of a progress event object.

This event has the following properties:

PropriedadeValor
bubblesfalse
bytesLoadedThe number of items or bytes loaded at the time the listener processes the event.
bytesTotalThe total number of items or bytes that ultimately will be loaded if the loading process succeeds.
cancelablefalse; there is no default behavior to cancel.
currentTargetO objeto que está ativamente processando o objeto Event com um event listener.
targetThe object reporting progress.
ready Evento  
Event Object Type: mx.events.VideoEvent
VideoEvent.type property = mx.events.VideoEvent.READY

Dispatched when the FLV file is loaded and ready to play.

This event is dispatched the first time the VideoDisplay control enters a responsive state after a new FLV file is loaded by the load() or play() method. It is dispatched only once for each FLV file loaded.

The VideoEvent.READY constant defines the value of the type property of the event object for a ready event.

As propriedades do objeto de evento tem os seguintes valores:

PropriedadeValor
bubblesfalse
cancelablefalse
currentTargetO Object que define o event listener que cuida do evento. Por exemplo, se você usar o myButton.addEventListener() para registrar um event listener, myButton é o valor do currentTarget.
playheadTimeThe location of the playhead when the event occurs.
stateThe value of the VideoDisplay.state property when the event occurs.
stateResponsiveThe value of the VideoDisplay.stateResponsive property when the event occurs.
targetO Object que despachou o evento; nem sempre é o Object que escuta pelo evento. Use a propriedade currentTarget para sempre acessar o Objeto que faz a escuta pelo evento.
rewind Evento  
Event Object Type: mx.events.VideoEvent
VideoEvent.type property = mx.events.VideoEvent.REWIND

Dispatched when the control autorewinds.

The VideoEvent.REWIND constant defines the value of the type property of the event object for a rewind event.

As propriedades do objeto de evento tem os seguintes valores:

PropriedadeValor
bubblesfalse
cancelablefalse
currentTargetO Object que define o event listener que cuida do evento. Por exemplo, se você usar o myButton.addEventListener() para registrar um event listener, myButton é o valor do currentTarget.
playheadTimeThe location of the playhead when the event occurs.
stateThe value of the VideoDisplay.state property when the event occurs.
stateResponsiveThe value of the VideoDisplay.stateResponsive property when the event occurs.
targetO Object que despachou o evento; nem sempre é o Object que escuta pelo evento. Use a propriedade currentTarget para sempre acessar o Objeto que faz a escuta pelo evento.

Ver também

stateChange Evento  
Event Object Type: mx.events.VideoEvent
VideoEvent.type property = mx.events.VideoEvent.STATE_CHANGE

Dispatched when the state of the control changes.

You can use this event to track when playback enters and leaves the unresponsive state (for example, in the middle of connecting, resizing, or rewinding), during which time calls to the play(), pause(), and stop() methods and writes to the playHeadTime property are queued, and then executed when the player enters the responsive state.

The VideoEvent.STATE_CHANGE constant defines the value of the type property of the event object for a stateChange event.

As propriedades do objeto de evento tem os seguintes valores:

PropriedadeValor
bubblesfalse
cancelablefalse
currentTargetO Object que define o event listener que cuida do evento. Por exemplo, se você usar o myButton.addEventListener() para registrar um event listener, myButton é o valor do currentTarget.
playheadTimeThe location of the playhead when the event occurs.
stateThe value of the VideoDisplay.state property when the event occurs.
stateResponsiveThe value of the VideoDisplay.stateResponsive property when the event occurs.
targetO Object que despachou o evento; nem sempre é o Object que escuta pelo evento. Use a propriedade currentTarget para sempre acessar o Objeto que faz a escuta pelo evento.
Exemplos Como usar exemplos
VideoDisplayExample.mxml
<?xml version="1.0"?>
<!-- Simple example to demonstrate the VideoDisplay control. -->
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml">

    <mx:Panel title="VideoDisplay Control Example" height="75%" width="75%" 
        horizontalAlign="center" 
        paddingTop="10" paddingLeft="10" paddingRight="10" paddingBottom="10">

       <mx:Text width="75%" color="blue"
           text="Use the buttons to control the video. The Stop button resets the video to the beginning."/>

        <mx:VideoDisplay id="myVid" height="158" width="211" source="assets/phone.flv" autoPlay="false"/>

        <mx:HBox>
            <mx:Button label="Play" click="myVid.play();"/>
            <mx:Button label="Pause" click="myVid.pause();"/>
            <mx:Button label="Stop" click="myVid.stop();"/>
        </mx:HBox>

    </mx:Panel>
</mx:Application>