主题:  关于在网页上播放flash声音

night_5d

职务:普通成员
等级:2
金币:1.0
发贴:275
注册:2000/12/15 21:24:38
#12002/9/28 11:47:20
我再flash中作的控制声音播放的文件,引用到网页中为什么不管用,只能停止不能播放。可是单独运行是可以使用。
下面是我控制的源代码:

frameAction

mySound=new sound();
mySound.attachSound("01.mp3");
mySound.start();
_root.curState=1;

play

on (release){
    if (_root.curState==0){
    mySound.start(_root.myTime/1000);
    _root.curState=1;
    }    
}

stop

on (release){
mySound.stop();
myTime=0;
_root.curState=0
}



[img]http://61.144.28.245/hjc/web/non-cgi//usravatars/paladin.gif[/img]
I thirst for freedom