(function (lib, img, cjs, ss, an) { var p; // shortcut to reference prototypes lib.webFontTxtInst = {}; var loadedTypekitCount = 0; var loadedGoogleCount = 0; var gFontsUpdateCacheList = []; var tFontsUpdateCacheList = []; lib.ssMetadata = []; lib.updateListCache = function (cacheList) { for(var i = 0; i < cacheList.length; i++) { if(cacheList[i].cacheCanvas) cacheList[i].updateCache(); } }; lib.addElementsToCache = function (textInst, cacheList) { var cur = textInst; while(cur != exportRoot) { if(cacheList.indexOf(cur) != -1) break; cur = cur.parent; } if(cur != exportRoot) { var cur2 = textInst; var index = cacheList.indexOf(cur); while(cur2 != cur) { cacheList.splice(index, 0, cur2); cur2 = cur2.parent; index++; } } else { cur = textInst; while(cur != exportRoot) { cacheList.push(cur); cur = cur.parent; } } }; lib.gfontAvailable = function(family, totalGoogleCount) { lib.properties.webfonts[family] = true; var txtInst = lib.webFontTxtInst && lib.webFontTxtInst[family] || []; for(var f = 0; f < txtInst.length; ++f) lib.addElementsToCache(txtInst[f], gFontsUpdateCacheList); loadedGoogleCount++; if(loadedGoogleCount == totalGoogleCount) { lib.updateListCache(gFontsUpdateCacheList); } }; lib.tfontAvailable = function(family, totalTypekitCount) { lib.properties.webfonts[family] = true; var txtInst = lib.webFontTxtInst && lib.webFontTxtInst[family] || []; for(var f = 0; f < txtInst.length; ++f) lib.addElementsToCache(txtInst[f], tFontsUpdateCacheList); loadedTypekitCount++; if(loadedTypekitCount == totalTypekitCount) { lib.updateListCache(tFontsUpdateCacheList); } }; // symbols: (lib.Symbol1 = function(mode,startPosition,loop) { this.initialize(mode,startPosition,loop,{}); // Layer 1 this.text = new cjs.Text("Click button to\nproceed", "12px 'Arial'", "#FFFFFF"); this.text.textAlign = "center"; this.text.lineHeight = 15; this.text.lineWidth = 136; this.text.parent = this; this.text.setTransform(29.9,-14.3); this.shape = new cjs.Shape(); this.shape.graphics.f("#333333").s().p("AsGDhIAAnBIYNAAIAAHBg"); this.shape.setTransform(30.5,0); this.timeline.addTween(cjs.Tween.get({}).to({state:[{t:this.shape},{t:this.text}]}).wait(1)); }).prototype = p = new cjs.MovieClip(); p.nominalBounds = new cjs.Rectangle(-47,-22.5,155,45); // stage content: (lib.Untitled2 = function(mode,startPosition,loop) { if (loop == null) { loop = false; } this.initialize(mode,startPosition,loop,{}); // timeline functions: this.frame_0 = function() { this.my_btn.addEventListener("click", function () { window.open("http://www.adobe.com", '_blank'); }); } // actions tween: this.timeline.addTween(cjs.Tween.get(this).call(this.frame_0).wait(100)); // Animated Button this.my_btn = new lib.Symbol1(); this.my_btn.parent = this; this.my_btn.setTransform(47,41.5); new cjs.ButtonHelper(this.my_btn, 0, 1, 1); this.timeline.addTween(cjs.Tween.get(this.my_btn).wait(1).to({regX:30.5,x:78.5},0).wait(1).to({x:81.1},0).wait(1).to({x:85.3},0).wait(1).to({x:90.9},0).wait(1).to({x:97.9},0).wait(1).to({x:106.1},0).wait(1).to({x:115.6},0).wait(1).to({x:126.2},0).wait(1).to({x:138},0).wait(1).to({x:150.7},0).wait(1).to({x:164.4},0).wait(1).to({x:178.9},0).wait(1).to({x:194.2},0).wait(1).to({x:210.2},0).wait(1).to({x:226.8},0).wait(1).to({x:244.1},0).wait(1).to({x:261.8},0).wait(1).to({x:280},0).wait(1).to({x:298.5},0).wait(1).to({x:317.4},0).wait(1).to({x:336.4},0).wait(1).to({x:355.7},0).wait(1).to({x:375.1},0).wait(1).to({x:394.4},0).wait(1).to({x:413.7},0).wait(1).to({x:433},0).wait(1).to({x:452},0).wait(1).to({x:470.9},0).wait(1).to({x:489.5},0).wait(1).to({x:507.7},0).wait(1).to({x:525.5},0).wait(1).to({x:542.9},0).wait(1).to({x:559.7},0).wait(1).to({x:575.9},0).wait(1).to({x:591.5},0).wait(1).to({x:606.4},0).wait(1).to({x:620.5},0).wait(1).to({x:633.8},0).wait(1).to({x:646.3},0).wait(1).to({x:657.8},0).wait(1).to({x:668.4},0).wait(1).to({x:677.9},0).wait(1).to({x:686.3},0).wait(1).to({x:693.6},0).wait(1).to({x:699.7},0).wait(1).to({x:704.6},0).wait(1).to({x:708.2},0).wait(1).to({x:710.5},0).wait(1).to({x:711.5},0).wait(1).to({x:710.6},0).wait(1).to({x:708.5},0).wait(1).to({x:705.1},0).wait(1).to({x:700.5},0).wait(1).to({x:694.6},0).wait(1).to({x:687.6},0).wait(1).to({x:679.5},0).wait(1).to({x:670.3},0).wait(1).to({x:660},0).wait(1).to({x:648.7},0).wait(1).to({x:636.4},0).wait(1).to({x:623.2},0).wait(1).to({x:609.2},0).wait(1).to({x:594.3},0).wait(1).to({x:578.7},0).wait(1).to({x:562.4},0).wait(1).to({x:545.4},0).wait(1).to({x:527.9},0).wait(1).to({x:509.9},0).wait(1).to({x:491.4},0).wait(1).to({x:472.6},0).wait(1).to({x:453.4},0).wait(1).to({x:434},0).wait(1).to({x:414.5},0).wait(1).to({x:394.9},0).wait(1).to({x:375.3},0).wait(1).to({x:355.8},0).wait(1).to({x:336.4},0).wait(1).to({x:317.2},0).wait(1).to({x:298.3},0).wait(1).to({x:279.8},0).wait(1).to({x:261.7},0).wait(1).to({x:244.1},0).wait(1).to({x:227},0).wait(1).to({x:210.6},0).wait(1).to({x:194.9},0).wait(1).to({x:179.9},0).wait(1).to({x:165.8},0).wait(1).to({x:152.5},0).wait(1).to({x:140.2},0).wait(1).to({x:128.8},0).wait(1).to({x:118.5},0).wait(1).to({x:109.2},0).wait(1).to({x:101},0).wait(1).to({x:94},0).wait(1).to({x:88.2},0).wait(1).to({x:83.6},0).wait(1).to({x:80.3},0).wait(1).to({x:78.2},0).wait(1).to({x:77.5},0).wait(1)); }).prototype = p = new cjs.MovieClip(); p.nominalBounds = new cjs.Rectangle(364,45.3,728.1,191.7); // library properties: lib.properties = { width: 728, height: 90, fps: 24, color: "#FFFFFF", opacity: 1.00, webfonts: {}, manifest: [], preloads: [] }; })(lib = lib||{}, images = images||{}, createjs = createjs||{}, ss = ss||{}, AdobeAn = AdobeAn||{}); var lib, images, createjs, ss, AdobeAn;