在AS3中,NetStream类有这样一个属性:soundTransform,可以用来控制FLV的声音,其实现为:
实现
public function get soundTransform():SoundTransform
public function set soundTransform(value:SoundTransform):void
SoundTransform类又有个volume属性,于是想是不是直接这样写就行了:
var volumeSize:Number = 0.2;
ns.soundTransform.volume = volumeSize;
结果丫的没任何反应……莫非必须重新为ns指定一个soundTransform对象?于是改成这样:
var volumeSize:Number = 0.2;
var st:SoundTransform = new SoundTransform(volumeSize,0);
ns.soundTransform = st;
这样就木有问题了。
LD CO.,LTD is tile supplier,supply:kitchen quartz countertop,artificial marble,mosaic tile,glass mosaic tile,Porcelain tiles,polished tiles,wall tiles,floor tile.
LD CO.,LTD is tile supplier,supply:kitchen quartz countertop,artificial marble,mosaic tile,glass mosaic tile,Porcelain tiles,polished tiles,wall tiles,floor tile.
http://www.yhcorp.cn
寫的正好,感謝你