Play/Pause/Replay slides - How to make this work!

Hello All,

I have developed a custom shell to be used in Articulate published courses (using Presenter SDK) My next task is to add a toggle play/pause/replay button I am able to add a toggle play/pause button but I am not getting how to implement the replay button I am not able to make when does my slide ends I want this functionality to work irrespective of any type of slide i e PPT SWF, engage or anything

- Can some body tell me any parameter which tells us that the slide has finished diaplaying and reached its end and so teh toggle play/pause button then can be converted to repla button

- Also If I have embedded a SWf in PPT then how can I calculate if it has finished displaying

Thanks in advance for your kind consideration!

As ever,

VK

4 Replies
David Burton

Vinayak,

>Can some body tell me any parameter which tells us that the slide has finished diaplaying and reached its end and so teh toggle play/pause button then can be converted to repla button

 - You will have to calculate the current slide time and determine if this has been reached using the following API calls:

ArtAPI GetCurrentSlide() --> Returns the index of the currently displayed slide
ArtAPI GetSlideInfo(nSlideNum) --> where oSlideInfo nSlideTime is equal to the nSlideNum slide duration

ArtAPI GetCurrentSlideTime() --> Returns the current position in seconds within the slide

Once you have obtained and stored the above data into variables, just compare oSlideInfo nSlideTime and the ArtAPI GetCurrentSlideTime()

Note: the above API calls are included in the Presenter SDK documentation

>Also If I have embedded a SWf in PPT then how can I calculate if it has finished displaying

 - This is would be a bit tricky especially when the movie inserted into the Presenter player is set to play independently of the player; this in effect creates a separate timeline where you would have to calculate total frames and current frame for the movie level being referenced

To identify the movie level of your inserted Movie, create a simple AS2 0 movie with a text box instance name of 'myPath' and the following code on the first frame When inserted into Presenter, published and played back, the text box will update with the movie level

// get movie level for inserted swf
myPath text = this;

I hope this helps get you pointed in the right direction