(function (cjs, an) { var p; // shortcut to reference prototypes var lib={};var ss={};var img={}; var rect; // used to reference frame bounds lib.ssMetadata = []; // symbols: (lib.bg = function() { this.initialize(img.bg); }).prototype = p = new cjs.Bitmap(); p.nominalBounds = new cjs.Rectangle(0,0,970,250);// helper functions: function mc_symbol_clone() { var clone = this._cloneProps(new this.constructor(this.mode, this.startPosition, this.loop)); clone.gotoAndStop(this.currentFrame); clone.paused = this.paused; clone.framerate = this.framerate; return clone; } function getMCSymbolPrototype(symbol, nominalBounds, frameBounds) { var prototype = cjs.extend(symbol, cjs.MovieClip); prototype.clone = mc_symbol_clone; prototype.nominalBounds = nominalBounds; prototype.frameBounds = frameBounds; return prototype; } (lib.mcYoutube = function(mode,startPosition,loop) { this.initialize(mode,startPosition,loop,{}); // timeline functions: this.frame_0 = function() { $z.zsplayer = $z._yPlayer({ video: "Ipfn7Kfx6b4", poster: "", box: this, //teaser: true, control: true, ads: true, non_skin: 1 }); } // actions tween: this.timeline.addTween(cjs.Tween.get(this).call(this.frame_0).wait(1)); // bg this.shape = new cjs.Shape(); this.shape.graphics.f("rgba(204,204,204,0.498)").s().p("A3bNMIAA6XMAu3AAAIAAaXg"); this.shape.setTransform(202.05,98.475); this.timeline.addTween(cjs.Tween.get(this.shape).wait(1)); }).prototype = getMCSymbolPrototype(lib.mcYoutube, rect = new cjs.Rectangle(52.1,14.1,300,168.8), [rect]); (lib.btnReplay = function(mode,startPosition,loop) { this.initialize(mode,startPosition,loop,{}); // symbols this.shape = new cjs.Shape(); this.shape.graphics.f("#333333").s().p("AgtAuIAAgCQANAMANACQApAHARgjQAEgJABgNIgSAAIAggxIAgAxIgRAAQgJA9g8AEQgegCgTgZgAhZgIIARAAQAHg8A+gDQAdABATAaIAAABQgNgNgNgCQgogGgSAiQgDAIgDAPIATAAIgfAvg"); this.shape.setTransform(0.05,0.65); this.timeline.addTween(cjs.Tween.get(this.shape).to({_off:true},3).wait(1)); // bg this.shape_1 = new cjs.Shape(); this.shape_1.graphics.f("#FFFFFF").s().p("AgyBzQhAAAAAhAIAAhlQAAhABAAAIBkAAQBBAAAABAIAABlQAABAhBAAg"); this.timeline.addTween(cjs.Tween.get(this.shape_1).wait(4)); }).prototype = p = new cjs.MovieClip(); p.nominalBounds = rect = new cjs.Rectangle(-11.5,-11.5,23,23); p.frameBounds = [rect, rect, rect, rect]; (lib.mcStop = function(mode,startPosition,loop) { this.initialize(mode,startPosition,loop,{}); // timeline functions: this.frame_0 = function() { // Define stop all animation stopAnimation(this.parent); function stopAnimation(mc){ if (!mc) return; if ("stop" in mc) mc.stop(); var i; for (i = 0; i < mc.numChildren; i++){ var child = mc.getChildAt(i); stopAnimation(child); } } } // actions tween: this.timeline.addTween(cjs.Tween.get(this).call(this.frame_0).wait(1)); // JS this.shape = new cjs.Shape(); this.shape.graphics.f("#FF0000").s().p("AhFBGQgegcAAgqQAAgpAegcQAcgeApAAQAqAAAcAeQAeAcAAApQAAAqgeAcQgcAegqAAQgpAAgcgeg"); this.shape.setTransform(10,10); this.timeline.addTween(cjs.Tween.get(this.shape).wait(1)); }).prototype = getMCSymbolPrototype(lib.mcStop, rect = new cjs.Rectangle(0,0,20,20), [rect]); (lib.btnClickTag = function(mode,startPosition,loop) { this.initialize(mode,startPosition,loop,{}); // Layer_1 this.shape = new cjs.Shape(); this.shape.graphics.f("#000000").s().p("A3bTiMAAAgnDMAu3AAAMAAAAnDg"); this.shape.setTransform(0,-125); this.shape._off = true; this.timeline.addTween(cjs.Tween.get(this.shape).wait(3).to({_off:false},0).wait(1)); }).prototype = p = new cjs.MovieClip(); p.nominalBounds = rect = null; p.frameBounds = [rect, rect, rect, new cjs.Rectangle(-150,-250,300,250)]; (lib.mcReplay = function(mode,startPosition,loop) { this.initialize(mode,startPosition,loop,{}); // timeline functions: this.frame_0 = function() { this.stop(); var mainMC = this; mainMC.btnReplay.addEventListener('click', replayHandler); function replayHandler(evt) { if(canvas.video) canvas.video.fnReplayVideo(); if(mainMC.parent) { mainMC.parent.gotoAndPlay(0); } } } // actions tween: this.timeline.addTween(cjs.Tween.get(this).call(this.frame_0).wait(1)); // btnReplay this.btnReplay = new lib.btnReplay(); this.btnReplay.name = "btnReplay"; this.btnReplay.parent = this; this.btnReplay.setTransform(10.7,10.8,0.9999,1,0,0,0,0.4,0.4); new cjs.ButtonHelper(this.btnReplay, 0, 1, 2, false, new lib.btnReplay(), 3); this.timeline.addTween(cjs.Tween.get(this.btnReplay).wait(1)); }).prototype = getMCSymbolPrototype(lib.mcReplay, rect = new cjs.Rectangle(-1.2,-1.1,23,23), [rect]); (lib.clickTAG = function(mode,startPosition,loop) { this.initialize(mode,startPosition,loop,{}); // timeline functions: this.frame_0 = function() { var self = this; self.addEventListener('click', clickTAG); self.cursor = 'pointer'; function clickTAG(evt) { if(evt.nativeEvent && evt.nativeEvent.button==2){ evt.preventDefault(); } else { $za.clickthrough(); } } } // actions tween: this.timeline.addTween(cjs.Tween.get(this).call(this.frame_0).wait(1)); // bg this.instance = new lib.btnClickTag(); this.instance.parent = this; this.instance.setTransform(150,125,1,1,0,0,0,0,-125); new cjs.ButtonHelper(this.instance, 0, 1, 2, false, new lib.btnClickTag(), 3); this.timeline.addTween(cjs.Tween.get(this.instance).wait(1)); }).prototype = getMCSymbolPrototype(lib.clickTAG, rect = new cjs.Rectangle(0,0,300,250), [rect]); (lib.mcMain = function(mode,startPosition,loop) { this.initialize(mode,startPosition,loop,{}); // timeline functions: this.frame_37 = function() { this.stop(); } // actions tween: this.timeline.addTween(cjs.Tween.get(this).wait(37).call(this.frame_37).wait(1)); // script&mcStop this.instance = new lib.mcStop(); this.instance.parent = this; this.instance.setTransform(994.5,2.5,1,1,0,0,0,2.5,2.5); this.instance._off = true; this.timeline.addTween(cjs.Tween.get(this.instance).wait(37).to({_off:false},0).wait(1)); // mcReplay this.instance_1 = new lib.mcReplay(); this.instance_1.parent = this; this.instance_1.setTransform(1003.2,238.8,1,1,0,0,0,10,10); this.instance_1._off = true; this.timeline.addTween(cjs.Tween.get(this.instance_1).wait(37).to({_off:false},0).wait(1)); // mcYoutube this.instance_2 = new lib.mcYoutube(); this.instance_2.parent = this; this.instance_2.setTransform(740,113,1,1,0,0,0,160,90); this.timeline.addTween(cjs.Tween.get(this.instance_2).wait(38)); // clickTAG this.instance_3 = new lib.clickTAG(); this.instance_3.parent = this; this.instance_3.setTransform(485,125,3.2333,1,0,0,0,150,125); this.instance_3.alpha = 0.0117; this.timeline.addTween(cjs.Tween.get(this.instance_3).wait(38)); // Layer_3 this.instance_4 = new lib.bg(); this.instance_4.parent = this; this.timeline.addTween(cjs.Tween.get(this.instance_4).wait(38)); }).prototype = p = new cjs.MovieClip(); p.nominalBounds = rect = new cjs.Rectangle(0,0,970,250); p.frameBounds = [rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, new cjs.Rectangle(0,0,1015,250.7)]; // stage content: (lib.PC_Masthead_ZingNews_970x250 = function(mode,startPosition,loop) { this.initialize(mode,startPosition,loop,{}); // mcMain this.mcMain = new lib.mcMain(); this.mcMain.name = "mcMain"; this.mcMain.parent = this; this.mcMain.setTransform(150,125,1,1,0,0,0,150,125); this.timeline.addTween(cjs.Tween.get(this.mcMain).wait(1)); }).prototype = p = new cjs.MovieClip(); p.nominalBounds = rect = new cjs.Rectangle(485,125,970,250); p.frameBounds = [rect]; // library properties: lib.properties = { id: '0AFDE40EDDE7CC47A6D13850DA0A683D', width: 970, height: 250, fps: 30, color: "#FFFFFF", opacity: 0.00, manifest: [ {src:"bg.jpg?1574750906942", id:"bg"} ], preloads: [] }; // bootstrap callback support: (lib.Stage = function(canvas) { createjs.Stage.call(this, canvas); }).prototype = p = new createjs.Stage(); p.setAutoPlay = function(autoPlay) { this.tickEnabled = autoPlay; } p.play = function() { this.tickEnabled = true; this.getChildAt(0).gotoAndPlay(this.getTimelinePosition()) } p.stop = function(ms) { if(ms) this.seek(ms); this.tickEnabled = false; } p.seek = function(ms) { this.tickEnabled = true; this.getChildAt(0).gotoAndStop(lib.properties.fps * ms / 1000); } p.getDuration = function() { return this.getChildAt(0).totalFrames / lib.properties.fps * 1000; } p.getTimelinePosition = function() { return this.getChildAt(0).currentFrame / lib.properties.fps * 1000; } an.bootcompsLoaded = an.bootcompsLoaded || []; if(!an.bootstrapListeners) { an.bootstrapListeners=[]; } an.bootstrapCallback=function(fnCallback) { an.bootstrapListeners.push(fnCallback); if(an.bootcompsLoaded.length > 0) { for(var i=0; i