■ 外部FLVファイルに関する様々な情報を調べるには
//メインタイムラインのフレームアクション
this._nc
= new NetConnection();
this._nc.connect(null);
this._ns = new NetStream(this._nc);
this.onEnterFrame = function(){
this.rate_txt.text =
this._ns.currentFps + " fps";
this.sec_txt.text = this._ns.time
+ " sec";
};
this._ns.onStatus = function(infoObject)
{
if (infoObject.code == "NetStream.Play.Stop")
{
this.seek(0);
}else if (infoObject.code
== "NetStream.Buffer.Full")
{
flvsize_txt.text = _video.width
+ " × " + _video.height;
videosize_txt.text =
_video._width + " × " +
_video._height;
}
};
this._video.attachVideo(this._ns);
this._ns.play("video01.flv");

