禁止播放flash的声音。(100分)

  • 主题发起人 coolbaby
  • 开始时间
我要晕了,还没人会
 
拔了你的声卡上的声音输出上的线一定要以达到你所要求的结果。:)
 
晕倒,算了,
都是胡扯的
还是靠自己吧
 
relplay好象本身就播放不了带声音的FLASH即使有也变成无声的了,
 
请问一下,有谁能告诉我shockwaveflash控件在那可以找到,谢谢
 
请问我乍么在播放FLASH时,要更改别的FLASH乍么没用?谢谢
 
有用呀,更改.movie属性就可以了
 
waiting...
 
提前,稍微能给点思路的就给分
请看清帖子再回答
 
  
只是提个思路:
 Flash内部有声音对象,用声音对象的Stop方法可以停止播放,用SetVolume方法可以设置
音量,还有个命令StopAllSound可以关闭整个Flash的声音。假如 TShockWafeFlash 可以向
Flash发送命令,你就可以用Delphi控制静音了。
 
问题是TShockWafeFlash好像不支持向Flash发送命令
俺有一个想法不知道可不可以:通过系统API把flash.ocx的声音输出关上!
如果可行,水知道怎么作!
 
maybe you can find the key below:

in FAction.h, there are two classes named "HFActionStop" and "FActionStopSounds".
Actually "FActionStopSounds" inherits from "HFActionStop" which defines a
high-level Stop action. "FActionStopSounds" is An action that stops playing all
sounds in movie.The following are their defines.I wish it be useful for you.

FActionStopSounds::FActionStopSounds () [inline]

virtual void FActionStopSounds::WriteToSWFStream (FSWFStream * _SWFStream) [inline, virtual]

Writes the object out to a FSWFStream.

Parameters:
_SWFStream - any FSWFStream pointer, though usually the FSWFStream given as an argument to the appendTag function of the FSWFStream representing the .swf file being created

****************************************
void HFActionStop::AddToActionCondition (FActionCondition * ac) [virtual]

void HFActionStop::AddToAction (FCTDoAction *do
Action) [virtual]


OK~~ If you need more info ,just check Flash File Format SDK.you could obtain it
from Offical support website of Macromedia.
 
用fscommand发一个禁音命令
 
to taozhiyu:
能不能把你摘的全文贴出来,谢谢
好像有点用
to 笑面虎:
TShockWafeFlash 可以向flash发 FSCommand么?
如果可以,知道怎么做么,谢谢
 
Tshockwave控件不行的.我指的用action方法发stopallsound命令,请参阅flash sdk
 
那你的意思是必须修改swf文件,
才可以做到播放一个swf文件时,不播放它的声音?
 
就是另存一个播放没声音的flash?
是这意思么?
笑面虎, 请回答
 
顶部