Packageflash.net
Classpublic dynamic class NetStreamPlayOptions
InheritanceNetStreamPlayOptions Inheritance EventDispatcher Inheritance Object

The NetStreamPlayOptions class specifies the various options that could be passed to the NetStream.play2 call. Its passed in as the argument to the call and the options specified through the various properties of the class



Public Properties
 PropertyDefined By
 Inheritedconstructor : Object
A reference to the class object or constructor function for a given object instance.
Object
  len : Number
Specified the length in seconds the streamName should play.
NetStreamPlayOptions
  oldStreamName : String
Specifies the name of the stream to play to transition from to streamName When NetStream.play2 is used to simply play a stream, this should either be null or undefined otherwise this should specify the stream that needs to be transitioned to streamNamedynamically
NetStreamPlayOptions
 Inheritedprototype : Object
[static] A reference to the prototype object of a class or function object.
Object
  start : Number
Specified the time in seconds the <streamName> should start from with the NetStream.play2() call.
NetStreamPlayOptions
  streamName : String
Specifies the name of the stream to play or transition to.
NetStreamPlayOptions
  transition : String
Specifies the mode in which the streamName is played or transitioned to.
NetStreamPlayOptions
Public Methods
 MethodDefined By
  
Create a new instance to specify the options to be passed to the NetStream.play2 command.
NetStreamPlayOptions
 Inherited
addEventListener(type:String, listener:Function, useCapture:Boolean = false, priority:int = 0, useWeakReference:Boolean = false):void
Registers an event listener object with an EventDispatcher object so that the listener receives notification of an event.
EventDispatcher
 Inherited
Dispatches an event into the event flow.
EventDispatcher
 Inherited
Checks whether the EventDispatcher object has any listeners registered for a specific type of event.
EventDispatcher
 Inherited
Indicates whether an object has a specified property defined.
Object
 Inherited
Indicates whether an instance of the Object class is in the prototype chain of the object specified as the parameter.
Object
 Inherited
Indicates whether the specified property exists and is enumerable.
Object
 Inherited
removeEventListener(type:String, listener:Function, useCapture:Boolean = false):void
Removes a listener from the EventDispatcher object.
EventDispatcher
 Inherited
Sets the availability of a dynamic property for loop operations.
Object
 Inherited
Returns the string representation of the specified object.
Object
 Inherited
Returns the primitive value of the specified object.
Object
 Inherited
Checks whether an event listener is registered with this EventDispatcher object or any of its ancestors for the specified event type.
EventDispatcher
Events
 Event Summary Defined By
 InheritedDispatched when Flash Player gains operating system focus and becomes active.EventDispatcher
 InheritedDispatched when Flash Player loses operating system focus and is becoming inactive.EventDispatcher
Property Detail
lenproperty
public var len:Number

Language Version : ActionScript 3.0
Player Version : Flash Player 10

Specified the length in seconds the streamName should play. A default value of -1 would make it play the full length of the streamName and follows the same rules as defined by the start parameter for the NetStream.play() call

See also

oldStreamNameproperty 
public var oldStreamName:String

Language Version : ActionScript 3.0
Player Version : Flash Player 10

Specifies the name of the stream to play to transition from to streamName When NetStream.play2 is used to simply play a stream, this should either be null or undefined otherwise this should specify the stream that needs to be transitioned to streamNamedynamically

See also

startproperty 
public var start:Number

Language Version : ActionScript 3.0
Player Version : Flash Player 10

Specified the time in seconds the <streamName> should start from with the NetStream.play2() call. A default value of 0 makes it start from the beginning and follows the same rules as defined by the start parameter for the NetStream.play() call

See also

streamNameproperty 
public var streamName:String

Language Version : ActionScript 3.0
Player Version : Flash Player 10

Specifies the name of the stream to play or transition to. When oldStreamName is null or undefined NetStream.play2()plays this stream. If oldStreamName is specified then NetStream.play2() would transition oldStreamName to this stream in a transition mode as specified in the transition property

See also

transitionproperty 
public var transition:String

Language Version : ActionScript 3.0
Player Version : Flash Player 10

Specifies the mode in which the streamName is played or transitioned to. It can take values as specified in the NetStreamPlayTansitions class. Again depending on whether Netstream.play2() is called to play or transition a stream, these values would cause different behaviors. For more descriptions on the various transition modes see the NetStreamPlayTransitions class

See also

Constructor Detail
NetStreamPlayOptions()Constructor
public function NetStreamPlayOptions()

Language Version : ActionScript 3.0
Player Version : Flash Player 10

Create a new instance to specify the options to be passed to the NetStream.play2 command.