• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Delay an ActionScript operation--works on second instance, and subsequently, but not the first time

Explorer ,
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

Views

339

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
no replies

Have something to add?

Join the conversation