Jump to content
Search Community

xjure

Members
  • Posts

    2
  • Joined

  • Last visited

Posts posted by xjure

  1. I tried to get that variable but globalTimeline is not defined. 

    We have one banner that has one stage or scene which is in loop even timeline is paused.

     

    function Pause() {
      if (stage && stage.children) {
    
        var i, l = stage.children.length;
    
        for (i = 0; i < l; i++) {
          var child = stage.children[i];
    
          child.timeline.setPaused=true;
    
          if ("gotoAndStop" in child)
            var pos = parseInt(child.timeline.position);
          child.gotoAndStop(pos);
        }
    
        $('#range').val(pos);
        stopSlider();
      }

    This is part of the code I use to pause the timeline, do you think this is correct way?

  2. function handleComplete(evt) {
        exportRoot = new lib.somersbycoop728x90fr();
    
        stage = new createjs.Stage(canvas);
        stage.addChild(exportRoot);
        stage.update();
    
        createjs.Ticker.setFPS(lib.properties.fps);
        createjs.Ticker.addEventListener("tick", stage);
    
        // console.log(exportRoot);
        // globalTimeline = TimelineLite.exportRoot(exportRoot);
    
    }

    Is there any option to pause, resume, and seek timeline of banner inside iframe?
    Above code is from banner.

×
×
  • Create New...