創建一個空的影片剪輯並將其附加到舞臺上,我想要 僅使用actionscript 2播放flv。我聽到的是音頻,但沒有視頻。使用純動作播放視頻
import flash.display.*;
import flash.filters.*;
import flash.geom.*;
import flash.net.*;
import mx.utils.*;
import flash.external.ExternalInterface;
_root.createEmptyMovieClip("vidsurface",_root.getNextHighestDepth());
vidsurface.beginFill(0x000000, 100);
vidsurface.moveTo(0, 0);
vidsurface.lineTo(100, 0);
vidsurface.lineTo(100, 100);
vidsurface.lineTo(0,100);
vidsurface.lineTo(0,0);
vidsurface._visible=true;
var nc:NetConnection = new NetConnection();
nc.connect(null);
var ns:NetStream = new NetStream(nc);
vidsurface.attachVideo(ns);
ns.play("http://nicolasguy.free.fr/flv/cpe.flv");
ns.onStatus = function(info:Object)
{
trace("NetStream.onStatus called: ("+getTimer()+" ms)"+" "+info.code);
}
你是否從你的ns.onStatus中獲得了任何痕跡? – Neil