NetStream class
89
Example
The following example displays a string (inside a text field named
connectionQuality_str
)
indicating the connection quality over the NetStream object named
my_ns
, according to the
value of the
liveDelay
property.
if (my_ns.liveDelay < .5) {
connectionQuality_str.text = "Good";
} else if (my_ns.liveDelay < 1) {
connectionQuality_str.text = "Slow";
} else {
connectionQuality_str.text = "Network congested";
}
NetStream.onCuePoint
Availability
■
Flash Player 8.
■
Flash Media Server 2.
Usage
public onCuePoint = function(
infoObject
:Object) {}
Parameters
infoObject
An object with the following properties:
Property
Description
name
The name given to the cue point when it was embedded in the FLV
file.
time
The time in seconds at which the cue point occurred in the video
file during playback.
type
The type of cue point that was reached: either “navigation” or
“event”.
parameters
An associative array of name/value pair strings specified for this
cue point. Any valid string can be used for the parameter name or
value.