Controlling Captivate Movies
Jim Leichliter just posted the information we have all been waiting for …
… on the Macromedia Authorware forum. I must confess that if I had taken the time to explore a Captivate movie I could have discivered this already, but … well Jim is obviously a better man than I.
Here’s what he had to say:-
In Authorware using the syntax:
CallSprite(@gotMovie, #GetVariable, "_root.rdinfoCurrentSlide")
Where “_root.” can be prefixed to these listed variables:
rdinfoFrameCount
rdinfoSlidesInProject
rdinfoFPS
rdinfocurrFrame
rdinfoCurrentFrame
rdinfoCurrentSlide
rdinfoCurrentSlideInProject
rdinfoSlideCount
rdIsMainMovie
________________________
rdcmndGotoFrame
rdcmndResume
rdcmndPause
rdcmndPrevious
rdcmndNext
rdcmndRewindAndStop
rdcmndRewindAndPlay
rdcmndGotoFrameAndResume
rdcmndNextSlide
rdcmndInfo
rdcmndExit
The rdcmnd can control the Captivate movie by using the SetVariable syntax and providing a 1 (true) or 0 (false). For Example:-
CallSprite(@gotMovie, #SetVariable, "_root.rdcmdResume", 1)
will resume the Captivate movie after it has been paused.
Nice one Jim!!
Hi Steve,
I need some help with this command. I´ve to migrate my script from AS2 to AS3, that I use to change the frame and load another swf. Here is:
addEventListener(Event.ENTER_FRAME, fncOnEnterFrame);
function fncOnEnterFrame(evt:Event):void{
if(mc.rdinfoCurrentSlide == (mc.rdinfoSlideCount – 1))
nextFrame();
removeEventListener(Event.ENTER_FRAME, fncOnEnterFrame);
}
The mc is the object in the stage. But it´s not working. Could you help me? Anyway, thanks.