Guida di riferimento di ActionScript® 3.0 per la piattaforma Adobe® Flash®
Home  |  Nascondi elenco pacchetti e classi |  Pacchetti  |  Classi  |  Novità  |  Indice  |  Appendici  |  Perché in inglese?
Filtri: Recupero dati dal server...
Recupero dati dal server...
org.osmf.events 

PlayEvent  - AS3 OSMF

Pacchettoorg.osmf.events
Classepublic class PlayEvent
EreditarietàPlayEvent Inheritance Event Inheritance Object

Versione linguaggio: ActionScript 3.0
Versione prodotto: OSMF 1.0
Versioni runtime: Flash Player 10, AIR 1.5

A PlayEvent is dispatched when the properties of a PlayTrait change.



Proprietà pubbliche
 ProprietàDefinito da
 Inheritedbubbles : Boolean
[sola lettura] Indica se un evento è un evento di bubbling.
Event
 Inheritedcancelable : Boolean
[sola lettura] Indica se il comportamento associato all'evento può essere impedito.
Event
  canPause : Boolean
[sola lettura] New canPause state of the PlayTrait.
PlayEvent
 Inheritedconstructor : Object
Un riferimento all'oggetto classe o alla funzione di costruzione per una determinata istanza di oggetto.
Object
 InheritedcurrentTarget : Object
[sola lettura] L'oggetto che elabora attivamente l'oggetto Event con un listener di eventi.
Event
 InheritedeventPhase : uint
[sola lettura] La fase attuale del flusso di eventi.
Event
  playState : String
[sola lettura] New PlayState of the PlayTrait.
PlayEvent
 Inheritedtarget : Object
[sola lettura] Il target dell'evento.
Event
 Inheritedtype : String
[sola lettura] Il tipo di evento.
Event
Metodi pubblici
 MetodoDefinito da
  
PlayEvent(type:String, bubbles:Boolean = false, cancelable:Boolean = false, playState:String = null, canPause:Boolean = false)
Constructor.
PlayEvent
 Inherited
Duplica un'istanza di una sottoclasse Event.
Event
 Inherited
formatToString(className:String, ... arguments):String
Una funzione dell'utilità per l'implementazione del metodo toString() in classi Event ActionScript 3.0 personalizzate.
Event
 Inherited
Indica se per un oggetto è definita una proprietà specifica.
Object
 Inherited
Verifica se sull'evento è stato chiamato il metodo preventDefault().
Event
 Inherited
Indica se un'istanza della classe Object si trova nella catena di prototipi dell'oggetto specificato come parametro.
Object
 Inherited
Annulla il comportamento predefinito di un evento se tale comportamento può essere annullato.
Event
 Inherited
Indica se la proprietà specificata esiste ed è enumerabile.
Object
 Inherited
Imposta la disponibilità di una proprietà dinamica per le operazioni cicliche.
Object
 Inherited
Impedisce l'elaborazione di tutti i listener di eventi nel nodo corrente e in tutti i nodi successivi del flusso di eventi.
Event
 Inherited
Impedisce l'elaborazione di tutti i listener di eventi nei nodi del flusso di eventi successivi a quello corrente.
Event
 Inherited
Restituisce la rappresentazione in formato stringa di questo oggetto, formattato in base alle convenzioni specifiche per le versioni localizzate.
Object
 Inherited
Restituisce una stringa che contiene tutte le proprietà dell'oggetto Event.
Event
 Inherited
Restituisce il valore di base dell'oggetto specificato.
Object
Costanti pubbliche
 CostanteDefinito da
  CAN_PAUSE_CHANGE : String = "canPauseChange"
[statico] The PlayEvent.CAN_PAUSE_CHANGE constant defines the value of the type property of the event object for a canPauseChange event.
PlayEvent
  LIVE_RESUME : String = "liveResume"
[statico] The PlayEvent.LIVE_RESUME constant defines the value of the type property of the event object for a liveResume event. Dispatched when playback resumes after a live stall
PlayEvent
  LIVE_STALL : String = "liveStall"
