好些网友PM我问:“要是不用组件怎么控制.flv 的音量呢?”
其实都很简单的,跟控制MP3音量都是一箩子的事~
var nc:NetConnection = new NetConnection();
nc.connect(null);
var ns:NetStream = new NetStream(nc);
myVideo.attachVideo(ns);
ns.play("myVideo.flv");
//创建一实例MC获取myVideo.flv的声音
_root.creatEmptyMovieClip("Soundmc", _root.getNextHighestDepth());
Soundmc.attachAudio(ns);
var VideoS:Sound = new Sound(Soundmc);
//设置声音大小
VideoS.setVolume(50);
posted on 2006-05-30 15:26
blog搬家了--[www.ialway.com/blog] 阅读(504)
评论(0) 编辑 收藏 所属分类:
FMS