#12002/3/10 20:41:54
FLASH MX AS解答疑问--2
Sound.prototype.atcPLay=function(id,loop){this.attachSound(id);this.start();if(loop)this.onSoundComplete=this.start};
mxSnd=new Sound();
是新建立一个SOUND的涵数
mxSnd.atcPlay("sound1",true);
mxSnd.atcPlay("sound1",true);
Sound.prototype.atcPLay=function(id,loop){this.attachSound(id);this.start();if(loop)this.onSoundComplete=this.start};
以上2句AS是什么意思呢?
prototype是什么意思如何使用,作用是什么呢?
可以将Sound.prototype.atcPLay=function(id,loop){this.attachSound(id);this.start();if(loop)this.onSoundComplete=this.start};
一个一个解释一下吗?
是什么意思呢???
谢谢
好象在FALSH MX中没有声音面版了!要使声音循环只有那样作吗???
onSoundComplete事件发生在声音结束时,这时,只要把start方法作为处理函数即可实现无限循环。
这句话是什么意思呢?
具体解释一下好吗
谢谢
最好作个例子!
mxSnd.duration
mxSnd.position
这2个参数是什么意思呢?
一个是声音的总的长度吗?
还有一个是当前播放的长度吗?
但是我测试时duration它是固定的啊!
我作了循环也是固定的!什么原因呢?