(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.Asset18 = function() { this.initialize(img.Asset18); }).prototype = p = new cjs.Bitmap(); p.nominalBounds = new cjs.Rectangle(0,0,407,142); (lib.nen = function() { this.initialize(img.nen); }).prototype = p = new cjs.Bitmap(); p.nominalBounds = new cjs.Rectangle(0,0,2000,280); (lib.uonglavui = function() { this.initialize(img.uonglavui); }).prototype = p = new cjs.Bitmap(); p.nominalBounds = new cjs.Rectangle(0,0,282,121);// 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.Symbol2 = function(mode,startPosition,loop) { this.initialize(mode,startPosition,loop,{}); // Layer_1 this.instance = new lib.uonglavui(); this.instance.parent = this; this.timeline.addTween(cjs.Tween.get(this.instance).wait(1)); }).prototype = p = new cjs.MovieClip(); p.nominalBounds = rect = new cjs.Rectangle(0,0,282,121); p.frameBounds = [rect]; (lib.Symbol1 = function(mode,startPosition,loop) { this.initialize(mode,startPosition,loop,{}); // Layer_1 this.instance = new lib.Asset18(); this.instance.parent = this; this.instance.setTransform(0,0,0.3124,0.3124); this.timeline.addTween(cjs.Tween.get(this.instance).wait(1)); }).prototype = p = new cjs.MovieClip(); p.nominalBounds = rect = new cjs.Rectangle(0,0,127.2,44.4); p.frameBounds = [rect]; (lib.Tween4 = function(mode,startPosition,loop) { this.initialize(mode,startPosition,loop,{}); // Layer_1 this.shape = new cjs.Shape(); this.shape.graphics.lf(["rgba(255,255,255,0)","rgba(255,255,255,0.6)","#FFFFFF","rgba(255,255,255,0)"],[0,0.224,0.533,1],-14.5,3.9,14.6,-3.9).s().p("AlarIIEjhOIGSXfIkjBOg"); this.shape.setTransform(0.025,0.025); this.timeline.addTween(cjs.Tween.get(this.shape).wait(1)); }).prototype = p = new cjs.MovieClip(); p.nominalBounds = rect = new cjs.Rectangle(-34.7,-79,69.5,158.1); p.frameBounds = [rect]; (lib.Tween3 = function(mode,startPosition,loop) { this.initialize(mode,startPosition,loop,{}); // Layer_1 this.shape = new cjs.Shape(); this.shape.graphics.lf(["rgba(255,255,255,0)","rgba(255,255,255,0.6)","#FFFFFF","rgba(255,255,255,0)"],[0,0.224,0.533,1],-14.5,3.9,14.6,-3.9).s().p("AlarIIEjhOIGSXfIkjBOg"); this.shape.setTransform(0.025,0.025); this.timeline.addTween(cjs.Tween.get(this.shape).wait(1)); }).prototype = p = new cjs.MovieClip(); p.nominalBounds = rect = new cjs.Rectangle(-34.7,-79,69.5,158.1); p.frameBounds = [rect]; (lib.mcVideo = function(mode,startPosition,loop) { this.initialize(mode,startPosition,loop,{}); // timeline functions: this.frame_0 = function() { $z.zsplayer = $z._sPlayer({ video: "https://adtima-video.zadn.vn/2020/06/d9e9f917-f2ba-47c1-bcd2-5e65fb368fa6.mp4", poster: "poster.jpg", box: this, //teaser: true, control: true, ads: true, }); } // 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(0,0,153,0.498)").s().p("A9iQpMAAAghRMA7FAAAMAAAAhRg"); this.shape.setTransform(241.5,395.875); this.timeline.addTween(cjs.Tween.get(this.shape).wait(1)); }).prototype = getMCSymbolPrototype(lib.mcVideo, rect = new cjs.Rectangle(52.4,289.4,378.2,213), [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_265 = function() { this.stop(); } // actions tween: this.timeline.addTween(cjs.Tween.get(this).wait(265).call(this.frame_265).wait(1)); // script&mcStop this.instance = new lib.mcStop(); this.instance.parent = this; this.instance.setTransform(1982.5,-82.45,1,1,0,0,0,2.5,2.5); this.instance._off = true; this.timeline.addTween(cjs.Tween.get(this.instance).wait(265).to({_off:false},0).wait(1)); // mcReplay this.instance_1 = new lib.mcReplay(); this.instance_1.parent = this; this.instance_1.setTransform(1478.1,305.7,1,1,0,0,0,10,10); this.instance_1._off = true; this.timeline.addTween(cjs.Tween.get(this.instance_1).wait(265).to({_off:false},0).wait(1)); // clickTAG this.instance_2 = new lib.clickTAG(); this.instance_2.parent = this; this.instance_2.setTransform(999.95,140,4.3333,1.12,0,0,0,150,125); this.instance_2.alpha = 0.0117; this.timeline.addTween(cjs.Tween.get(this.instance_2).wait(266)); // mcVideo this.mcVideo = new lib.mcVideo(); this.mcVideo.name = "mcVideo"; this.mcVideo.parent = this; this.mcVideo.setTransform(1317.1,-126.1,1,1,0,0,0,150,125); this.mcVideo.alpha = 0.0117; this.timeline.addTween(cjs.Tween.get(this.mcVideo).wait(266)); // Layer_3 this.shape = new cjs.Shape(); this.shape.graphics.f().s("#000000").ss(3,1,1).p("A9iwnMA7FAAAMAAAAhPMg7FAAAg"); this.shape.setTransform(1408.625,144.725); this.shape_1 = new cjs.Shape(); this.shape_1.graphics.f("#FFFFFF").s().p("A9iQoMAAAghPMA7FAAAMAAAAhPg"); this.shape_1.setTransform(1408.625,144.725); this.timeline.addTween(cjs.Tween.get({}).to({state:[{t:this.shape_1},{t:this.shape}]}).wait(266)); // Layer_6 (mask) var mask = new cjs.Shape(); mask._off = true; mask.graphics.p("AILKaIgnhlI18gDIgUhWIybACIgPgSIAUmVIATo/QAAgSANgFQAGgDAGAAISHAaIAmg5IVdATIAAg+IAxgvIYwAHIADNbIgNHVg"); mask.setTransform(608.65,191.2); // mask copy 3 this.instance_3 = new lib.Tween3("synched",0); this.instance_3.parent = this; this.instance_3.setTransform(8.6,113.3,19.7947,22.3588,0,13.1001,17.1424,0,0.1); this.instance_3.alpha = 0.75; this.instance_3._off = true; this.instance_4 = new lib.Tween4("synched",0); this.instance_4.parent = this; this.instance_4.setTransform(1172.6,115.8,19.7947,22.3588,0,13.1001,17.1424,0.3,0.2); this.instance_4.alpha = 0.75; var maskedShapeInstanceList = [this.instance_3,this.instance_4]; for(var shapedInstanceItr = 0; shapedInstanceItr < maskedShapeInstanceList.length; shapedInstanceItr++) { maskedShapeInstanceList[shapedInstanceItr].mask = mask; } this.timeline.addTween(cjs.Tween.get({}).to({state:[]}).to({state:[{t:this.instance_3}]},25).to({state:[{t:this.instance_4}]},37).to({state:[{t:this.instance_3}]},29).to({state:[{t:this.instance_4}]},37).to({state:[]},20).wait(118)); this.timeline.addTween(cjs.Tween.get(this.instance_3).wait(25).to({_off:false},0).to({_off:true,regX:0.3,regY:0.2,x:1172.6,y:115.8},37,cjs.Ease.get(1)).wait(29).to({_off:false,regX:0,regY:0.1,x:8.6,y:113.3},0).to({_off:true,regX:0.3,regY:0.2,x:1172.6,y:115.8},37,cjs.Ease.get(1)).wait(138)); // TEXT this.instance_5 = new lib.Symbol2("synched",0); this.instance_5.parent = this; this.instance_5.setTransform(954.5,148.5,1,1,0,0,0,141,60.5); this.instance_5.alpha = 0; this.instance_5._off = true; this.timeline.addTween(cjs.Tween.get(this.instance_5).wait(5).to({_off:false},0).to({x:1032,alpha:1},12,cjs.Ease.get(1)).wait(249)); // LOGO this.instance_6 = new lib.Symbol1("synched",0); this.instance_6.parent = this; this.instance_6.setTransform(958.6,45.2,1,1,0,0,0,63.6,22.2); this.instance_6._off = true; this.timeline.addTween(cjs.Tween.get(this.instance_6).wait(2).to({_off:false},0).to({y:61.7},9,cjs.Ease.get(1)).to({y:59.2},2,cjs.Ease.get(1)).to({y:61.2},2,cjs.Ease.get(1)).to({y:60.2},2,cjs.Ease.get(1)).wait(249)); // NEN this.instance_7 = new lib.nen(); this.instance_7.parent = this; this.timeline.addTween(cjs.Tween.get(this.instance_7).wait(266)); }).prototype = p = new cjs.MovieClip(); p.nominalBounds = rect = new cjs.Rectangle(0,0,2000,280); 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, 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, 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, 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, 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, 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, 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, rect, rect, rect, rect, rect, rect, new cjs.Rectangle(0,-84.9,2000,402.6)]; // stage content: (lib.PC_Masthead_ZingNews_2000x280 = 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(1000,140,2000,280); p.frameBounds = [rect]; // library properties: lib.properties = { id: '0AFDE40EDDE7CC47A6D13850DA0A683D', width: 2000, height: 280, fps: 24, color: "#666666", opacity: 0.00, manifest: [ {src:"Asset18.png?1593769781751", id:"Asset18"}, {src:"nen.jpg?1593769781751", id:"nen"}, {src:"uonglavui.png?1593769781751", id:"uonglavui"} ], 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