1 Reply Latest reply on Feb 18, 2015 10:32 AM by potsifera

    parallax code not working in CC 2014.1

    potsifera

      Hi!,

      I have being using this code for  parallax in CC 2014,  as an action on the stage on a scroll event.

      1. // scrolling controls animation 
      2. var animationHeight = 25000 
      3. var stageHeight = sym.$("Stage").height() 
      4. var scrollPos = sym.$("Stage").scrollTop(); 
      5. var duration = sym.getDuration(); 
      6. var percent = scrollPos / (animationHeight - stageHeight); 
      7. var time = duration * percent; 
      8. // Update timeline 
      9. sym.stop(time); 


      After upgrading to CC 2014.1, the code no longer works, any ideas about what needs to be changed? Tried to downgrade to 2014, but the version is no longer available.


      Help? 

       

      Thanks,