(function (lib, img, cjs, ss, an) { var p; // shortcut to reference prototypes var rect; // used to reference frame bounds lib.ssMetadata = [ {name:"index_atlas_", frames: [[0,1084,540,540],[0,542,540,540],[0,0,540,540],[1084,0,540,540],[542,542,540,540],[542,1084,540,540],[1084,1084,540,540],[1084,542,540,540],[542,0,540,540]]} ]; // symbols: (lib.Eyelids0011 = function() { this.spriteSheet = ss["index_atlas_"]; this.gotoAndStop(0); }).prototype = p = new cjs.Sprite(); (lib.Eyelids0012 = function() { this.spriteSheet = ss["index_atlas_"]; this.gotoAndStop(1); }).prototype = p = new cjs.Sprite(); (lib.Eyelids0013 = function() { this.spriteSheet = ss["index_atlas_"]; this.gotoAndStop(2); }).prototype = p = new cjs.Sprite(); (lib.EyeMask2 = function() { this.spriteSheet = ss["index_atlas_"]; this.gotoAndStop(3); }).prototype = p = new cjs.Sprite(); (lib.mouth0001 = function() { this.spriteSheet = ss["index_atlas_"]; this.gotoAndStop(4); }).prototype = p = new cjs.Sprite(); (lib.mouth0002 = function() { this.spriteSheet = ss["index_atlas_"]; this.gotoAndStop(5); }).prototype = p = new cjs.Sprite(); (lib.mouth0003 = function() { this.spriteSheet = ss["index_atlas_"]; this.gotoAndStop(6); }).prototype = p = new cjs.Sprite(); (lib.mouth0004 = function() { this.spriteSheet = ss["index_atlas_"]; this.gotoAndStop(7); }).prototype = p = new cjs.Sprite(); (lib.PupilandIris = function() { this.spriteSheet = ss["index_atlas_"]; this.gotoAndStop(8); }).prototype = p = new cjs.Sprite(); // 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.Pupil = function(mode,startPosition,loop) { this.initialize(mode,startPosition,loop,{}); // Layer_1 this.instance = new lib.PupilandIris(); this.instance.parent = this; this.instance.setTransform(-135,-135,0.5,0.5); this.timeline.addTween(cjs.Tween.get(this.instance).wait(1)); }).prototype = getMCSymbolPrototype(lib.Pupil, rect = new cjs.Rectangle(-135,-135,270,270), [rect]); (lib.Mouth = function(mode,startPosition,loop) { this.initialize(mode,startPosition,loop,{}); // timeline functions: this.frame_0 = function() { this.stop(); } this.frame_3 = function() { this.stop(); } // actions tween: this.timeline.addTween(cjs.Tween.get(this).call(this.frame_0).wait(3).call(this.frame_3).wait(3)); // Layer_1 this.instance = new lib.mouth0001(); this.instance.parent = this; this.instance.setTransform(-270,-270); this.instance_1 = new lib.mouth0002(); this.instance_1.parent = this; this.instance_1.setTransform(-270,-277); this.instance_2 = new lib.mouth0003(); this.instance_2.parent = this; this.instance_2.setTransform(-270,-286); this.instance_3 = new lib.mouth0004(); this.instance_3.parent = this; this.instance_3.setTransform(-270,-286); this.timeline.addTween(cjs.Tween.get({}).to({state:[{t:this.instance}]}).to({state:[{t:this.instance_1}]},1).to({state:[{t:this.instance_2}]},1).to({state:[{t:this.instance_3}]},1).to({state:[{t:this.instance_2}]},1).to({state:[{t:this.instance_1}]},1).wait(1)); }).prototype = p = new cjs.MovieClip(); p.nominalBounds = rect = new cjs.Rectangle(-270,-270,540,540); p.frameBounds = [rect, new cjs.Rectangle(-270,-277,540,540), rect=new cjs.Rectangle(-270,-286,540,540), rect, rect, new cjs.Rectangle(-270,-277,540,540)]; (lib.EyeWhite = function(mode,startPosition,loop) { this.initialize(mode,startPosition,loop,{}); // Layer_1 this.shape = new cjs.Shape(); this.shape.graphics.f("#FFFFFF").s().p("A2GWGQpJpKAAs8QAAs7JJpLQJLpJM7AAIBLABQEoAKEKBXIBOAbQGACSE7E6QJKJLAAM7QAAM8pKJKQovIwsMAZIhLABQs7AApLpKg"); this.timeline.addTween(cjs.Tween.get(this.shape).wait(1)); }).prototype = getMCSymbolPrototype(lib.EyeWhite, rect = new cjs.Rectangle(-200,-199.9,400,400), [rect]); (lib.Eyelidcopy = function(mode,startPosition,loop) { this.initialize(mode,startPosition,loop,{}); // timeline functions: this.frame_0 = function() { this.stop(); /* stop()*/ } // actions tween: this.timeline.addTween(cjs.Tween.get(this).call(this.frame_0).wait(5)); // Eyelid this.instance = new lib.Eyelids0011(); this.instance.parent = this; this.instance.setTransform(-259,-260,0.958,0.958); this.instance_1 = new lib.Eyelids0012(); this.instance_1.parent = this; this.instance_1.setTransform(-282,-295,0.002,0.002); this.instance_2 = new lib.Eyelids0012(); this.instance_2.parent = this; this.instance_2.setTransform(-259,-260,0.958,0.958); this.instance_3 = new lib.Eyelids0013(); this.instance_3.parent = this; this.instance_3.setTransform(-259,-260,0.958,0.958); this.timeline.addTween(cjs.Tween.get({}).to({state:[{t:this.instance}]}).to({state:[{t:this.instance_2,p:{scaleX:0.958,scaleY:0.958,x:-259,y:-260}},{t:this.instance_1,p:{scaleX:0.002,scaleY:0.002,x:-282,y:-295}}]},1).to({state:[{t:this.instance_3},{t:this.instance_1,p:{scaleX:0.002,scaleY:0.002,x:-282,y:-295}}]},1).to({state:[{t:this.instance_2,p:{scaleX:0.002,scaleY:0.002,x:-282,y:-295}},{t:this.instance_1,p:{scaleX:0.958,scaleY:0.958,x:-259,y:-260}}]},1).to({state:[{t:this.instance_1,p:{scaleX:0.002,scaleY:0.002,x:-282,y:-295}},{t:this.instance}]},1).wait(1)); }).prototype = p = new cjs.MovieClip(); p.nominalBounds = rect = new cjs.Rectangle(-259,-260,517.5,517.5); p.frameBounds = [rect, rect=new cjs.Rectangle(-282,-295,540.5,552.5), rect, rect, rect]; (lib.Eyelid = function(mode,startPosition,loop) { this.initialize(mode,startPosition,loop,{}); // timeline functions: this.frame_0 = function() { this.stop(); /* stop()*/ } // actions tween: this.timeline.addTween(cjs.Tween.get(this).call(this.frame_0).wait(5)); // Eyelid this.instance = new lib.Eyelids0011(); this.instance.parent = this; this.instance.setTransform(280,-260,0.958,0.958); this.instance_1 = new lib.Eyelids0012(); this.instance_1.parent = this; this.instance_1.setTransform(-282,-295,0.002,0.002); this.instance_2 = new lib.Eyelids0012(); this.instance_2.parent = this; this.instance_2.setTransform(280,-260,0.958,0.958); this.instance_3 = new lib.Eyelids0013(); this.instance_3.parent = this; this.instance_3.setTransform(280,-260,0.958,0.958); this.timeline.addTween(cjs.Tween.get({}).to({state:[{t:this.instance}]}).to({state:[{t:this.instance_2,p:{scaleX:0.958,scaleY:0.958,x:280,y:-260}},{t:this.instance_1,p:{scaleX:0.002,scaleY:0.002,x:-282,y:-295}}]},1).to({state:[{t:this.instance_3},{t:this.instance_1,p:{scaleX:0.002,scaleY:0.002,x:-282,y:-295}}]},1).to({state:[{t:this.instance_2,p:{scaleX:0.002,scaleY:0.002,x:-282,y:-295}},{t:this.instance_1,p:{scaleX:0.958,scaleY:0.958,x:280,y:-260}}]},1).to({state:[{t:this.instance_1,p:{scaleX:0.002,scaleY:0.002,x:-282,y:-295}},{t:this.instance}]},1).wait(1)); }).prototype = p = new cjs.MovieClip(); p.nominalBounds = rect = new cjs.Rectangle(280,-260,517.5,517.5); p.frameBounds = [rect, rect=new cjs.Rectangle(-282,-295,1079.5,552.5), rect, rect, rect]; (lib.EyeShading1 = function(mode,startPosition,loop) { this.initialize(mode,startPosition,loop,{}); // Layer_1 this.instance = new lib.EyeMask2(); this.instance.parent = this; this.instance.setTransform(-270,-270); this.timeline.addTween(cjs.Tween.get(this.instance).wait(1)); }).prototype = getMCSymbolPrototype(lib.EyeShading1, rect = new cjs.Rectangle(-270,-270,540,540), [rect]); // stage content: (lib.index = function(mode,startPosition,loop) { this.initialize(mode,startPosition,loop,{}); // timeline functions: this.frame_0 = function() { /* var varV = PupilL.scaleX var varW = PupilR.scaleX var varH = 1200 stage.addEventListener("mouseMove", arjun); function arjun(e: MouseEvent): void { var var1 = mouseX - EyeL.x; var var2 = mouseY - EyeL.y; var var11 = mouseX - EyeR.x; var var12 = mouseY - EyeR.y; PupilL.x = EyeL.x + (EyeL.width / 2) * Math.cos(0.5 * Math.PI - Math.atan(var1 / varH)) PupilL.y = EyeL.y + (EyeL.width / 2) * Math.cos(0.5 * Math.PI - Math.atan(var2 / varH)) PupilR.x = EyeR.x + (EyeR.width / 2) * Math.cos(0.5 * Math.PI - Math.atan(var11 / varH)) PupilR.y = EyeR.y + (EyeR.width / 2) * Math.cos(0.5 * Math.PI - Math.atan(var12 / varH)) var var3 = PupilL.x - EyeL.x var var4 = PupilL.y - EyeL.y var var13 = PupilR.x - EyeR.x var var14 = PupilR.y - EyeR.y var varT = Math.sqrt(Math.pow(var3, 2) + Math.pow(var4, 2)) var varU = Math.sqrt(Math.pow(var13, 2) + Math.pow(var14, 2)) PupilL.scaleX = varV * (1 - ((1 / (120 * EyeL.width)) * Math.pow(varT, 2))) PupilR.scaleX = varW * (1 - ((1 / (120 * EyeR.width)) * Math.pow(varU, 2))) if (varT >= (EyeL.width / 8)) { varT = EyeL.width / 8; } if (varU >= (EyeR.width / 8)) { varU = EyeR.width / 8; } PupilL.rotation = (varT / (EyeL.width / 8)) * (180 / Math.PI) * Math.atan(var2 / var1) PupilR.rotation = (varU / (EyeR.width / 8)) * (180 / Math.PI) * Math.atan(var12 / var11) var varFx = mouseX - ((EyeL.x + EyeR.x)/ 2) var varFy = mouseY - ((EyeL.y + mouth.y) / 2) var varM = Math.sqrt(Math.pow(varFx, 2) + Math.pow(varFy, 2)) if ((varM <= (EyeL.width * 1.2)) && (mouth.currentFrame == 1)){ mouth.gotoAndPlay(2); } else if ((varM > (EyeL.width * 1.2)) && (mouth.currentFrame == 4)){ mouth.gotoAndPlay(5); } } this.addEventListener(Event.ENTER_FRAME,frameEvent); function frameEvent(e:Event): void { var r:Number=Math.random()*45; //a random number between 0 and 30 if(r<1) Eyelid.gotoAndPlay(2); //Eyes blink about once in 30 frames }//frameEvent stage.addEventListener(MouseEvent.CLICK, myClickReaction); function myClickReaction (e:MouseEvent):void{ Eyelid.gotoAndPlay(2) }*/ } // actions tween: this.timeline.addTween(cjs.Tween.get(this).call(this.frame_0).wait(1)); // Eyelid2 this.Eyelid2 = new lib.Eyelidcopy(); this.Eyelid2.parent = this; this.Eyelid2.setTransform(308.2,317.8,0.64,0.64); this.timeline.addTween(cjs.Tween.get(this.Eyelid2).wait(1)); // Eyelids1 this.Eyelid = new lib.Eyelid(); this.Eyelid.parent = this; this.Eyelid.setTransform(308.2,317.8,0.64,0.64); this.timeline.addTween(cjs.Tween.get(this.Eyelid).wait(1)); // Mouth this.mouth = new lib.Mouth(); this.mouth.parent = this; this.mouth.setTransform(484.8,531.4,0.64,0.64); this.timeline.addTween(cjs.Tween.get(this.mouth).wait(1)); // pupil cover this.shape = new cjs.Shape(); this.shape.graphics.f().s("#FFB9ED").ss(34.3,1,0,3).p("AAEljQAnh1Bfi1QB0jdBXh9QBeiJBnhgQAjghAjgcQDAiWEmhRQBTgXB3gWQA/gMBJgMQBegPBugPQC3gYBjgBQCdAAB0AvQAJAEALAEQA7AbBTA2QBiBBAtAZQAIAFAHADQAqAWCOA5QB0AuA+ApQALAIALAIQBrBSBiCiQCXD+BPFYQA0DagLCkQgHBcgdBwQgTBGgrCCQhNDjg+B/QhcC7h6B2QhtBpiqBUQg5AchYAkQhLAehgAkQivBChmAfQiaAuiDAOQjRAWjvg0QgJgCgKgCQi9gsjghdQiQg7hgg5Qh+hLhShaQhOhUhDiAQgnhMhEiiQhhjwgoh8Qg0ikgXiNQgFgkgEgjQABhzApiBgAgMK+QAMAYAOAbQAfA9A+B9QBzDhB5BpQBQBEByA1QBUAmCEAqQEOBVERA1QFQBCFUAUQB8AHBPgGQBvgHBVghQA7gVBCgqQAigWAkgbQA9guB2hiQBahIDAiGQCmh8BVhxQBPhmA1iNQAshzAgiZQBGlPgTk7QgVlWh8khQhejciWiwQg9hHhGhAQibiOivhUQhdgshigcQgVgGgWgFQifgmjegFQkCADiBAAQjkgDhxAEQgYABgYABQikAJh6AfQhvAchsA0QjvB0jeDpQgGAGgFAGQh3B/h9CyQg+BXhyCzQgiiEg0h7QhejciWiwQg9hHhGhAQibiOivhTQhdgthigbQgVgGgWgGQifgmjegEAihkxQgXi/hTiyQhTiyiDiOQhahhhOg6QhNg7gugrQgtgqiBhDQiBhDhUh3QhTh4hfAmQheAmgWACQgVACgBhJQgChKhCgrQhCgskfAGQkgAGhXBfQhXBfghALQghAMgHACQhTAZhBAqQhRAzhWBjQhJBZgtA3QgPARgMAOQgnAuiWCbQhvBzg9BTQgEAFgDAEQg8BRguBeQhUCogrDQQg3EHAJFbQBflWArlrQgSC6gDBrQgGDAAcCYQANBHAVBFQApCHBICAQAaAuAeAuQCUDfDeCqQCqCBDGBWQAVAJAVAJQCxBHC8AhQDeAmDngSQBOgGBNgMQCSgXCPgtQDwhNCZh7QA3gsA7g+QApgsA/hKQBMhcAtg7QA/hVAqhLQBRiTAyjIQAiiMAfjkQAZjCABh2QABiqgriEQgBgCAAgCAhlqVQgRAbgTAdQgGAIgFAJAooRZQCmh8BVhwQBPhnA1iMQAshzAgiZQBGlPgTk7QgNjGguizAhZI+QAkA1ApBLQAIgkAEgkEg1IgFRIAGg2Eg3SAJWQAWDiB0DLQARAdASAbQAzBOA+BDQBGBLBUA8QB5BWCtBGQBiAoDbBHQAlAMAiALQEbBXCeAgQEhA8DqgXQAFgBAEAAQGbgtG5k5QDviqCRi6QCVi/AujJ"); this.shape.setTransform(486.5,323.3); this.timeline.addTween(cjs.Tween.get(this.shape).wait(1)); // pupils this.PupilR = new lib.Pupil(); this.PupilR.parent = this; this.PupilR.setTransform(652.7,311.5,0.72,0.72); this.PupilL = new lib.Pupil(); this.PupilL.parent = this; this.PupilL.setTransform(308.1,311.5,0.72,0.72); this.timeline.addTween(cjs.Tween.get({}).to({state:[{t:this.PupilL},{t:this.PupilR}]}).wait(1)); // eye shading this.R = new lib.EyeShading1(); this.R.parent = this; this.R.setTransform(307.8,312.2,0.64,0.64); this.R.alpha = 0.691; this.R_1 = new lib.EyeShading1(); this.R_1.parent = this; this.R_1.setTransform(653.4,312.2,0.64,0.64); this.R_1.alpha = 0.691; this.timeline.addTween(cjs.Tween.get({}).to({state:[{t:this.R_1},{t:this.R}]}).wait(1)); // eye whites this.EyeR = new lib.EyeWhite(); this.EyeR.parent = this; this.EyeR.setTransform(652.7,311.6,0.72,0.72); this.EyeL = new lib.EyeWhite(); this.EyeL.parent = this; this.EyeL.setTransform(308.1,311.6,0.72,0.72); this.timeline.addTween(cjs.Tween.get({}).to({state:[{t:this.EyeL},{t:this.EyeR}]}).wait(1)); }).prototype = p = new cjs.MovieClip(); p.nominalBounds = rect = new cjs.Rectangle(590,484.7,747.7,579.4); p.frameBounds = [rect]; // library properties: lib.properties = { width: 960, height: 720, fps: 25, color: "#FFB9ED", opacity: 1.00, manifest: [ {src:"/files/theme/Face/images/index_atlas_.png", id:"index_atlas_"} ], preloads: [] }; })(lib = lib||{}, images = images||{}, createjs = createjs||{}, ss = ss||{}, AdobeAn = AdobeAn||{}); var lib, images, createjs, ss, AdobeAn;