[statico] The PlayEvent.LIVE_STALL constant defines the value of the type property of the event object for a liveStall event. Dispatched when playback runs out of content for a live stream but the stream is not done.
PlayEvent
  PLAY_STATE_CHANGE : String = "playStateChange"
[statico] The PlayEvent.PLAY_STATE_CHANGE constant defines the value of the type property of the event object for a playStateChange event.
PlayEvent
Descrizione delle proprietà

canPause

proprietà
canPause:Boolean  [sola lettura]

Versione linguaggio: ActionScript 3.0
Versione prodotto: OSMF 1.0
Versioni runtime: Flash Player 10, AIR 1.5

New canPause state of the PlayTrait.



Implementazione
    public function get canPause():Boolean

playState

proprietà 
playState:String  [sola lettura]

Versione linguaggio: ActionScript 3.0
Versione prodotto: OSMF 1.0
Versioni runtime: Flash Player 10, AIR 1.5

New PlayState of the PlayTrait.



Implementazione
    public function get playState():String
Descrizione della funzione di costruzione

PlayEvent

()Funzione di costruzione
public function PlayEvent(type:String, bubbles:Boolean = false, cancelable:Boolean = false, playState:String = null, canPause:Boolean = false)

Versione linguaggio: ActionScript 3.0
Versione prodotto: OSMF 1.0
Versioni runtime: Flash Player 10, AIR 1.5

Constructor.

Parametri
type:String — Event type.
 
bubbles:Boolean (default = false) — Specifies whether the event can bubble up the display list hierarchy.
 
cancelable:Boolean (default = false) — Specifies whether the behavior associated with the event can be prevented.
 
playState:String (default = null) — New PlayState of the PlayTrait.
 
canPause:Boolean (default = false) — New value of bytesLoaded or bytesTotal.
Descrizione delle costanti

CAN_PAUSE_CHANGE

Costante
public static const CAN_PAUSE_CHANGE:String = "canPauseChange"

Versione linguaggio: ActionScript 3.0
Versione prodotto: OSMF 1.0
Versioni runtime: Flash Player 10, AIR 1.5

The PlayEvent.CAN_PAUSE_CHANGE constant defines the value of the type property of the event object for a canPauseChange event.

LIVE_RESUME

Costante 
public static const LIVE_RESUME:String = "liveResume"

Versione linguaggio: ActionScript 3.0
Versione prodotto: OSMF 2.0
Versioni runtime: Flash Player 10, AIR 1.5

The PlayEvent.LIVE_RESUME constant defines the value of the type property of the event object for a liveResume event.

Dispatched when playback resumes after a live stall

LIVE_STALL

Costante 
public static const LIVE_STALL:String = "liveStall"

Versione linguaggio: ActionScript 3.0
Versione prodotto: OSMF 2.0
Versioni runtime: Flash Player 10, AIR 1.5

The PlayEvent.LIVE_STALL constant defines the value of the type property of the event object for a liveStall event.

Dispatched when playback runs out of content for a live stream but the stream is not done.

PLAY_STATE_CHANGE

Costante 
public static const PLAY_STATE_CHANGE:String = "playStateChange"

Versione linguaggio: ActionScript 3.0
Versione prodotto: OSMF 1.0
Versioni runtime: Flash Player 10, AIR 1.5

The PlayEvent.PLAY_STATE_CHANGE constant defines the value of the type property of the event object for a playStateChange event.





[ X ]Perché in inglese?
Il contenuto della Guida di riferimento di ActionScript 3.0 appare in inglese

Non tutte le parti della Guida di riferimento di ActionScript 3.0 sono tradotte in tutte le lingue. Quando un elemento del linguaggio non è tradotto, viene riportato in inglese. Ad esempio, la classe ga.controls.HelpBox non è tradotta in nessuna lingua. Pertanto, nella versione italiana della guida di riferimento, la descrizione della classe ga.controls.HelpBox è riportata in inglese.