0 Replies Latest reply on Sep 9, 2015 3:33 AM by miligramd16439256

    I'm no coder so I need to add extra events in EA CC 2015 so, when loading a external JS (ex Hammer js) file how do we call it's functions, and after publishing can I integrate in a DPS using Import Article?

    miligramd16439256

      Is it necessary any code placed in creationComplete to be able to call it's event's?

       

      I've been trying this code and then publish t and import the html article to Indesign Folio, but the swipe u and down don't work.

       

       

      yepnope({

          nope:['edge_includes/hammer.js'] ,

          complete: init

      });

       

       

      function init (){

       

       

         var element = sym.element[0];

         var hammer = Hammer(element);

       

       

         hammer.on("swipeup", function(event) {

              sym.play(0);

         });

       

       

         hammer.on("swipedown", function(event) {

              sym.play(0);

         });

      }

       

       

      What my I be doing wrong?