在Adobe Captivate的播放/暂停状态 [英] Play/Pause status in Adobe Captivate

查看:347
本文介绍了在Adobe Captivate的播放/暂停状态的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是新来的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;
}

这篇关于在Adobe Captivate的播放/暂停状态的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