如果我暂停整个Flash对象(EG,swfobject.getObjectById(' Object')。StopPlay();)是否有一个我可以在Flash中捕获的事件告诉我这是什么时候发生的?
答案 0 :(得分:0)
AFAIK there is no special Event
to listen for that.
But you could use ExternalInterface
to do that. Just register a javascriptToActionscriptCall and call it from JS:
import flash.external.ExternalInterface;
ExternalInterface.addCallback("sendStopStatusToAS", callStopFromJavaScript);
function callStopFromJavaScript():void {
trace("SWF stopped by JS");
}
swfobject.getObjectById('Object').StopPlay();
swfobject.getObjectById('Object').sendStopStatusToAS();
Greetings