0
Delay an ActionScript operation--works on second instance, and subsequently, but not the first time
Explorer
,
/t5/acrobat-sdk-discussions/delay-an-actionscript-operation-works-on-second-instance-and-subsequently-but-not-the-first-time/td-p/10947506
Feb 25, 2020
Feb 25, 2020
Copy link to clipboard
Copied
The question suggests itself - "What is it you don't understand about initialization?"
Attached file demonstrates the Subject Line.
Thom set me straight on the ' marks. Gilad said my example works for him. It works for me, now, with the exception of the first execution. Which suggests I'm missing an initialization/activation construct? Here's the code:
//
var aRM = this.getAnnotsRichMedia(0); // var used to ID any Clip on first page (PDF document page# minus 1)
//
var rm = aRM[1]; // get rich media annot for Second Clip [RM List Position# minus 1]
//
if ( !rm.activated ) rm.activated=true; // activate the Clip-annot
//
//
app.setTimeOut ('rm.callAS("multimedia_play")', 2000 ); // Play Second Clip, after 2000 milliseconds
//
Insights solicited.
Thanks,
BR
TOPICS
Acrobat SDK and JavaScript
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more
Have something to add?
Join the conversation

