Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URL's added here will be added as <link>s in order, and before the CSS in the editor. If you link to another Pen, it will include the CSS from that Pen. If the preprocessor matches, it will attempt to combine them before processing.

+ add another resource

JavaScript

Babel includes JSX processing.

Add External Scripts/Pens

Any URL's added here will be added as <script>s in order, and run before the JavaScript in the editor. You can use the URL of any other Pen and it will include the JavaScript from that Pen.

+ add another resource

Packages

Add Packages

Search for and use JavaScript packages from npm here. By selecting a package, an import statement will be added to the top of the JavaScript editor for this package.

Behavior

Save Automatically?

If active, Pens will autosave every 30 seconds after being saved once.

Auto-Updating Preview

If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.

Format on Save

If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.

HTML

              
                <!--
	NOTES:
	1. All tokens are represented by '$' sign in the template.
	2. You can write your code only wherever mentioned.
	3. All occurrences of existing tokens will be replaced by their appropriate values.
	4. Blank lines will be removed automatically.
	5. Remove unnecessary comments before creating your template.
-->
<html>
<head>
<meta charset="UTF-8">
<meta name="authoring-tool" content="Adobe_Animate_CC">
<meta name="ad.size" content="width=300,height=250">
<title>index_funds-300x250-v1</title>
<!-- write your code here -->
<script src="https://code.createjs.com/createjs-2015.11.26.min.js"></script>
<script>
function LoadGFonts(families) {				
	var googleObject = {type: "Google", loadedFonts: 0, totalFonts: families.length, callOnLoad: lib.gfontAvailable};				
	for(var i =0; i < families.length; i++)				
		isFontAvailable(gFontsFamilies[i], googleObject);				
}
function isFontAvailable(font, obj) {				
	var timeOut = 5000;				
	var delay = 200;				
	var interval = 0;				
	var timeElapsed = 0;				
	function checkFont() {				
		var node = document.createElement("span");				
		node.innerHTML = "giItT1WQy@!-/#";				
		node.style.position      = "absolute";				
		node.style.left          = "-1000px";				
		node.style.top           = "-1000px";				
		node.style.fontSize      = "300px";				
		node.style.fontFamily    = "sans-serif";				
		node.style.fontVariant   = "normal";				
		node.style.fontStyle     = "normal";				
		node.style.fontWeight    = "normal";				
		node.style.letterSpacing = "0";				
		document.body.appendChild(node);				
		var width = node.offsetWidth;				
		node.style.fontFamily = font+","+node.style.fontFamily;				
		var returnVal = false;				
		if((node && node.offsetWidth != width) || timeElapsed >=timeOut) {				
			obj.loadedFonts++;				
			if(interval)				
				clearInterval(interval);				
			obj.callOnLoad(font, obj.totalFonts);				
			returnVal = true;				
		}				
		if(node) {				
			node.parentNode.removeChild(node);				
			node = null;				
		}				
		timeElapsed += delay;				
		return returnVal;				
	}				
	if(!checkFont()) {				
		interval = setInterval(checkFont, delay);				
	}				
}
</script>
<script>
	var gFontsFamilies = ["Open Sans"];
</script>
<style>
@font-face {
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 600;
  src: local('Open Sans Semibold'), local('OpenSans-Semibold'), url(https://fonts.gstatic.com/s/opensans/v13/MTP_ySUJH_bn48VBG8sNSqRDOzjiPcYnFooOUGCOsRk.woff) format('woff');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2212, U+2215;
}
@font-face {
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 700;
  src: local('Open Sans Bold'), local('OpenSans-Bold'), url(https://fonts.gstatic.com/s/opensans/v13/k3k702ZOKiLJc3WVjuplzKRDOzjiPcYnFooOUGCOsRk.woff) format('woff');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2212, U+2215;
}
@font-face {
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 800;
  src: local('Open Sans Extrabold'), local('OpenSans-Extrabold'), url(https://fonts.gstatic.com/s/opensans/v13/EInbV5DfGHOiMmvb1Xr-hqRDOzjiPcYnFooOUGCOsRk.woff) format('woff');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2212, U+2215;
}</style>
<script src="index_funds-300x250-v1.js"></script>
<script>
var canvas, stage, exportRoot, anim_container, dom_overlay_container, fnStartAnimation;
function init() {
	canvas = document.getElementById("canvas");
	anim_container = document.getElementById("animation_container");
	dom_overlay_container = document.getElementById("dom_overlay_container");
	try {
		if(!(typeof gFontsFamilies === 'undefined' || gFontsFamilies === null))
			LoadGFonts(gFontsFamilies);		
		if(!(typeof totalTypekitFonts === 'undefined' || totalTypekitFonts === null)) {
			var typekitObject = {type: 'Typekit', loadedFonts: 0, totalFonts: totalTypekitFonts, callOnLoad: lib.tfontAvailable};		
			Typekit.load({
			async: true,
			'fontactive': function(family) {
				isFontAvailable(family, typekitObject);
				}
			});
		}
	} catch(e) {};
	images = images||{};
	var loader = new createjs.LoadQueue(false);
	loader.addEventListener("fileload", handleFileLoad);
	loader.addEventListener("complete", handleComplete);
	loader.loadManifest(lib.properties.manifest);
}
function handleFileLoad(evt) {	
	if (evt.item.type == "image") { images[evt.item.id] = evt.result; }	
}
function handleComplete(evt) {
	//This function is always called, irrespective of the content. You can use the variable "stage" after it is created in token create_stage.
	var queue = evt.target;
	var ssMetadata = lib.ssMetadata;
	for(i=0; i<ssMetadata.length; i++) {
		ss[ssMetadata[i].name] = new createjs.SpriteSheet( {"images": [queue.getResult(ssMetadata[i].name)], "frames": ssMetadata[i].frames} )
	}
	exportRoot = new lib.index_funds300x250v1();
	stage = new createjs.Stage(canvas);
	stage.addChild(exportRoot);
	stage.enableMouseOver();	
	//Registers the "tick" event listener.
	fnStartAnimation = function() {
		createjs.Ticker.setFPS(lib.properties.fps);
		createjs.Ticker.addEventListener("tick", stage);
	}	    
	//Code to support hidpi screens and responsive scaling.
	function makeResponsive(isResp, respDim, isScale, scaleType) {		
		var lastW, lastH, lastS=1;		
		window.addEventListener('resize', resizeCanvas);		
		resizeCanvas();		
		function resizeCanvas() {			
			var w = lib.properties.width, h = lib.properties.height;			
			var iw = window.innerWidth, ih=window.innerHeight;			
			var pRatio = window.devicePixelRatio || 1, xRatio=iw/w, yRatio=ih/h, sRatio=1;			
			if(isResp) {                
				if((respDim=='width'&&lastW==iw) || (respDim=='height'&&lastH==ih)) {                    
					sRatio = lastS;                
				}				
				else if(!isScale) {					
					if(iw<w || ih<h)						
						sRatio = Math.min(xRatio, yRatio);				
				}				
				else if(scaleType==1) {					
					sRatio = Math.min(xRatio, yRatio);				
				}				
				else if(scaleType==2) {					
					sRatio = Math.max(xRatio, yRatio);				
				}			
			}			
			canvas.width = w*pRatio*sRatio;			
			canvas.height = h*pRatio*sRatio;
			canvas.style.width = dom_overlay_container.style.width = anim_container.style.width =  w*sRatio+'px';				
			canvas.style.height = anim_container.style.height = dom_overlay_container.style.height = h*sRatio+'px';
			stage.scaleX = pRatio*sRatio;			
			stage.scaleY = pRatio*sRatio;			
			lastW = iw; lastH = ih; lastS = sRatio;		
		}
	}
	makeResponsive(false,'both',false,1);	
	fnStartAnimation();
}
</script>
<!-- write your code here -->
</head>
<body onload="init();" style="margin:0px;">
	<div id="animation_container" style="background-color:rgba(255, 255, 255, 1.00); width:300px; height:250px">
		<canvas id="canvas" width="300" height="250" style="position: absolute; display: block; background-color:rgba(255, 255, 255, 1.00);"></canvas>
		<div id="dom_overlay_container" style="pointer-events:none; overflow:hidden; width:300px; height:250px; position: absolute; left: 0px; top: 0px; display: block;">
		</div>
	</div>
</body>
</html>
              
            
!

CSS

              
                
              
            
!

JS

              
                (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._300x250_background = function() {
	this.initialize(img._300x250_background);
}).prototype = p = new cjs.Bitmap();
p.nominalBounds = new cjs.Rectangle(0,0,574,175);


(lib.index_logo_block = function() {
	this.initialize(img.index_logo_block);
}).prototype = p = new cjs.Bitmap();
p.nominalBounds = new cjs.Rectangle(0,0,145,74);// 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.white_bar = function(mode,startPosition,loop) {
	this.initialize(mode,startPosition,loop,{});

	// Layer 1
	this.shape = new cjs.Shape();
	this.shape.graphics.f("#FFFFFF").s().p("A7IHFIAAuJMA2RAAAIAAOJg");

	this.timeline.addTween(cjs.Tween.get(this.shape).wait(1));

}).prototype = getMCSymbolPrototype(lib.white_bar, new cjs.Rectangle(-173.7,-45.2,347.5,90.5), null);


(lib.text_3 = function(mode,startPosition,loop) {
	this.initialize(mode,startPosition,loop,{});

	// Layer 1
	this.text = new cjs.Text("Shouldn't it be in", "normal 600 24px 'Open Sans'", "#FFFFFF");
	this.text.textAlign = "center";
	this.text.lineHeight = 34;
	this.text.lineWidth = 284;
	this.text.parent = this;
	this.text.setTransform(0,-35.3);
	if(!lib.properties.webfonts['Open Sans']) {
		lib.webFontTxtInst['Open Sans'] = lib.webFontTxtInst['Open Sans'] || [];
		lib.webFontTxtInst['Open Sans'].push(this.text);
	}

	this.text_1 = new cjs.Text("YOUR Portfolio?", "normal 700 35px 'Open Sans'", "#FFFFFF");
	this.text_1.textAlign = "center";
	this.text_1.lineHeight = 50;
	this.text_1.lineWidth = 284;
	this.text_1.parent = this;
	this.text_1.setTransform(0,-12.3);
	if(!lib.properties.webfonts['Open Sans']) {
		lib.webFontTxtInst['Open Sans'] = lib.webFontTxtInst['Open Sans'] || [];
		lib.webFontTxtInst['Open Sans'].push(this.text_1);
	}

	this.timeline.addTween(cjs.Tween.get({}).to({state:[{t:this.text_1},{t:this.text}]}).wait(1));

}).prototype = getMCSymbolPrototype(lib.text_3, new cjs.Rectangle(-144.2,-37.3,288.5,74.7), null);


(lib.text_2 = function(mode,startPosition,loop) {
	this.initialize(mode,startPosition,loop,{});

	// Layer 1
	this.text = new cjs.Text("14", "normal 700 60px 'Open Sans'", "#019EDC");
	this.text.textAlign = "center";
	this.text.lineHeight = 84;
	this.text.lineWidth = 74;
	this.text.parent = this;
	this.text.setTransform(72.9,-74.8);
	if(!lib.properties.webfonts['Open Sans']) {
		lib.webFontTxtInst['Open Sans'] = lib.webFontTxtInst['Open Sans'] || [];
		lib.webFontTxtInst['Open Sans'].push(this.text);
	}

	this.text_1 = new cjs.Text("out of\nYears...", "normal 600 24px 'Open Sans'", "#019EDC");
	this.text_1.textAlign = "center";
	this.text_1.lineHeight = 26;
	this.text_1.lineWidth = 284;
	this.text_1.parent = this;
	this.text_1.setTransform(0,-35.3);
	if(!lib.properties.webfonts['Open Sans']) {
		lib.webFontTxtInst['Open Sans'] = lib.webFontTxtInst['Open Sans'] || [];
		lib.webFontTxtInst['Open Sans'].push(this.text_1);
	}

	this.text_2 = new cjs.Text("10", "normal 700 60px 'Open Sans'", "#019EDC");
	this.text_2.textAlign = "center";
	this.text_2.lineHeight = 84;
	this.text_2.lineWidth = 74;
	this.text_2.parent = this;
	this.text_2.setTransform(-69.6,-74.8);
	if(!lib.properties.webfonts['Open Sans']) {
		lib.webFontTxtInst['Open Sans'] = lib.webFontTxtInst['Open Sans'] || [];
		lib.webFontTxtInst['Open Sans'].push(this.text_2);
	}

	this.timeline.addTween(cjs.Tween.get({}).to({state:[{t:this.text_2},{t:this.text_1},{t:this.text}]}).wait(1));

}).prototype = getMCSymbolPrototype(lib.text_2, new cjs.Rectangle(-144.2,-76.8,288.5,101.3), null);


(lib.text_1 = function(mode,startPosition,loop) {
	this.initialize(mode,startPosition,loop,{});

	// Layer 1
	this.text = new cjs.Text("®", "normal 600 12px 'Open Sans'", "#019EDC");
	this.text.textAlign = "center";
	this.text.lineHeight = 18;
	this.text.lineWidth = 37;
	this.text.parent = this;
	this.text.setTransform(16,-4.3);
	if(!lib.properties.webfonts['Open Sans']) {
		lib.webFontTxtInst['Open Sans'] = lib.webFontTxtInst['Open Sans'] || [];
		lib.webFontTxtInst['Open Sans'].push(this.text);
	}

	this.text_1 = new cjs.Text("If it Beat the", "normal 600 24px 'Open Sans'", "#019EDC");
	this.text_1.textAlign = "center";
	this.text_1.lineHeight = 34;
	this.text_1.lineWidth = 284;
	this.text_1.parent = this;
	this.text_1.setTransform(0,-35.3);
	if(!lib.properties.webfonts['Open Sans']) {
		lib.webFontTxtInst['Open Sans'] = lib.webFontTxtInst['Open Sans'] || [];
		lib.webFontTxtInst['Open Sans'].push(this.text_1);
	}

	this.text_2 = new cjs.Text("S&P 500  Index", "normal 700 35px 'Open Sans'", "#019EDC");
	this.text_2.textAlign = "center";
	this.text_2.lineHeight = 50;
	this.text_2.lineWidth = 284;
	this.text_2.parent = this;
	this.text_2.setTransform(0,-12.3);
	if(!lib.properties.webfonts['Open Sans']) {
		lib.webFontTxtInst['Open Sans'] = lib.webFontTxtInst['Open Sans'] || [];
		lib.webFontTxtInst['Open Sans'].push(this.text_2);
	}

	this.timeline.addTween(cjs.Tween.get({}).to({state:[{t:this.text_2},{t:this.text_1},{t:this.text}]}).wait(1));

}).prototype = getMCSymbolPrototype(lib.text_1, new cjs.Rectangle(-144.2,-37.3,288.5,74.7), null);


(lib.index_logo = function(mode,startPosition,loop) {
	this.initialize(mode,startPosition,loop,{});

	// Layer 1
	this.instance = new lib.index_logo_block();
	this.instance.parent = this;
	this.instance.setTransform(-72.5,-37);

	this.timeline.addTween(cjs.Tween.get(this.instance).wait(1));

}).prototype = getMCSymbolPrototype(lib.index_logo, new cjs.Rectangle(-72.5,-37,145,74), null);


(lib.click = function(mode,startPosition,loop) {
	this.initialize(mode,startPosition,loop,{});

	// Layer 1
	this.shape = new cjs.Shape();
	this.shape.graphics.f("rgba(51,255,0,0.6)").s().p("A3bTiMAAAgnDMAu3AAAMAAAAnDg");
	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 = null;


(lib.circle = function(mode,startPosition,loop) {
	this.initialize(mode,startPosition,loop,{});

	// Layer 1
	this.shape = new cjs.Shape();
	this.shape.graphics.f("#019EDC").s().p("A3fXgQpvpvAAtxQAAtwJvpvQJvpvNwAAQNxAAJvJvQJvJvAANwQAANxpvJvQpvJvtxAAQtwAApvpvg");

	this.timeline.addTween(cjs.Tween.get(this.shape).wait(1));

}).prototype = getMCSymbolPrototype(lib.circle, new cjs.Rectangle(-212.7,-212.7,425.4,425.4), null);


(lib.building = function(mode,startPosition,loop) {
	this.initialize(mode,startPosition,loop,{});

	// Layer 1
	this.instance = new lib._300x250_background();
	this.instance.parent = this;
	this.instance.setTransform(-287,-87.5);

	this.timeline.addTween(cjs.Tween.get(this.instance).wait(1));

}).prototype = getMCSymbolPrototype(lib.building, new cjs.Rectangle(-287,-87.5,574,175), null);


(lib.arrow = function(mode,startPosition,loop) {
	this.initialize(mode,startPosition,loop,{});

	// Layer 1
	this.shape = new cjs.Shape();
	this.shape.graphics.f("#7D0415").s().p("AiYkwIExExIkxEwg");

	this.timeline.addTween(cjs.Tween.get(this.shape).wait(1));

}).prototype = getMCSymbolPrototype(lib.arrow, new cjs.Rectangle(-15.2,-30.5,30.6,61.1), null);


(lib.cta_color_change = function(mode,startPosition,loop) {
	this.initialize(mode,startPosition,loop,{});

	// Layer 1
	this.instance = new lib.arrow();
	this.instance.parent = this;
	this.instance.setTransform(52.3,-4.9);

	this.text = new cjs.Text("®", "normal 700 6px 'Open Sans'", "#7D0415");
	this.text.lineHeight = 7;
	this.text.lineWidth = 7;
	this.text.parent = this;
	this.text.setTransform(20,-21.8);
	if(!lib.properties.webfonts['Open Sans']) {
		lib.webFontTxtInst['Open Sans'] = lib.webFontTxtInst['Open Sans'] || [];
		lib.webFontTxtInst['Open Sans'].push(this.text);
	}

	this.text_1 = new cjs.Text("S&P 500", "normal 800 14px 'Open Sans'", "#7D0415");
	this.text_1.textAlign = "right";
	this.text_1.lineHeight = 18;
	this.text_1.lineWidth = 61;
	this.text_1.parent = this;
	this.text_1.setTransform(19.3,-25.4);
	if(!lib.properties.webfonts['Open Sans']) {
		lib.webFontTxtInst['Open Sans'] = lib.webFontTxtInst['Open Sans'] || [];
		lib.webFontTxtInst['Open Sans'].push(this.text_1);
	}

	this.text_2 = new cjs.Text("chart", "normal 700 12px 'Open Sans'", "#7D0415");
	this.text_2.lineHeight = 15;
	this.text_2.lineWidth = 45;
	this.text_2.parent = this;
	this.text_2.setTransform(-21.7,11.5);
	if(!lib.properties.webfonts['Open Sans']) {
		lib.webFontTxtInst['Open Sans'] = lib.webFontTxtInst['Open Sans'] || [];
		lib.webFontTxtInst['Open Sans'].push(this.text_2);
	}

	this.text_3 = new cjs.Text("CLICK TO SEE\nthe", "normal 700 14px 'Open Sans'", "#7D0415");
	this.text_3.lineHeight = 16;
	this.text_3.lineWidth = 132;
	this.text_3.parent = this;
	this.text_3.setTransform(-65.9,-40.5);
	if(!lib.properties.webfonts['Open Sans']) {
		lib.webFontTxtInst['Open Sans'] = lib.webFontTxtInst['Open Sans'] || [];
		lib.webFontTxtInst['Open Sans'].push(this.text_3);
	}

	this.text_4 = new cjs.Text("Equal Weight\nIndex", "normal 800 14px 'Open Sans'", "#7D0415");
	this.text_4.lineHeight = 18;
	this.text_4.lineWidth = 103;
	this.text_4.parent = this;
	this.text_4.setTransform(-65.9,-9.2);
	if(!lib.properties.webfonts['Open Sans']) {
		lib.webFontTxtInst['Open Sans'] = lib.webFontTxtInst['Open Sans'] || [];
		lib.webFontTxtInst['Open Sans'].push(this.text_4);
	}

	this.timeline.addTween(cjs.Tween.get({}).to({state:[{t:this.text_4},{t:this.text_3},{t:this.text_2},{t:this.text_1},{t:this.text},{t:this.instance}]}).wait(1));

}).prototype = getMCSymbolPrototype(lib.cta_color_change, new cjs.Rectangle(-67.9,-42.5,136,85.1), null);


(lib.cta = function(mode,startPosition,loop) {
	this.initialize(mode,startPosition,loop,{});

	// cta
	this.ctaColorChange = new lib.cta_color_change();
	this.ctaColorChange.parent = this;
	this.ctaColorChange.setTransform(0,6.5);

	this.timeline.addTween(cjs.Tween.get(this.ctaColorChange).wait(1));

}).prototype = getMCSymbolPrototype(lib.cta, new cjs.Rectangle(-67.9,-36,136,85.1), null);


// stage content:
(lib.index_funds300x250v1 = function(mode,startPosition,loop) {
	this.initialize(mode,startPosition,loop,{});

	// timeline functions:
	this.frame_0 = function() {
		this.btn_main_link.addEventListener("click", fl_ClickToGoToWebPage);
		
		function fl_ClickToGoToWebPage() {
			window.open("http://index.world/#beat-chart", "_blank");
		}
	}
	this.frame_196 = function() {
		this.stop();
	}

	// actions tween:
	this.timeline.addTween(cjs.Tween.get(this).call(this.frame_0).wait(196).call(this.frame_196).wait(5));

	// click
	this.btn_main_link = new lib.click();
	this.btn_main_link.parent = this;
	this.btn_main_link.setTransform(150,125);
	new cjs.ButtonHelper(this.btn_main_link, 0, 1, 2, false, new lib.click(), 3);

	this.timeline.addTween(cjs.Tween.get(this.btn_main_link).to({_off:true},197).wait(4));

	// 1px border
	this.shape = new cjs.Shape();
	this.shape.graphics.f().s("#000000").ss(1.5,1,1).p("A3bzhMAu3AAAMAAAAnDMgu3AAAg");
	this.shape.setTransform(150,125);

	this.timeline.addTween(cjs.Tween.get(this.shape).to({_off:true},197).wait(4));

	// mask (mask)
	var mask = new cjs.Shape();
	mask._off = true;
	var mask_graphics_100 = new cjs.Graphics().p("ALVJ2QgGgGAAgJQAAgJAGgGQAGgGAJAAQAJAAAGAGQAGAGAAAJQAAAJgGAGQgGAGgJAAQgJAAgGgGg");
	var mask_graphics_101 = new cjs.Graphics().p("AIhLHQhPgrgahWQgahWAqhPQArhPBWgaQBWgaBPAqQBPArAaBWQAaBWgqBPQgrBQhWAZQghAKgfAAQg0AAgxgag");
	var mask_graphics_102 = new cjs.Graphics().p("AHbM0QijgkhaiNQhbiMAkijQAkikCNhaQCMhZCjAjQCjAkBbCMQBaCNgkCjQgkCjiMBaQhlBBhwAAQgtAAgugKg");
	var mask_graphics_103 = new cjs.Graphics().p("ABZL7QiwihgMjwQgMjwChixQChiyDwgLQDwgMCyCiQCyCgALDwQAMDwihCyQiiCyjwALIggABQjcAAimiXg");
	var mask_graphics_104 = new cjs.Graphics().p("AAxOHQkQiRhbkoQhbkoCRkQQCRkREnhbQEohbERCRQESCRBaEnQBbEoiRERQiRESkoBaQhyAjhuAAQixAAiohZg");
	var mask_graphics_105 = new cjs.Graphics().p("ABgQIQlqhei+lCQi+lDBelqQBdlrFDi+QFCi+FrBeQFrBdC+FDQC+FCheFrQhdFqlDC/QjYB/jrAAQhzAAh4gfg");
	var mask_graphics_106 = new cjs.Graphics().p("ADXRnQmygOkrk+Qkqk+AOm0QAOmzE+kqQE+kqGzAOQG0AOEqE+QEqE+gOGyQgOG0k+EqQkwEdmbAAIgnAAg");
	var mask_graphics_107 = new cjs.Graphics().p("An6PQQmUkbhWnmQhVnlEbmUQEbmUHlhWQHlhWGUEbQGVEbBVHmQBWHlkbGUQkbGUnmBWQhxAUhsAAQlmAAk2jZg");
	var mask_graphics_108 = new cjs.Graphics().p("AmuS2QnzjejEn/QjFn9DfnzQDen0H+jEQH+jEHzDeQH0DeDEH/QDEH9jeHzQjeH0n/DEQjvBcjtAAQkLAAkKh2g");
	var mask_graphics_109 = new cjs.Graphics().p("AkuV2QpDiOk1n+Qk1n+COpCQCOpDH+k1QH+k1JCCOQJDCOE1H+QE1H+iOJCQiOJDn+E1QldDUl+AAQiuAAi3gtg");
	var mask_graphics_110 = new cjs.Graphics().p("Ah2YJQp/gxminoQminnAxp/QAxp/HomiQHnmiJ/AxQJ/AxGiHoQGiHngxJ/QgxJ/noGiQmzF2ovAAQhAAAhEgFg");
	var mask_graphics_111 = new cjs.Graphics().p("Aw1TgQoFm+gyqqQgyqoG/oFQG+oFKqgyQKogyIFG/QIFG+AyKqQAyKom/IFQm+IFqqAyQhEAFhCAAQpWAAnRmSg");
	var mask_graphics_112 = new cjs.Graphics().p("Au0WyQpcmJiWrBQiVrAGKpcQGJpcLBiWQLAiVJcGKQJcGJCWLBQCVLAmKJcQmJJcrBCWQjCApi5AAQnrAAm2keg");
	var mask_graphics_113 = new cjs.Graphics().p("AshZjQqllMj0rKQj1rJFNqlQFMqlLKj0QLJj1KlFNQKlFMD0LKQD1LJlNKlQlMKlrKD0QkuBoknAAQmTAAmGjAg");
	var mask_graphics_114 = new cjs.Graphics().p("AqGbzQrhkMlMrHQlLrHEMrfQEMrhLHlMQLHlLLfEMQLhEMFMLHQFLLHkMLfQkMLhrHFMQmJC3mRAAQlDAAlJh4g");
	var mask_graphics_115 = new cjs.Graphics().p("AnvdjQsPjNmZq7QmZq8DOsOQDNsPK7mZQK8mZMODOQMPDNGZK7QGZK8jOMOQjNMPq7GZQnSEQn2AAQj8AAkGhFg");
	var mask_graphics_116 = new cjs.Graphics().p("Alje4QsyiTnbqrQnaqrCTsyQCTsyKrnbQKrnaMyCTQMyCTHbKrQHaKriTMyQiTMyqrHbQoJFqpZAAQi5AAjCgjg");
	var mask_graphics_117 = new cjs.Graphics().p("Ajof1QtMhgoQqZQoRqZBhtLQBgtMKZoQQKZoRNLBhQNMBgIQKZQIRKZhhNLQhgNMqZIQQozG/qyAAQh9AAiCgPg");
	var mask_graphics_118 = new cjs.Graphics().p("EgCFAggQtdg4o6qIQo6qIA3tdQA4tdKIo6QKIo6NdA3QNdA4I6KIQI6KIg3NdQg4NdqII6QpPIIsAAAQhJAAhNgFg");
	var mask_graphics_119 = new cjs.Graphics().p("EgA7Ag7QtpgZpXp7QpYp6AZtoQAZtpJ7pXQJ6pYNoAZQNpAZJXJ7QJYJ6gZNoQgZNpp7JXQphJAs9AAIhEgBg");
	var mask_graphics_120 = new cjs.Graphics().p("EgAOAhKQtvgGpppyQpppyAGtuQAGtvJyppQJyppNuAGQNvAGJpJyQJpJygGNuQgGNvpyJpQpsJjtjAAIgRAAg");
	var mask_graphics_121 = new cjs.Graphics().p("A3fXgQpvpvAAtxQAAtwJvpvQJvpvNwAAQNxAAJvJvQJvJvAANwQAANxpvJvQpvJvtxAAQtwAApvpvg");

	this.timeline.addTween(cjs.Tween.get(mask).to({graphics:null,x:0,y:0}).wait(100).to({graphics:mask_graphics_100,x:76.1,y:63.6}).wait(1).to({graphics:mask_graphics_101,x:86.5,y:73.7}).wait(1).to({graphics:mask_graphics_102,x:96.5,y:83}).wait(1).to({graphics:mask_graphics_103,x:105.9,y:91.4}).wait(1).to({graphics:mask_graphics_104,x:114.8,y:99.2}).wait(1).to({graphics:mask_graphics_105,x:122.9,y:106.3}).wait(1).to({graphics:mask_graphics_106,x:130.2,y:112.7}).wait(1).to({graphics:mask_graphics_107,x:136.9,y:118.5}).wait(1).to({graphics:mask_graphics_108,x:143,y:117}).wait(1).to({graphics:mask_graphics_109,x:148.3,y:115.7}).wait(1).to({graphics:mask_graphics_110,x:150.8,y:114.7}).wait(1).to({graphics:mask_graphics_111,x:149.2,y:114.1}).wait(1).to({graphics:mask_graphics_112,x:147.6,y:113.7}).wait(1).to({graphics:mask_graphics_113,x:146.1,y:113.5}).wait(1).to({graphics:mask_graphics_114,x:144.7,y:113.6}).wait(1).to({graphics:mask_graphics_115,x:143.4,y:113.8}).wait(1).to({graphics:mask_graphics_116,x:142.4,y:114}).wait(1).to({graphics:mask_graphics_117,x:141.5,y:114.3}).wait(1).to({graphics:mask_graphics_118,x:140.8,y:114.6}).wait(1).to({graphics:mask_graphics_119,x:140.4,y:114.8}).wait(1).to({graphics:mask_graphics_120,x:140.1,y:115}).wait(1).to({graphics:mask_graphics_121,x:150,y:125}).wait(80));

	// text 3
	this.instance = new lib.text_3();
	this.instance.parent = this;
	this.instance.setTransform(150,125);
	this.instance._off = true;

	var maskedShapeInstanceList = [this.instance];

	for(var shapedInstanceItr = 0; shapedInstanceItr < maskedShapeInstanceList.length; shapedInstanceItr++) {
		maskedShapeInstanceList[shapedInstanceItr].mask = mask;
	}

	this.timeline.addTween(cjs.Tween.get(this.instance).wait(100).to({_off:false},0).wait(39).to({y:141},15,cjs.Ease.get(1)).to({_off:true},43).wait(4));

	// text 2
	this.instance_1 = new lib.text_2();
	this.instance_1.parent = this;
	this.instance_1.setTransform(350.7,278,1,1,-90,0,0,0.1,-26.1);
	this.instance_1._off = true;

	this.timeline.addTween(cjs.Tween.get(this.instance_1).wait(54).to({_off:false},0).to({regX:0,regY:-26.2,rotation:0,x:150,y:158.5},21,cjs.Ease.get(1)).to({_off:true},46).wait(80));

	// text 1
	this.instance_2 = new lib.text_1();
	this.instance_2.parent = this;
	this.instance_2.setTransform(-37.3,-27.5,1,1,-90);
	this.instance_2._off = true;

	this.timeline.addTween(cjs.Tween.get(this.instance_2).wait(9).to({_off:false},0).to({rotation:0,x:150,y:92.6},20,cjs.Ease.get(1)).to({_off:true},92).wait(80));

	// logo
	this.instance_3 = new lib.index_logo();
	this.instance_3.parent = this;
	this.instance_3.setTransform(0,176,1,1,90,0,0,-72.5,-37);
	this.instance_3._off = true;

	this.timeline.addTween(cjs.Tween.get(this.instance_3).wait(162).to({_off:false},0).to({rotation:0},17,cjs.Ease.get(1)).to({_off:true},18).wait(4));

	// cta
	this.instance_4 = new lib.cta();
	this.instance_4.parent = this;
	this.instance_4.setTransform(72.8,211.1);
	this.instance_4.alpha = 0;
	this.instance_4._off = true;

	this.timeline.addTween(cjs.Tween.get(this.instance_4).wait(177).to({_off:false},0).to({x:223,y:212.1,alpha:1},17).to({_off:true},3).wait(4));

	// white bar
	this.instance_5 = new lib.white_bar();
	this.instance_5.parent = this;
	this.instance_5.setTransform(148.8,297.8);
	this.instance_5._off = true;

	this.timeline.addTween(cjs.Tween.get(this.instance_5).wait(139).to({_off:false},0).to({y:217.8},15,cjs.Ease.get(1)).to({_off:true},43).wait(4));

	// building
	this.instance_6 = new lib.building();
	this.instance_6.parent = this;
	this.instance_6.setTransform(150,87.5);
	this.instance_6.alpha = 0;
	this.instance_6._off = true;

	this.timeline.addTween(cjs.Tween.get(this.instance_6).wait(139).to({_off:false},0).to({alpha:1},15,cjs.Ease.get(1)).to({_off:true},43).wait(4));

	// circle
	this.instance_7 = new lib.circle();
	this.instance_7.parent = this;
	this.instance_7.setTransform(150,125,0.01,0.01,180,0,0,10,10);
	this.instance_7._off = true;

	this.timeline.addTween(cjs.Tween.get(this.instance_7).wait(100).to({_off:false},0).to({regX:0,regY:0,scaleX:1,scaleY:1,rotation:0},21,cjs.Ease.get(1)).to({_off:true},76).wait(4));

}).prototype = p = new cjs.MovieClip();
p.nominalBounds = new cjs.Rectangle(149,124,302,252);
// library properties:
lib.properties = {
	width: 300,
	height: 250,
	fps: 30,
	color: "#FFFFFF",
	opacity: 1.00,
	webfonts: {},
	manifest: [
		{src:"images/_300x250_background.jpg", id:"_300x250_background"},
		{src:"images/index_logo_block.png", id:"index_logo_block"}
	],
	preloads: []
};




})(lib = lib||{}, images = images||{}, createjs = createjs||{}, ss = ss||{}, AdobeAn = AdobeAn||{});
var lib, images, createjs, ss, AdobeAn;
              
            
!
999px

Console