Skip to main content
Brian_Raila
Inspiring
February 26, 2020
Question

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

  • February 26, 2020
  • 0 replies
  • 498 views

 

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

 

This topic has been closed for replies.