1 Reply Latest reply on Nov 3, 2013 3:46 AM by Dave Merchant

    Handling 3d objects using JavaScript™ for Acrobat® 3D Annotations API

    anncwo

      I am trying to learn how to handle 3d objects with this manual: http://www.adobe.com/content/dam/Adobe/en/devnet/acrobat/pdfs/js_3d_api_reference.pdf

       

      When I execute some code, for example,

       

       

      myTimeHandler= new TimeEventHandler();
      myTimeHandler.onEvent= function( event )
      {
      console.print( "Current simulation time is:" + event.time );
      console.print( " second(s)" );
      }
      runtime.addEventHandler( myTimeHandler );
      

      I get an error like this:

      TimeEventHandler is not defined
      

      Why?

      P.S. I have 3d object in the document, and can get it with function getAnnots3D.