2 Replies Latest reply on Feb 4, 2015 7:16 AM by UUCMD

    Edge Commons and Spotlight issue.

    VVanWilde52 Level 1

      Hello,

      This question is for anyone familiar with the use of Edge Commons. I am currently using Edge CC 2014.
      I have a tablet animation setup with some touch interactions.

      For 2-sections within the the Animation I would like to use the Spotlight feature.

       

      At the compositonReady event I enter:

       

      1. // Load Edge Commons
      2. yepnope({
      3.   load: [
      4.    "http://cdn.edgecommons.org/an/1.1.0/js/min/EdgeCommons.js",  
      5.    // Load style sheet for the overlay
      6.    "http://cdn.edgecommons.org/an/1.1.0/css/style.css"
      7.    ]
      8. });


      So my first Spotlight is an image, so on the touchstart I have entered:

       

      1. // Open image in spotlight overlay
      2. // Set up configuration
      3. var config = {
      4.   width: 700,
      5.   height: 500,
      6.   type: "image",
      7.   source: "images/Spotlight1.png"
      8. }
      9. //
      10. EC.Spotlight.open( config );




      When testing the animation. The Spotlight effect works the first time. Then every time after that it pops-up for literally 1-second and then automatically closes. Has anyone had any trouble with this?
      M