在Adobe Captivate的播放/暂停状态状态、Adobe、Captivate

2023-09-08 13:59:27 作者:獨孤╭ァ終老,對妳壹心

我是新来的Captivate的软件,并寻找一些帮助吧。 我在做什么是播放/暂停小部件闪存和一切工作正常,直到有暂停时间后上的按钮设置或幻灯片暂停他们的结束。我花了很多时间试图找出如何接收有关更改的Captivate,当然播放/暂停状态通知。现在,我检查了这个状态,

I'm new to Captivate software and looking for some help with it. What am I doing is Play/Pause widget in Flash and everything works fine until there is Pause After time setting on buttons or slides pause at the end of them. I spent lots of time trying to find out how to receive notification about changing play/pause status of the captivate course. Now I'm checking this status with

playing = m_VariableHandle.rdcmndPause == 0;
//m_VariableHandle is movieHandle.getMovieProps().variablesHandle

code,但是,如果用户点击播放栏按钮或在我自己的按钮才有效。但是,如果幻灯片暂停在年底或某些按钮会导致它停止,然后 rdcmndPause 仍为0。

那么,有没有什么办法来检查,如果播放影片时,在任何时间点?还是我失去了一些东西?

So is there any way to check if movie is playing at any point of time? Or am I missing something?

在此先感谢!

推荐答案

好了,两个小时的挖掘,我找到了我一直在寻找后,我想。至少我已经找到了解决办法和它的作品。

Well, after two more hours of digging I've found what I was looking for, I think. At least I've found a workaround and it works.

在我的窗口小部件,我听 enterFrame 事件,并检查是否 rdinfoCurrentFrame 地产 variablesHandle 被改变。如果没有电影被暂停。而已。

In my widget I'm listening to enterFrame event and checking if rdinfoCurrentFrame property in variablesHandle is changed. If not the movie is paused. That's it.

if (m_VariableHandle)
{
    playing = m_VariableHandle.rdcmndPause == 0;
    if (playing && pFrame == m_VariableHandle.rdinfoCurrentFrame)
        playing = false;
    pFrame = m_VariableHandle.rdinfoCurrentFrame;
}