(function (cjs, an) {

var p; // shortcut to reference prototypes
var lib={};var ss={};var img={};
lib.ssMetadata = [
		{name:"actividad2b_atlas_1", frames: [[0,0,1471,1471]]},
		{name:"actividad2b_atlas_2", frames: [[750,1746,271,160],[1628,692,271,160],[1628,854,271,160],[1023,1772,250,160],[1628,1016,333,123],[1275,1772,250,160],[1628,1141,333,123],[750,1934,282,80],[0,1550,1213,194],[1215,1544,748,226],[1527,1772,353,92],[0,1746,748,192],[0,1940,530,92],[0,770,1063,498],[532,1940,210,104],[1034,1934,210,104],[1863,1933,178,104],[1246,1934,178,104],[1527,1933,334,68],[1368,514,544,91],[1114,1284,855,258],[0,1270,1112,278],[1527,1866,479,65],[1368,607,593,83],[0,0,1366,768],[1114,770,512,512],[1368,0,512,512]]},
		{name:"actividad2b_atlas_3", frames: [[148,360,282,56],[0,556,282,32],[284,556,282,32],[432,360,282,56],[716,360,282,56],[148,418,282,56],[568,556,282,32],[0,590,282,32],[432,418,282,56],[716,418,282,56],[0,0,178,104],[180,0,178,104],[360,0,178,104],[540,0,178,104],[720,0,178,104],[0,106,178,104],[180,106,178,104],[0,476,193,78],[195,476,193,78],[390,476,193,78],[585,476,193,78],[360,106,146,125],[508,106,146,125],[656,106,146,125],[804,106,146,125],[0,212,146,125],[148,212,146,125],[296,233,146,125],[444,233,146,125],[592,233,146,125],[740,233,146,125],[0,339,146,125]]}
];


(lib.AnMovieClip = function(){
	this.actionFrames = [];
	this.ignorePause = false;
	this.gotoAndPlay = function(positionOrLabel){
		cjs.MovieClip.prototype.gotoAndPlay.call(this,positionOrLabel);
	}
	this.play = function(){
		cjs.MovieClip.prototype.play.call(this);
	}
	this.gotoAndStop = function(positionOrLabel){
		cjs.MovieClip.prototype.gotoAndStop.call(this,positionOrLabel);
	}
	this.stop = function(){
		cjs.MovieClip.prototype.stop.call(this);
	}
}).prototype = p = new cjs.MovieClip();
// symbols:



(lib.CachedBmp_642 = function() {
	this.initialize(ss["actividad2b_atlas_2"]);
	this.gotoAndStop(0);
}).prototype = p = new cjs.Sprite();



(lib.CachedBmp_640 = function() {
	this.initialize(ss["actividad2b_atlas_2"]);
	this.gotoAndStop(1);
}).prototype = p = new cjs.Sprite();



(lib.CachedBmp_638 = function() {
	this.initialize(ss["actividad2b_atlas_2"]);
	this.gotoAndStop(2);
}).prototype = p = new cjs.Sprite();



(lib.CachedBmp_636 = function() {
	this.initialize(ss["actividad2b_atlas_2"]);
	this.gotoAndStop(3);
}).prototype = p = new cjs.Sprite();



(lib.CachedBmp_639 = function() {
	this.initialize(ss["actividad2b_atlas_2"]);
	this.gotoAndStop(4);
}).prototype = p = new cjs.Sprite();



(lib.CachedBmp_634 = function() {
	this.initialize(ss["actividad2b_atlas_2"]);
	this.gotoAndStop(5);
}).prototype = p = new cjs.Sprite();



(lib.CachedBmp_641 = function() {
	this.initialize(ss["actividad2b_atlas_2"]);
	this.gotoAndStop(6);
}).prototype = p = new cjs.Sprite();



(lib.CachedBmp_632 = function() {
	this.initialize(ss["actividad2b_atlas_3"]);
	this.gotoAndStop(0);
}).prototype = p = new cjs.Sprite();



(lib.CachedBmp_631 = function() {
	this.initialize(ss["actividad2b_atlas_3"]);
	this.gotoAndStop(1);
}).prototype = p = new cjs.Sprite();



(lib.CachedBmp_630 = function() {
	this.initialize(ss["actividad2b_atlas_3"]);
	this.gotoAndStop(2);
}).prototype = p = new cjs.Sprite();



(lib.CachedBmp_629 = function() {
	this.initialize(ss["actividad2b_atlas_3"]);
	this.gotoAndStop(3);
}).prototype = p = new cjs.Sprite();



(lib.CachedBmp_628 = function() {
	this.initialize(ss["actividad2b_atlas_3"]);
	this.gotoAndStop(4);
}).prototype = p = new cjs.Sprite();



(lib.CachedBmp_627 = function() {
	this.initialize(ss["actividad2b_atlas_3"]);
	this.gotoAndStop(5);
}).prototype = p = new cjs.Sprite();



(lib.CachedBmp_626 = function() {
	this.initialize(ss["actividad2b_atlas_3"]);
	this.gotoAndStop(6);
}).prototype = p = new cjs.Sprite();



(lib.CachedBmp_625 = function() {
	this.initialize(ss["actividad2b_atlas_3"]);
	this.gotoAndStop(7);
}).prototype = p = new cjs.Sprite();



(lib.CachedBmp_624 = function() {
	this.initialize(ss["actividad2b_atlas_3"]);
	this.gotoAndStop(8);
}).prototype = p = new cjs.Sprite();



(lib.CachedBmp_623 = function() {
	this.initialize(ss["actividad2b_atlas_3"]);
	this.gotoAndStop(9);
}).prototype = p = new cjs.Sprite();



(lib.CachedBmp_622 = function() {
	this.initialize(ss["actividad2b_atlas_2"]);
	this.gotoAndStop(7);
}).prototype = p = new cjs.Sprite();



(lib.CachedBmp_621 = function() {
	this.initialize(ss["actividad2b_atlas_2"]);
	this.gotoAndStop(8);
}).prototype = p = new cjs.Sprite();



(lib.CachedBmp_620 = function() {
	this.initialize(ss["actividad2b_atlas_2"]);
	this.gotoAndStop(9);
}).prototype = p = new cjs.Sprite();



(lib.CachedBmp_619 = function() {
	this.initialize(ss["actividad2b_atlas_2"]);
	this.gotoAndStop(10);
}).prototype = p = new cjs.Sprite();



(lib.CachedBmp_618 = function() {
	this.initialize(ss["actividad2b_atlas_2"]);
	this.gotoAndStop(11);
}).prototype = p = new cjs.Sprite();



(lib.CachedBmp_617 = function() {
	this.initialize(ss["actividad2b_atlas_2"]);
	this.gotoAndStop(12);
}).prototype = p = new cjs.Sprite();



(lib.CachedBmp_616 = function() {
	this.initialize(ss["actividad2b_atlas_2"]);
	this.gotoAndStop(13);
}).prototype = p = new cjs.Sprite();



(lib.CachedBmp_615 = function() {
	this.initialize(ss["actividad2b_atlas_2"]);
	this.gotoAndStop(14);
}).prototype = p = new cjs.Sprite();



(lib.CachedBmp_614 = function() {
	this.initialize(ss["actividad2b_atlas_2"]);
	this.gotoAndStop(15);
}).prototype = p = new cjs.Sprite();



(lib.CachedBmp_613 = function() {
	this.initialize(ss["actividad2b_atlas_2"]);
	this.gotoAndStop(16);
}).prototype = p = new cjs.Sprite();



(lib.CachedBmp_612 = function() {
	this.initialize(ss["actividad2b_atlas_2"]);
	this.gotoAndStop(17);
}).prototype = p = new cjs.Sprite();



(lib.CachedBmp_611 = function() {
	this.initialize(ss["actividad2b_atlas_3"]);
	this.gotoAndStop(10);
}).prototype = p = new cjs.Sprite();



(lib.CachedBmp_610 = function() {
	this.initialize(ss["actividad2b_atlas_3"]);
	this.gotoAndStop(11);
}).prototype = p = new cjs.Sprite();



(lib.CachedBmp_609 = function() {
	this.initialize(ss["actividad2b_atlas_3"]);
	this.gotoAndStop(12);
}).prototype = p = new cjs.Sprite();



(lib.CachedBmp_608 = function() {
	this.initialize(ss["actividad2b_atlas_3"]);
	this.gotoAndStop(13);
}).prototype = p = new cjs.Sprite();



(lib.CachedBmp_607 = function() {
	this.initialize(ss["actividad2b_atlas_3"]);
	this.gotoAndStop(14);
}).prototype = p = new cjs.Sprite();



(lib.CachedBmp_606 = function() {
	this.initialize(ss["actividad2b_atlas_3"]);
	this.gotoAndStop(15);
}).prototype = p = new cjs.Sprite();



(lib.CachedBmp_605 = function() {
	this.initialize(ss["actividad2b_atlas_3"]);
	this.gotoAndStop(16);
}).prototype = p = new cjs.Sprite();



(lib.CachedBmp_604 = function() {
	this.initialize(ss["actividad2b_atlas_2"]);
	this.gotoAndStop(18);
}).prototype = p = new cjs.Sprite();



(lib.CachedBmp_603 = function() {
	this.initialize(ss["actividad2b_atlas_2"]);
	this.gotoAndStop(19);
}).prototype = p = new cjs.Sprite();



(lib.CachedBmp_602 = function() {
	this.initialize(ss["actividad2b_atlas_3"]);
	this.gotoAndStop(17);
}).prototype = p = new cjs.Sprite();



(lib.CachedBmp_601 = function() {
	this.initialize(ss["actividad2b_atlas_3"]);
	this.gotoAndStop(18);
}).prototype = p = new cjs.Sprite();



(lib.CachedBmp_600 = function() {
	this.initialize(ss["actividad2b_atlas_3"]);
	this.gotoAndStop(19);
}).prototype = p = new cjs.Sprite();



(lib.CachedBmp_599 = function() {
	this.initialize(ss["actividad2b_atlas_3"]);
	this.gotoAndStop(20);
}).prototype = p = new cjs.Sprite();



(lib.CachedBmp_598 = function() {
	this.initialize(ss["actividad2b_atlas_2"]);
	this.gotoAndStop(20);
}).prototype = p = new cjs.Sprite();



(lib.CachedBmp_597 = function() {
	this.initialize(ss["actividad2b_atlas_2"]);
	this.gotoAndStop(21);
}).prototype = p = new cjs.Sprite();



(lib.CachedBmp_596 = function() {
	this.initialize(ss["actividad2b_atlas_2"]);
	this.gotoAndStop(22);
}).prototype = p = new cjs.Sprite();



(lib.CachedBmp_595 = function() {
	this.initialize(ss["actividad2b_atlas_2"]);
	this.gotoAndStop(23);
}).prototype = p = new cjs.Sprite();



(lib.animacion0065 = function() {
	this.initialize(ss["actividad2b_atlas_2"]);
	this.gotoAndStop(24);
}).prototype = p = new cjs.Sprite();



(lib.botonnext = function() {
	this.initialize(ss["actividad2b_atlas_1"]);
	this.gotoAndStop(0);
}).prototype = p = new cjs.Sprite();



(lib.drag = function() {
	this.initialize(ss["actividad2b_atlas_2"]);
	this.gotoAndStop(25);
}).prototype = p = new cjs.Sprite();



(lib.MARCO = function() {
	this.initialize(img.MARCO);
}).prototype = p = new cjs.Bitmap();
p.nominalBounds = new cjs.Rectangle(0,0,5932,3442);


(lib.openhands = function() {
	this.initialize(ss["actividad2b_atlas_2"]);
	this.gotoAndStop(26);
}).prototype = p = new cjs.Sprite();



(lib.pieza_1 = function() {
	this.initialize(ss["actividad2b_atlas_3"]);
	this.gotoAndStop(21);
}).prototype = p = new cjs.Sprite();



(lib.pieza_10 = function() {
	this.initialize(ss["actividad2b_atlas_3"]);
	this.gotoAndStop(22);
}).prototype = p = new cjs.Sprite();



(lib.pieza_11 = function() {
	this.initialize(ss["actividad2b_atlas_3"]);
	this.gotoAndStop(23);
}).prototype = p = new cjs.Sprite();



(lib.pieza_2 = function() {
	this.initialize(ss["actividad2b_atlas_3"]);
	this.gotoAndStop(24);
}).prototype = p = new cjs.Sprite();



(lib.pieza_3 = function() {
	this.initialize(ss["actividad2b_atlas_3"]);
	this.gotoAndStop(25);
}).prototype = p = new cjs.Sprite();



(lib.pieza_4 = function() {
	this.initialize(ss["actividad2b_atlas_3"]);
	this.gotoAndStop(26);
}).prototype = p = new cjs.Sprite();



(lib.pieza_5 = function() {
	this.initialize(ss["actividad2b_atlas_3"]);
	this.gotoAndStop(27);
}).prototype = p = new cjs.Sprite();



(lib.pieza_6 = function() {
	this.initialize(ss["actividad2b_atlas_3"]);
	this.gotoAndStop(28);
}).prototype = p = new cjs.Sprite();



(lib.pieza_7 = function() {
	this.initialize(ss["actividad2b_atlas_3"]);
	this.gotoAndStop(29);
}).prototype = p = new cjs.Sprite();



(lib.pieza_8 = function() {
	this.initialize(ss["actividad2b_atlas_3"]);
	this.gotoAndStop(30);
}).prototype = p = new cjs.Sprite();



(lib.pieza_9 = function() {
	this.initialize(ss["actividad2b_atlas_3"]);
	this.gotoAndStop(31);
}).prototype = p = new cjs.Sprite();



(lib.pj12 = function() {
	this.initialize(img.pj12);
}).prototype = p = new cjs.Bitmap();
p.nominalBounds = new cjs.Rectangle(0,0,1473,3726);// helper functions:

function mc_symbol_clone() {
	var clone = this._cloneProps(new this.constructor(this.mode, this.startPosition, this.loop, this.reversed));
	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.sig = function(mode,startPosition,loop,reversed) {
if (loop == null) { loop = true; }
if (reversed == null) { reversed = false; }
	var props = new Object();
	props.mode = mode;
	props.startPosition = startPosition;
	props.labels = {};
	props.loop = loop;
	props.reversed = reversed;
	cjs.MovieClip.apply(this,[props]);

	// Capa_1
	this.instance = new lib.CachedBmp_638();
	this.instance.setTransform(-136.1,19,0.5,0.5);

	this.instance_1 = new lib.botonnext();
	this.instance_1.setTransform(4,0,0.077,0.077);

	this.instance_2 = new lib.CachedBmp_641();
	this.instance_2.setTransform(-142.75,25.55,0.5,0.5);

	this.instance_3 = new lib.CachedBmp_640();
	this.instance_3.setTransform(-136.1,19,0.5,0.5);

	this.instance_4 = new lib.CachedBmp_639();
	this.instance_4.setTransform(-142.75,25.55,0.5,0.5);

	this.instance_5 = new lib.CachedBmp_642();
	this.instance_5.setTransform(-136.1,19,0.5,0.5);

	this.timeline.addTween(cjs.Tween.get({}).to({state:[{t:this.instance_2},{t:this.instance_1},{t:this.instance}]}).to({state:[{t:this.instance_4},{t:this.instance_1},{t:this.instance_3}]},1).to({state:[{t:this.instance_2},{t:this.instance_1},{t:this.instance_5}]},2).wait(1));

	this._renderFirstFrame();

}).prototype = p = new cjs.MovieClip();
p.nominalBounds = new cjs.Rectangle(-142.7,0,259.9,113.2);


(lib.Play = function(mode,startPosition,loop,reversed) {
if (loop == null) { loop = true; }
if (reversed == null) { reversed = false; }
	var props = new Object();
	props.mode = mode;
	props.startPosition = startPosition;
	props.labels = {};
	props.loop = loop;
	props.reversed = reversed;
	cjs.MovieClip.apply(this,[props]);

	// Capa_1
	this.instance = new lib.CachedBmp_634();
	this.instance.setTransform(-134.75,19.1,0.5,0.5);

	this.instance_1 = new lib.botonnext();
	this.instance_1.setTransform(0,0,0.077,0.077);

	this.instance_2 = new lib.CachedBmp_641();
	this.instance_2.setTransform(-146.65,25.65,0.5,0.5);

	this.instance_3 = new lib.CachedBmp_636();
	this.instance_3.setTransform(-134.75,19.1,0.5,0.5);

	this.instance_4 = new lib.CachedBmp_639();
	this.instance_4.setTransform(-146.65,25.65,0.5,0.5);

	this.shape = new cjs.Shape();
	this.shape.graphics.f("#CC3300").s().p("AtAE1IAAppIaBAAIAAJpg");
	this.shape.setTransform(-63.35,56.5);

	this.timeline.addTween(cjs.Tween.get({}).to({state:[{t:this.instance_2},{t:this.instance_1},{t:this.instance}]}).to({state:[{t:this.instance_4},{t:this.instance_3},{t:this.instance_1}]},1).to({state:[{t:this.shape},{t:this.instance_1}]},2).wait(1));

	this._renderFirstFrame();

}).prototype = p = new cjs.MovieClip();
p.nominalBounds = new cjs.Rectangle(-146.6,0,259.8,113.2);


(lib.opcion = function(mode,startPosition,loop,reversed) {
if (loop == null) { loop = true; }
if (reversed == null) { reversed = false; }
	var props = new Object();
	props.mode = mode;
	props.startPosition = startPosition;
	props.labels = {p1:0,p2:1,p3:2,p4:3,p5:4,p6:5,p7:6,p8:7,p9:8,p10:9,p11:10};
	props.loop = loop;
	props.reversed = reversed;
	cjs.MovieClip.apply(this,[props]);

	// timeline functions:
	this.frame_0 = function() {
		this.stop();
	}

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

	// text
	this.instance = new lib.CachedBmp_622();
	this.instance.setTransform(-69.1,43.45,0.5,0.5);

	this.instance_1 = new lib.CachedBmp_623();
	this.instance_1.setTransform(-68.95,42.15,0.5,0.5);

	this.instance_2 = new lib.CachedBmp_624();
	this.instance_2.setTransform(-68,45.55,0.5,0.5);

	this.instance_3 = new lib.CachedBmp_625();
	this.instance_3.setTransform(-68.95,36.55,0.5,0.5);

	this.instance_4 = new lib.CachedBmp_626();
	this.instance_4.setTransform(-68.95,42.55,0.5,0.5);

	this.instance_5 = new lib.CachedBmp_627();
	this.instance_5.setTransform(-68.95,42.55,0.5,0.5);

	this.instance_6 = new lib.CachedBmp_628();
	this.instance_6.setTransform(-68.95,44.55,0.5,0.5);

	this.instance_7 = new lib.CachedBmp_629();
	this.instance_7.setTransform(-68.95,50.55,0.5,0.5);

	this.instance_8 = new lib.CachedBmp_630();
	this.instance_8.setTransform(-68.95,50.55,0.5,0.5);

	this.instance_9 = new lib.CachedBmp_631();
	this.instance_9.setTransform(-68.95,50.55,0.5,0.5);

	this.instance_10 = new lib.CachedBmp_632();
	this.instance_10.setTransform(-68.95,50.55,0.5,0.5);

	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_4}]},1).to({state:[{t:this.instance_5}]},1).to({state:[{t:this.instance_6}]},1).to({state:[{t:this.instance_7}]},1).to({state:[{t:this.instance_8}]},1).to({state:[{t:this.instance_9}]},1).to({state:[{t:this.instance_10}]},1).wait(1));

	// bg_text
	this.shape = new cjs.Shape();
	this.shape.graphics.f("#FFFFFF").s().p("ArBDHIAAmNIWDAAIAAGNg");
	this.shape.setTransform(-2.525,63.225);

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

	// image
	this.instance_11 = new lib.pieza_1();
	this.instance_11.setTransform(-73,-63);

	this.instance_12 = new lib.pieza_2();
	this.instance_12.setTransform(-73,-63);

	this.instance_13 = new lib.pieza_3();
	this.instance_13.setTransform(-73,-63);

	this.instance_14 = new lib.pieza_4();
	this.instance_14.setTransform(-73,-63);

	this.instance_15 = new lib.pieza_5();
	this.instance_15.setTransform(-73,-63);

	this.instance_16 = new lib.pieza_6();
	this.instance_16.setTransform(-73,-63);

	this.instance_17 = new lib.pieza_7();
	this.instance_17.setTransform(-73,-63);

	this.instance_18 = new lib.pieza_8();
	this.instance_18.setTransform(-73,-63);

	this.instance_19 = new lib.pieza_9();
	this.instance_19.setTransform(-73,-63);

	this.instance_20 = new lib.pieza_10();
	this.instance_20.setTransform(-73,-63);

	this.instance_21 = new lib.pieza_11();
	this.instance_21.setTransform(-73,-63);

	this.timeline.addTween(cjs.Tween.get({}).to({state:[{t:this.instance_11}]}).to({state:[{t:this.instance_12}]},1).to({state:[{t:this.instance_13}]},1).to({state:[{t:this.instance_14}]},1).to({state:[{t:this.instance_15}]},1).to({state:[{t:this.instance_16}]},1).to({state:[{t:this.instance_17}]},1).to({state:[{t:this.instance_18}]},1).to({state:[{t:this.instance_19}]},1).to({state:[{t:this.instance_20}]},1).to({state:[{t:this.instance_21}]},1).wait(1));

	this._renderFirstFrame();

}).prototype = p = new cjs.MovieClip();
p.nominalBounds = new cjs.Rectangle(-73.1,-63,146.1,146.5);


(lib.mano_cerrada_clip = function(mode,startPosition,loop,reversed) {
if (loop == null) { loop = true; }
if (reversed == null) { reversed = false; }
	var props = new Object();
	props.mode = mode;
	props.startPosition = startPosition;
	props.labels = {};
	props.loop = loop;
	props.reversed = reversed;
	cjs.MovieClip.apply(this,[props]);

	// Capa_1
	this.instance = new lib.drag();
	this.instance.setTransform(-62.4,-62.4,0.2436,0.2436);

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

	this._renderFirstFrame();

}).prototype = getMCSymbolPrototype(lib.mano_cerrada_clip, new cjs.Rectangle(-62.4,-62.4,124.8,124.8), null);


(lib.mano_abierta_clip = function(mode,startPosition,loop,reversed) {
if (loop == null) { loop = true; }
if (reversed == null) { reversed = false; }
	var props = new Object();
	props.mode = mode;
	props.startPosition = startPosition;
	props.labels = {};
	props.loop = loop;
	props.reversed = reversed;
	cjs.MovieClip.apply(this,[props]);

	// Capa_1
	this.instance = new lib.openhands();
	this.instance.setTransform(-81.45,-81.45,0.3182,0.3182);

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

	this._renderFirstFrame();

}).prototype = getMCSymbolPrototype(lib.mano_abierta_clip, new cjs.Rectangle(-81.4,-81.4,162.9,162.9), null);


(lib.Interpolación6 = function(mode,startPosition,loop,reversed) {
if (loop == null) { loop = true; }
if (reversed == null) { reversed = false; }
	var props = new Object();
	props.mode = mode;
	props.startPosition = startPosition;
	props.labels = {};
	props.loop = loop;
	props.reversed = reversed;
	cjs.MovieClip.apply(this,[props]);

	// Capa_1
	this.instance = new lib.pj12();
	this.instance.setTransform(-102.95,-260.4,0.1398,0.1398);

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

	this._renderFirstFrame();

}).prototype = p = new cjs.MovieClip();
p.nominalBounds = new cjs.Rectangle(-102.9,-260.4,205.9,520.8);


(lib.fondo_instruccion = function(mode,startPosition,loop,reversed) {
if (loop == null) { loop = true; }
if (reversed == null) { reversed = false; }
	var props = new Object();
	props.mode = mode;
	props.startPosition = startPosition;
	props.labels = {};
	props.loop = loop;
	props.reversed = reversed;
	cjs.MovieClip.apply(this,[props]);

	// Capa_1
	this.shape = new cjs.Shape();
	this.shape.graphics.f("#000000").s().p("EhLKAx4MAAAhjvMCWVAAAMAAABjvg");

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

	this._renderFirstFrame();

}).prototype = getMCSymbolPrototype(lib.fondo_instruccion, new cjs.Rectangle(-481.1,-319.2,962.2,638.5), null);


(lib.CajaRespuesta = function(mode,startPosition,loop,reversed) {
if (loop == null) { loop = true; }
if (reversed == null) { reversed = false; }
	var props = new Object();
	props.mode = mode;
	props.startPosition = startPosition;
	props.labels = {r1:1,r2:2,r3:3,r4:4,r5:5,r6:6,r7:7,r8:8,r9:9,r10:10,r11:11,n1:12,n2:13,n3:14,n4:15,n5:16,n6:17,n7:18,n8:19,n9:20,n10:21,n11:22};
	props.loop = loop;
	props.reversed = reversed;
	cjs.MovieClip.apply(this,[props]);

	// timeline functions:
	this.frame_0 = function() {
		this.stop();
	}

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

	// marco
	this.shape = new cjs.Shape();
	this.shape.graphics.f().s("#993300").ss(10,1,1).p("Ap6p6IT1AAQBkAAAABlIAAQrQAABlhkAAIz1AAQhkAAAAhlIAAwrQAAhlBkAAg");
	this.shape.setTransform(0.15,1.4);
	this.shape._off = true;

	this.timeline.addTween(cjs.Tween.get(this.shape).wait(1).to({_off:false},0).to({_off:true},11).wait(11));

	// img
	this.instance = new lib.pieza_1();
	this.instance.setTransform(-73,-60);

	this.instance_1 = new lib.pieza_2();
	this.instance_1.setTransform(-72,-60);

	this.instance_2 = new lib.pieza_3();
	this.instance_2.setTransform(-72,-60);

	this.instance_3 = new lib.pieza_4();
	this.instance_3.setTransform(-73,-63);

	this.instance_4 = new lib.pieza_5();
	this.instance_4.setTransform(-72,-61);

	this.instance_5 = new lib.pieza_6();
	this.instance_5.setTransform(-73,-61);

	this.instance_6 = new lib.pieza_7();
	this.instance_6.setTransform(-73,-63);

	this.instance_7 = new lib.pieza_8();
	this.instance_7.setTransform(-72,-61);

	this.instance_8 = new lib.pieza_9();
	this.instance_8.setTransform(-73,-63);

	this.instance_9 = new lib.pieza_10();
	this.instance_9.setTransform(-73,-62);

	this.instance_10 = new lib.pieza_11();
	this.instance_10.setTransform(-74,-62);

	this.instance_11 = new lib.CachedBmp_605();
	this.instance_11.setTransform(-46.75,-30,0.5,0.5);

	this.instance_12 = new lib.CachedBmp_606();
	this.instance_12.setTransform(-46.75,-30,0.5,0.5);

	this.instance_13 = new lib.CachedBmp_607();
	this.instance_13.setTransform(-46.75,-30,0.5,0.5);

	this.instance_14 = new lib.CachedBmp_608();
	this.instance_14.setTransform(-46.75,-30,0.5,0.5);

	this.instance_15 = new lib.CachedBmp_609();
	this.instance_15.setTransform(-46.75,-30,0.5,0.5);

	this.instance_16 = new lib.CachedBmp_610();
	this.instance_16.setTransform(-46.75,-30,0.5,0.5);

	this.instance_17 = new lib.CachedBmp_611();
	this.instance_17.setTransform(-46.75,-30,0.5,0.5);

	this.instance_18 = new lib.CachedBmp_612();
	this.instance_18.setTransform(-46.75,-30,0.5,0.5);

	this.instance_19 = new lib.CachedBmp_613();
	this.instance_19.setTransform(-46.75,-30,0.5,0.5);

	this.instance_20 = new lib.CachedBmp_614();
	this.instance_20.setTransform(-54.75,-30,0.5,0.5);

	this.instance_21 = new lib.CachedBmp_615();
	this.instance_21.setTransform(-54.75,-30,0.5,0.5);

	this.timeline.addTween(cjs.Tween.get({}).to({state:[]}).to({state:[{t:this.instance}]},1).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_4}]},1).to({state:[{t:this.instance_5}]},1).to({state:[{t:this.instance_6}]},1).to({state:[{t:this.instance_7}]},1).to({state:[{t:this.instance_8}]},1).to({state:[{t:this.instance_9}]},1).to({state:[{t:this.instance_10}]},1).to({state:[{t:this.instance_11}]},1).to({state:[{t:this.instance_12}]},1).to({state:[{t:this.instance_13}]},1).to({state:[{t:this.instance_14}]},1).to({state:[{t:this.instance_15}]},1).to({state:[{t:this.instance_16}]},1).to({state:[{t:this.instance_17}]},1).to({state:[{t:this.instance_18}]},1).to({state:[{t:this.instance_19}]},1).to({state:[{t:this.instance_20}]},1).to({state:[{t:this.instance_21}]},1).wait(1));

	// fondo
	this.shape_1 = new cjs.Shape();
	this.shape_1.graphics.f("#FFFFFF").s().p("Ap5J7QhlAAAAhpIAAwjQAAhpBlAAITzAAQBlAAAABpIAAQjQAABphlAAg");

	this.timeline.addTween(cjs.Tween.get(this.shape_1).wait(23));

	this._renderFirstFrame();

}).prototype = p = new cjs.MovieClip();
p.nominalBounds = new cjs.Rectangle(-78.3,-67.1,157,137);


(lib.btnFinalizar = function(mode,startPosition,loop,reversed) {
if (loop == null) { loop = true; }
if (reversed == null) { reversed = false; }
	var props = new Object();
	props.mode = mode;
	props.startPosition = startPosition;
	props.labels = {};
	props.loop = loop;
	props.reversed = reversed;
	cjs.MovieClip.apply(this,[props]);

	// Layer_1
	this.instance = new lib.CachedBmp_604();
	this.instance.setTransform(-86.9,-16.7,0.5,0.5);

	this.instance_1 = new lib.CachedBmp_603();
	this.instance_1.setTransform(-136.05,-22.65,0.5,0.5);

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

	this._renderFirstFrame();

}).prototype = p = new cjs.MovieClip();
p.nominalBounds = new cjs.Rectangle(-136,-22.6,272,45.5);


(lib.btn_reintentar = function(mode,startPosition,loop,reversed) {
if (loop == null) { loop = true; }
if (reversed == null) { reversed = false; }
	var props = new Object();
	props.mode = mode;
	props.startPosition = startPosition;
	props.labels = {};
	props.loop = loop;
	props.reversed = reversed;
	cjs.MovieClip.apply(this,[props]);

	// Capa_2
	this.shape = new cjs.Shape();
	this.shape.graphics.f("#FFFFFF").s().p("AIrBpIgXhXIgRAAIAABXIggAAIAAjRIAyAAQAXAAANANQAOAOAAAXIAAAXQAAAPgGAKQgGALgKAGIAaBegAIDgKIARAAQAJAAAFgGQAFgFAAgJIAAgZQAAgJgFgFQgFgFgJAAIgRAAgAGqBpIgHguIgiAAIgHAuIggAAIAjjRIArAAIAjDRgAGfAcIgNhXIgNBXIAaAAgAEKBpIAAizIgjAAIAAgeIBlAAIAAAeIgiAAIAACzgACtBpIgqiFIAACFIgfAAIAAjRIAjAAIAoCMIAAiMIAfAAIAADRgAgQBpIAAjRIBZAAIAAAeIg6AAIAAA6IAuAAIAAAeIguAAIAAA9IA6AAIAAAegAhrBpIAAizIgjAAIAAgeIBmAAIAAAeIgjAAIAACzgAjIBpIgqiFIAACFIgfAAIAAjRIAjAAIApCMIAAiMIAfAAIAADRgAlTBpIAAjRIAfAAIAADRgAnIBpIAAjRIBaAAIAAAeIg6AAIAAA6IAuAAIAAAeIguAAIAAA9IA6AAIAAAegAoDBpIgXhXIgRAAIAABXIgfAAIAAjRIAxAAQAXAAAOANQANAOAAAXIAAAXQAAAPgFAKQgGALgLAGIAbBegAorgKIARAAQAJAAAFgGQAGgFAAgJIAAgZQAAgJgGgFQgFgFgJAAIgRAAg");
	this.shape.setTransform(3.025,-0.75);

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

	// Capa_1
	this.shape_1 = new cjs.Shape();
	this.shape_1.graphics.f("#CF0E25").s().p("AoTDvQhjAAhGhGQhGhGAAhjQAAhiBGhGQBGhGBjAAIQnAAQBjAABGBGQBGBGAABiQAABjhGBGQhGBGhjAAg");
	this.shape_1.setTransform(-0.025,0.025);

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

	this._renderFirstFrame();

}).prototype = p = new cjs.MovieClip();
p.nominalBounds = new cjs.Rectangle(-77.1,-23.8,154.2,47.7);


(lib.btn_califcar_act = function(mode,startPosition,loop,reversed) {
if (loop == null) { loop = true; }
if (reversed == null) { reversed = false; }
	var props = new Object();
	props.mode = mode;
	props.startPosition = startPosition;
	props.labels = {};
	props.loop = loop;
	props.reversed = reversed;
	cjs.MovieClip.apply(this,[props]);

	// Layer_2
	this.instance = new lib.CachedBmp_599();
	this.instance.setTransform(-45.05,-18.15,0.4667,0.4667);

	this.instance_1 = new lib.CachedBmp_600();
	this.instance_1.setTransform(-45.05,-18.15,0.4667,0.4667);

	this.instance_2 = new lib.CachedBmp_601();
	this.instance_2.setTransform(-45.05,-18.15,0.4667,0.4667);

	this.instance_3 = new lib.CachedBmp_602();
	this.instance_3.setTransform(-45.05,-18.15,0.4667,0.4667);

	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).wait(1));

	// Capa_1
	this.shape = new cjs.Shape();
	this.shape.graphics.f("#D00F25").s().p("AoTDvQhiAAhHhGQhFhGAAhjQAAhiBFhGQBHhGBiAAIQnAAQBjAABGBGQBGBGAABiQAABjhGBGQhGBGhjAAg");

	this.shape_1 = new cjs.Shape();
	this.shape_1.graphics.f("#FFFFFF").s().p("AoTDvQhiAAhHhGQhFhGAAhjQAAhiBFhGQBHhGBiAAIQnAAQBjAABGBGQBGBGAABiQAABjhGBGQhGBGhjAAg");

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

	this._renderFirstFrame();

}).prototype = p = new cjs.MovieClip();
p.nominalBounds = new cjs.Rectangle(-77,-23.9,154.1,47.8);


(lib.instruccion_inicial = function(mode,startPosition,loop,reversed) {
if (loop == null) { loop = true; }
if (reversed == null) { reversed = false; }
	var props = new Object();
	props.mode = mode;
	props.startPosition = startPosition;
	props.labels = {};
	props.loop = loop;
	props.reversed = reversed;
	cjs.MovieClip.apply(this,[props]);

	// timeline functions:
	this.frame_204 = function() {
		this.stop();
	}

	// actions tween:
	this.timeline.addTween(cjs.Tween.get(this).wait(204).call(this.frame_204).wait(1));

	// Capa_3
	this.instance = new lib.CachedBmp_621();
	this.instance.setTransform(-303.25,-261.5,0.5,0.5);
	this.instance._off = true;

	this.timeline.addTween(cjs.Tween.get(this.instance).wait(19).to({_off:false},0).to({_off:true},170).wait(16));

	// mano_abierta
	this.instance_1 = new lib.mano_abierta_clip();
	this.instance_1.setTransform(329.1,114.9);
	this.instance_1.alpha = 0;
	this.instance_1._off = true;

	this.instance_2 = new lib.mano_cerrada_clip();
	this.instance_2.setTransform(317.75,-57.1);
	this.instance_2._off = true;

	this.timeline.addTween(cjs.Tween.get(this.instance_1).wait(19).to({_off:false},0).to({scaleX:1.0006,y:-103.15,alpha:1},10).to({_off:true},11).wait(165));
	this.timeline.addTween(cjs.Tween.get(this.instance_2).wait(40).to({_off:false},0).to({x:-26.95,y:-22.05},132).to({alpha:0},17).to({_off:true},15).wait(1));

	// fondo
	this.instance_3 = new lib.fondo_instruccion();
	this.instance_3.setTransform(0,0,0.9348,0.9059);
	this.instance_3.alpha = 0;

	this.timeline.addTween(cjs.Tween.get(this.instance_3).to({scaleX:0.9335,scaleY:0.906,alpha:0.7891},19).wait(170).to({scaleX:0.9348,scaleY:0.9059,alpha:0.6484},0).to({scaleX:0.9294,scaleY:0.9142,alpha:0},14).to({_off:true},1).wait(1));

	this._renderFirstFrame();

}).prototype = p = new cjs.MovieClip();
p.nominalBounds = new cjs.Rectangle(-449.7,-291.8,899.5,583.7);


(lib.globoTexto = function(mode,startPosition,loop,reversed) {
if (loop == null) { loop = true; }
if (reversed == null) { reversed = false; }
	var props = new Object();
	props.mode = mode;
	props.startPosition = startPosition;
	props.labels = {};
	props.loop = loop;
	props.reversed = reversed;
	cjs.MovieClip.apply(this,[props]);

	this.isSingleFrame = false;
	// timeline functions:
	this.frame_0 = function() {
		if(this.isSingleFrame) {
			return;
		}
		if(this.totalFrames == 1) {
			this.isSingleFrame = true;
		}
		this.stop();
		var _this = this;
		_this.btnFinalizar.on("click", function(){
			window.open("actividad2c.html","_self");
		});
	}

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

	// btn
	this.btnFinalizar = new lib.btnFinalizar();
	this.btnFinalizar.name = "btnFinalizar";
	this.btnFinalizar.setTransform(34.75,84.35);
	new cjs.ButtonHelper(this.btnFinalizar, 0, 1, 1);

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

	// texto
	this.instance = new lib.CachedBmp_620();
	this.instance.setTransform(-147.75,-61.75,0.5,0.5);

	this.instance_1 = new lib.CachedBmp_619();
	this.instance_1.setTransform(-61.45,-109.05,0.5,0.5);

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

	// Layer_1
	this.shape = new cjs.Shape();
	this.shape.graphics.f().s("#990000").ss(4,1,1).p("A8XszIh5AKIq9A8IK9EpIBrAtA+QspIAAmeMBHeAAAMAAAAmPMhHeAAAIAA6M");
	this.shape.setTransform(0,0.025);

	this.shape_1 = new cjs.Shape();
	this.shape_1.graphics.f("#FFFFFF").s().p("A+QTIIAA6MIq9kpIK9g8IB5gKIh5AKIAAmeMBHeAAAMAAAAmPgA8lmXIhrgtg");
	this.shape_1.setTransform(0,0.025);

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

	this._renderFirstFrame();

}).prototype = getMCSymbolPrototype(lib.globoTexto, new cjs.Rectangle(-265.7,-124.3,531.5,248.7), null);


(lib.feedbackWrong = function(mode,startPosition,loop,reversed) {
if (loop == null) { loop = true; }
if (reversed == null) { reversed = false; }
	var props = new Object();
	props.mode = mode;
	props.startPosition = startPosition;
	props.labels = {};
	props.loop = loop;
	props.reversed = reversed;
	cjs.MovieClip.apply(this,[props]);

	this.isSingleFrame = false;
	// timeline functions:
	this.frame_0 = function() {
		if(this.isSingleFrame) {
			return;
		}
		if(this.totalFrames == 1) {
			this.isSingleFrame = true;
		}
		var escenaError2 = this;
		escenaError2.stop();
		escenaError2.restartBtn.on("click", reiniciar);
		
		function reiniciar(){
			window.location.reload();
		}
	}

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

	// Layer_1
	this.instance = new lib.CachedBmp_618();
	this.instance.setTransform(-174.1,-58.4,0.5,0.5);

	this.instance_1 = new lib.CachedBmp_617();
	this.instance_1.setTransform(-122.55,-112.5,0.5,0.5);

	this.restartBtn = new lib.btn_reintentar();
	this.restartBtn.name = "restartBtn";
	this.restartBtn.setTransform(7.45,90.85);
	new cjs.ButtonHelper(this.restartBtn, 0, 1, 1);

	this.instance_2 = new lib.CachedBmp_616();
	this.instance_2.setTransform(-291.75,-124.35,0.5,0.5);

	this.timeline.addTween(cjs.Tween.get({}).to({state:[{t:this.instance_2},{t:this.restartBtn},{t:this.instance_1},{t:this.instance}]}).wait(1));

	this._renderFirstFrame();

}).prototype = getMCSymbolPrototype(lib.feedbackWrong, new cjs.Rectangle(-291.7,-124.3,531.5,249), null);


// stage content:
(lib.actividad2b = function(mode,startPosition,loop,reversed) {
if (loop == null) { loop = true; }
if (reversed == null) { reversed = false; }
	var props = new Object();
	props.mode = mode;
	props.startPosition = startPosition;
	props.labels = {intro:0,game1:1,feedbackOk:2,feedbackWrong:3};
	props.loop = loop;
	props.reversed = reversed;
	cjs.MovieClip.apply(this,[props]);

	this.actionFrames = [0,1,2,3];
	// timeline functions:
	this.frame_0 = function() {
		escena_intro = this;
		escena_intro.stop();
		
		escena_intro.next.on('click', function(){
			escena_intro.gotoAndStop('game1');
		});
		
		escena_intro.back.on('click', function(){
			pasarEstado();
		});
	}
	this.frame_1 = function() {
		escena_juego = this;
		escena_juego.stop();
		
		let aciertos = 0;
		let errores = 0;
		let intentos = 0;
		escena_juego.btnVerificar.alpha = 0;
		
		//numeracion de cada caja
		escena_juego.caja1.gotoAndStop("n1");
		escena_juego.caja2.gotoAndStop("n2");
		escena_juego.caja3.gotoAndStop("n3");
		escena_juego.caja4.gotoAndStop("n4");
		escena_juego.caja5.gotoAndStop("n5");
		escena_juego.caja6.gotoAndStop("n6");
		escena_juego.caja7.gotoAndStop("n7");
		escena_juego.caja8.gotoAndStop("n8");
		escena_juego.caja9.gotoAndStop("n9");
		escena_juego.caja10.gotoAndStop("n10");
		escena_juego.caja11.gotoAndStop("n11");
		
		//Establecimiento de textos para cada pieza
		escena_juego.opcion1.gotoAndStop("p1");
		escena_juego.opcion2.gotoAndStop("p2");
		escena_juego.opcion3.gotoAndStop("p3");
		escena_juego.opcion4.gotoAndStop("p4");
		escena_juego.opcion5.gotoAndStop("p5");
		escena_juego.opcion6.gotoAndStop("p6");
		escena_juego.opcion7.gotoAndStop("p7");
		escena_juego.opcion8.gotoAndStop("p8");
		escena_juego.opcion9.gotoAndStop("p9");
		escena_juego.opcion10.gotoAndStop("p10");
		escena_juego.opcion11.gotoAndStop("p11");
		
		
		//adicionando la propiedad pointer true a cada pieza
		escena_juego.opcion1.cursor = "pointer";
		escena_juego.opcion2.cursor = "pointer";
		escena_juego.opcion3.cursor = "pointer";
		escena_juego.opcion4.cursor = "pointer";
		escena_juego.opcion5.cursor = "pointer";
		escena_juego.opcion6.cursor = "pointer";
		escena_juego.opcion7.cursor = "pointer";
		escena_juego.opcion8.cursor = "pointer";
		escena_juego.opcion9.cursor = "pointer";
		escena_juego.opcion10.cursor = "pointer";
		escena_juego.opcion11.cursor = "pointer";
		
		//Mouse children para cada pieza
		escena_juego.opcion1.mouseChildren = false;
		escena_juego.opcion2.mouseChildren = false;
		escena_juego.opcion3.mouseChildren = false;
		escena_juego.opcion4.mouseChildren = false;
		escena_juego.opcion5.mouseChildren = false;
		escena_juego.opcion6.mouseChildren = false;
		escena_juego.opcion7.mouseChildren = false;
		escena_juego.opcion8.mouseChildren = false;
		escena_juego.opcion9.mouseChildren = false;
		escena_juego.opcion10.mouseChildren = false;
		escena_juego.opcion11.mouseChildren = false;
		
		
		//funciones de arrastrado de alternativas arena
		escena_juego.opcion1.addEventListener("pressmove", dragMovieClip);
		escena_juego.opcion2.addEventListener("pressmove", dragMovieClip);
		escena_juego.opcion3.addEventListener("pressmove", dragMovieClip);
		escena_juego.opcion4.addEventListener("pressmove", dragMovieClip);
		escena_juego.opcion5.addEventListener("pressmove", dragMovieClip);
		escena_juego.opcion6.addEventListener("pressmove", dragMovieClip);
		escena_juego.opcion7.addEventListener("pressmove", dragMovieClip);
		escena_juego.opcion8.addEventListener("pressmove", dragMovieClip);
		escena_juego.opcion9.addEventListener("pressmove", dragMovieClip);
		escena_juego.opcion10.addEventListener("pressmove", dragMovieClip);
		escena_juego.opcion11.addEventListener("pressmove", dragMovieClip);
		
		
		function dragMovieClip(evt) {
		    evt.currentTarget.x = evt.stageX/stage.scaleX;
		    evt.currentTarget.y = evt.stageY/stage.scaleY;
		}
		
		
		//Aqui vienen todas las colisiones en el orden en que estan definidas en la mesa de trabajo
		
		//Colisiones para ficha opcion 8
		escena_juego.opcion8.on("pressup", function (evento) {
			console.log("Esta es la opcion 8");
			var lista_act2 = escena_juego.getObjectsUnderPoint(escena_juego.opcion8.x, escena_juego.opcion8.y);
			for (var i = 0; i < lista_act2.length; i++) {
				if (lista_act2[i].parent.name == "caja1") {
					escena_juego.caja1.gotoAndStop('r8');
					escena_juego.opcion8.alpha = 0;
					errores++;
					intentos++;
					validarIntentos();
				} else if(lista_act2[i].parent.name == "caja2"){
					escena_juego.caja2.gotoAndStop('r8');
					escena_juego.opcion8.alpha = 0;
					errores++;
					intentos++;
					validarIntentos();
				} else if(lista_act2[i].parent.name == "caja3"){
					escena_juego.caja3.gotoAndStop('r8');
					escena_juego.opcion8.alpha = 0;
					errores++;
					intentos++;
					validarIntentos();
				}else if(lista_act2[i].parent.name == "caja4"){
					escena_juego.caja4.gotoAndStop('r8');
					escena_juego.opcion8.alpha = 0;
					errores++;
					intentos++;
					validarIntentos();
				}else if(lista_act2[i].parent.name == "caja5"){
					escena_juego.caja5.gotoAndStop('r8');
					escena_juego.opcion8.alpha = 0;
					errores++;
					intentos++;
					validarIntentos();
				}else if(lista_act2[i].parent.name == "caja6"){
					escena_juego.caja6.gotoAndStop('r8');
					escena_juego.opcion8.alpha = 0;
					errores++;
					intentos++;
					validarIntentos();
				}else if(lista_act2[i].parent.name == "caja7"){
					escena_juego.caja7.gotoAndStop('r8');
					escena_juego.opcion8.alpha = 0;
					errores++;
					intentos++;
					validarIntentos();
				}else if(lista_act2[i].parent.name == "caja8"){
					escena_juego.caja8.gotoAndStop('r8');
					escena_juego.opcion8.alpha = 0;
					aciertos++;
					intentos++;
					validarIntentos();
				}else if(lista_act2[i].parent.name == "caja9"){
					escena_juego.caja9.gotoAndStop('r8');
					escena_juego.opcion8.alpha = 0;
					errores++;
					intentos++;
					validarIntentos();
				}else if(lista_act2[i].parent.name == "caja10"){
					escena_juego.caja10.gotoAndStop('r8');
					escena_juego.opcion8.alpha = 0;
					errores++;
					intentos++;
					validarIntentos();
				}else if(lista_act2[i].parent.name == "caja11"){
					escena_juego.caja11.gotoAndStop('r8');
					escena_juego.opcion8.alpha = 0;
					errores++;
					intentos++;
					validarIntentos();
				}else{
					escena_juego.opcion2.x = 813,55;
					escena_juego.opcion2.y = 173,9;
				}
			}
			escena_juego.opcion2.x=813,55;
			escena_juego.opcion2.y=173,9;
		});
		
		//Colisiones para ficha opcion 11
		escena_juego.opcion11.on("pressup", function (evento) {
			console.log("Esta es la opcion 11");
			var lista_act2 = escena_juego.getObjectsUnderPoint(escena_juego.opcion11.x, escena_juego.opcion11.y);
			for (var i = 0; i < lista_act2.length; i++) {
				if (lista_act2[i].parent.name == "caja1") {
					escena_juego.caja1.gotoAndStop('r11');
					escena_juego.opcion11.alpha = 0;
					errores++;
					intentos++;
					validarIntentos();
				} else if(lista_act2[i].parent.name == "caja2"){
					escena_juego.caja2.gotoAndStop('r11');
					escena_juego.opcion11.alpha = 0;
					errores++;
					intentos++;
					validarIntentos();
				} else if(lista_act2[i].parent.name == "caja3"){
					escena_juego.caja3.gotoAndStop('r11');
					escena_juego.opcion11.alpha = 0;
					errores++;
					intentos++;
					validarIntentos();
				}else if(lista_act2[i].parent.name == "caja4"){
					escena_juego.caja4.gotoAndStop('r11');
					escena_juego.opcion11.alpha = 0;
					errores++;
					intentos++;
					validarIntentos();
				}else if(lista_act2[i].parent.name == "caja5"){
					escena_juego.caja5.gotoAndStop('r11');
					escena_juego.opcion11.alpha = 0;
					errores++;
					intentos++;
					validarIntentos();
				}else if(lista_act2[i].parent.name == "caja6"){
					escena_juego.caja6.gotoAndStop('r11');
					escena_juego.opcion11.alpha = 0;
					errores++;
					intentos++;
					validarIntentos();
				}else if(lista_act2[i].parent.name == "caja7"){
					escena_juego.caja7.gotoAndStop('r11');
					escena_juego.opcion11.alpha = 0;
					errores++;
					intentos++;
					validarIntentos();
				}else if(lista_act2[i].parent.name == "caja8"){
					escena_juego.caja8.gotoAndStop('r11');
					escena_juego.opcion11.alpha = 0;
					errores++;
					intentos++;
					validarIntentos();
				}else if(lista_act2[i].parent.name == "caja9"){
					escena_juego.caja9.gotoAndStop('r11');
					escena_juego.opcion11.alpha = 0;
					errores++;
					intentos++;
					validarIntentos();
				}else if(lista_act2[i].parent.name == "caja10"){
					escena_juego.caja10.gotoAndStop('r11');
					escena_juego.opcion11.alpha = 0;
					errores++;
					intentos++;
					validarIntentos();
				}else if(lista_act2[i].parent.name == "caja11"){
					escena_juego.caja11.gotoAndStop('r11');
					escena_juego.opcion11.alpha = 0;
					aciertos++;
					intentos++;
					validarIntentos();
				}else{
					escena_juego.opcion11.x = 813,55;
					escena_juego.opcion11.y = 318,4;
				}
			}
			escena_juego.opcion5.x=813,55;
			escena_juego.opcion5.y=318,4;
		});
		
		//Colisiones para ficha opcion 6
		escena_juego.opcion6.on("pressup", function (evento) {
			console.log("Esta es la opcion 6");
			var lista_act2 = escena_juego.getObjectsUnderPoint(escena_juego.opcion6.x, escena_juego.opcion6.y);
			for (var i = 0; i < lista_act2.length; i++) {
				if (lista_act2[i].parent.name == "caja1") {
					escena_juego.caja1.gotoAndStop('r6');
					escena_juego.opcion6.alpha = 0;
					errores++;
					intentos++;
					validarIntentos();
				} else if(lista_act2[i].parent.name == "caja2"){
					escena_juego.caja2.gotoAndStop('r6');
					escena_juego.opcion6.alpha = 0;
					errores++;
					intentos++;
					validarIntentos();
				} else if(lista_act2[i].parent.name == "caja3"){
					escena_juego.caja3.gotoAndStop('r6');
					escena_juego.opcion6.alpha = 0;
					errores++;
					intentos++;
					validarIntentos();
				}else if(lista_act2[i].parent.name == "caja4"){
					escena_juego.caja4.gotoAndStop('r6');
					escena_juego.opcion6.alpha = 0;
					errores++;
					intentos++;
					validarIntentos();
				}else if(lista_act2[i].parent.name == "caja5"){
					escena_juego.caja5.gotoAndStop('r6');
					escena_juego.opcion6.alpha = 0;
					errores++;
					intentos++;
					validarIntentos();
				}else if(lista_act2[i].parent.name == "caja6"){
					escena_juego.caja6.gotoAndStop('r6');
					escena_juego.opcion6.alpha = 0;
					aciertos++;
					intentos++;
					validarIntentos();
				}else if(lista_act2[i].parent.name == "caja7"){
					escena_juego.caja7.gotoAndStop('r6');
					escena_juego.opcion6.alpha = 0;
					errores++;
					intentos++;
					validarIntentos();
				}else if(lista_act2[i].parent.name == "caja8"){
					escena_juego.caja8.gotoAndStop('r6');
					escena_juego.opcion6.alpha = 0;
					errores++;
					intentos++;
					validarIntentos();
				}else if(lista_act2[i].parent.name == "caja9"){
					escena_juego.caja9.gotoAndStop('r6');
					escena_juego.opcion6.alpha = 0;
					errores++;
					intentos++;
					validarIntentos();
				}else if(lista_act2[i].parent.name == "caja10"){
					escena_juego.caja10.gotoAndStop('r6');
					escena_juego.opcion6.alpha = 0;
					errores++;
					intentos++;
					validarIntentos();
				}else if(lista_act2[i].parent.name == "caja11"){
					escena_juego.caja11.gotoAndStop('r6');
					escena_juego.opcion6.alpha = 0;
					errores++;
					intentos++;
					validarIntentos();
				}else{
					escena_juego.opcion6.x = 813,55;
					escena_juego.opcion6.y = 462,8;
				}
			}
			escena_juego.opcion10.x=813,55;
			escena_juego.opcion10.y=462,8;
		});
		
		//Colisiones para ficha opcion 2
		escena_juego.opcion2.on("pressup", function (evento) {
			console.log("Esta es la opcion 2");
			var lista_act2 = escena_juego.getObjectsUnderPoint(escena_juego.opcion2.x, escena_juego.opcion2.y);
			for (var i = 0; i < lista_act2.length; i++) {
				if (lista_act2[i].parent.name == "caja1") {
					escena_juego.caja1.gotoAndStop('r2');
					escena_juego.opcion2.alpha = 0;
					errores++;
					intentos++;
					validarIntentos();
				} else if(lista_act2[i].parent.name == "caja2"){
					escena_juego.caja2.gotoAndStop('r2');
					escena_juego.opcion2.alpha = 0;
					aciertos++;
					intentos++;
					validarIntentos();
				} else if(lista_act2[i].parent.name == "caja3"){
					escena_juego.caja3.gotoAndStop('r2');
					escena_juego.opcion2.alpha = 0;
					errores++;
					intentos++;
					validarIntentos();
				}else if(lista_act2[i].parent.name == "caja4"){
					escena_juego.caja4.gotoAndStop('r2');
					escena_juego.opcion2.alpha = 0;
					errores++;
					intentos++;
					validarIntentos();
				}else if(lista_act2[i].parent.name == "caja5"){
					escena_juego.caja5.gotoAndStop('r2');
					escena_juego.opcion2.alpha = 0;
					errores++;
					intentos++;
					validarIntentos();
				}else if(lista_act2[i].parent.name == "caja6"){
					escena_juego.caja6.gotoAndStop('r2');
					escena_juego.opcion2.alpha = 0;
					errores++;
					intentos++;
					validarIntentos();
				}else if(lista_act2[i].parent.name == "caja7"){
					escena_juego.caja7.gotoAndStop('r2');
					escena_juego.opcion2.alpha = 0;
					errores++;
					intentos++;
					validarIntentos();
				}else if(lista_act2[i].parent.name == "caja8"){
					escena_juego.caja8.gotoAndStop('r2');
					escena_juego.opcion2.alpha = 0;
					errores++;
					intentos++;
					validarIntentos();
				}else if(lista_act2[i].parent.name == "caja9"){
					escena_juego.caja9.gotoAndStop('r2');
					escena_juego.opcion2.alpha = 0;
					errores++;
					intentos++;
					validarIntentos();
				}else if(lista_act2[i].parent.name == "caja10"){
					escena_juego.caja10.gotoAndStop('r2');
					escena_juego.opcion2.alpha = 0;
					errores++;
					intentos++;
					validarIntentos();
				}else if(lista_act2[i].parent.name == "caja11"){
					escena_juego.caja11.gotoAndStop('r2');
					escena_juego.opcion2.alpha = 0;
					errores++;
					intentos++;
					validarIntentos();
				}else{
					escena_juego.opcion2.x = 813,55;
					escena_juego.opcion2.y = 173,9;
				}
			}
			escena_juego.opcion7.x=813,55;
			escena_juego.opcion7.y=173,9;
		
		});
		
		//Colisiones para ficha opcion 5
		escena_juego.opcion5.on("pressup", function (evento) {
			console.log("Esta es la opcion 5");
			var lista_act2 = escena_juego.getObjectsUnderPoint(escena_juego.opcion5.x, escena_juego.opcion5.y);
			for (var i = 0; i < lista_act2.length; i++) {
				if (lista_act2[i].parent.name == "caja1") {
					escena_juego.caja1.gotoAndStop('r5');
					escena_juego.opcion5.alpha = 0;
					errores++;
					intentos++;
					validarIntentos();
				} else if(lista_act2[i].parent.name == "caja2"){
					escena_juego.caja2.gotoAndStop('r5');
					escena_juego.opcion5.alpha = 0;
					errores++;
					intentos++;
					validarIntentos();
				} else if(lista_act2[i].parent.name == "caja3"){
					escena_juego.caja3.gotoAndStop('r5');
					escena_juego.opcion5.alpha = 0;
					errores++;
					intentos++;
					validarIntentos();
				}else if(lista_act2[i].parent.name == "caja4"){
					escena_juego.caja4.gotoAndStop('r5');
					escena_juego.opcion5.alpha = 0;
					errores++;
					intentos++;
					validarIntentos();
				}else if(lista_act2[i].parent.name == "caja5"){
					escena_juego.caja5.gotoAndStop('r5');
					escena_juego.opcion5.alpha = 0;
					aciertos++;
					intentos++;
					validarIntentos();
				}else if(lista_act2[i].parent.name == "caja6"){
					escena_juego.caja6.gotoAndStop('r5');
					escena_juego.opcion5.alpha = 0;
					errores++;
					intentos++;
					validarIntentos();
				}else if(lista_act2[i].parent.name == "caja7"){
					escena_juego.caja7.gotoAndStop('r5');
					escena_juego.opcion5.alpha = 0;
					errores++;
					intentos++;
					validarIntentos();
				}else if(lista_act2[i].parent.name == "caja8"){
					escena_juego.caja8.gotoAndStop('r5');
					escena_juego.opcion5.alpha = 0;
					errores++;
					intentos++;
					validarIntentos();
				}else if(lista_act2[i].parent.name == "caja9"){
					escena_juego.caja9.gotoAndStop('r5');
					escena_juego.opcion5.alpha = 0;
					errores++;
					intentos++;
					validarIntentos();
				}else if(lista_act2[i].parent.name == "caja10"){
					escena_juego.caja10.gotoAndStop('r5');
					escena_juego.opcion5.alpha = 0;
					errores++;
					intentos++;
					validarIntentos();
				}else if(lista_act2[i].parent.name == "caja11"){
					escena_juego.caja11.gotoAndStop('r5');
					escena_juego.opcion5.alpha = 0;
					errores++;
					intentos++;
					validarIntentos();
				}else{
					escena_juego.opcion5.x = 813,55;
					escena_juego.opcion5.y = 318,4;
				}
			}
			escena_juego.opcion4.x=813,55;
			escena_juego.opcion4.y=318,4;
		});
		
		//Colisiones para ficha opcion 10
		escena_juego.opcion10.on("pressup", function (evento) {
			console.log("Esta es la opcion 10");
			var lista_act2 = escena_juego.getObjectsUnderPoint(escena_juego.opcion10.x, escena_juego.opcion10.y);
			for (var i = 0; i < lista_act2.length; i++) {
				if (lista_act2[i].parent.name == "caja1") {
					escena_juego.caja1.gotoAndStop('r10');
					escena_juego.opcion10.alpha = 0;
					errores++;
					intentos++;
					validarIntentos();
				} else if(lista_act2[i].parent.name == "caja2"){
					escena_juego.caja2.gotoAndStop('r10');
					escena_juego.opcion10.alpha = 0;
					errores++;
					intentos++;
					validarIntentos();
				} else if(lista_act2[i].parent.name == "caja3"){
					escena_juego.caja3.gotoAndStop('r10');
					escena_juego.opcion10.alpha = 0;
					errores++;
					intentos++;
					validarIntentos();
				}else if(lista_act2[i].parent.name == "caja4"){
					escena_juego.caja4.gotoAndStop('r10');
					escena_juego.opcion10.alpha = 0;
					errores++;
					intentos++;
					validarIntentos();
				}else if(lista_act2[i].parent.name == "caja5"){
					escena_juego.caja5.gotoAndStop('r10');
					escena_juego.opcion10.alpha = 0;
					errores++;
					intentos++;
					validarIntentos();
				}else if(lista_act2[i].parent.name == "caja6"){
					escena_juego.caja6.gotoAndStop('r10');
					escena_juego.opcion10.alpha = 0;
					errores++;
					intentos++;
					validarIntentos();
				}else if(lista_act2[i].parent.name == "caja7"){
					escena_juego.caja7.gotoAndStop('r10');
					escena_juego.opcion10.alpha = 0;
					errores++;
					intentos++;
					validarIntentos();
				}else if(lista_act2[i].parent.name == "caja8"){
					escena_juego.caja8.gotoAndStop('r10');
					escena_juego.opcion10.alpha = 0;
					errores++;
					intentos++;
					validarIntentos();
				}else if(lista_act2[i].parent.name == "caja9"){
					escena_juego.caja9.gotoAndStop('r10');
					escena_juego.opcion10.alpha = 0;
					errores++;
					intentos++;
					validarIntentos();
				}else if(lista_act2[i].parent.name == "caja10"){
					escena_juego.caja10.gotoAndStop('r10');
					escena_juego.opcion10.alpha = 0;
					aciertos++;
					intentos++;
					validarIntentos();
				}else if(lista_act2[i].parent.name == "caja11"){
					escena_juego.caja11.gotoAndStop('r10');
					escena_juego.opcion10.alpha = 0;
					errores++;
					intentos++;
					validarIntentos();
				}else{
					escena_juego.opcion10.x = 813,55;
					escena_juego.opcion10.y = 462,8;
				}
			}
			escena_juego.opcion9.x=813,55;
			escena_juego.opcion9.y=462,8;
		});
		
		//Colisiones para ficha opcion 7
		escena_juego.opcion7.on("pressup", function (evento) {
			console.log("Esta es la opcion 7");
			var lista_act2 = escena_juego.getObjectsUnderPoint(escena_juego.opcion7.x, escena_juego.opcion7.y);
			for (var i = 0; i < lista_act2.length; i++) {
				if (lista_act2[i].parent.name == "caja1") {
					escena_juego.caja1.gotoAndStop('r7');
					escena_juego.opcion7.alpha = 0;
					errores++;
					intentos++;
					validarIntentos();
				} else if(lista_act2[i].parent.name == "caja2"){
					escena_juego.caja2.gotoAndStop('r7');
					escena_juego.opcion7.alpha = 0;
					errores++;
					intentos++;
					validarIntentos();
				} else if(lista_act2[i].parent.name == "caja3"){
					escena_juego.caja3.gotoAndStop('r7');
					escena_juego.opcion7.alpha = 0;
					errores++;
					intentos++;
					validarIntentos();
				}else if(lista_act2[i].parent.name == "caja4"){
					escena_juego.caja4.gotoAndStop('r7');
					escena_juego.opcion7.alpha = 0;
					errores++;
					intentos++;
					validarIntentos();
				}else if(lista_act2[i].parent.name == "caja5"){
					escena_juego.caja5.gotoAndStop('r7');
					escena_juego.opcion7.alpha = 0;
					errores++;
					intentos++;
					validarIntentos();
				}else if(lista_act2[i].parent.name == "caja6"){
					escena_juego.caja6.gotoAndStop('r7');
					escena_juego.opcion7.alpha = 0;
					errores++;
					intentos++;
					validarIntentos();
				}else if(lista_act2[i].parent.name == "caja7"){
					escena_juego.caja7.gotoAndStop('r7');
					escena_juego.opcion7.alpha = 0;
					aciertos++;
					intentos++;
					validarIntentos();
				}else if(lista_act2[i].parent.name == "caja8"){
					escena_juego.caja8.gotoAndStop('r7');
					escena_juego.opcion7.alpha = 0;
					errores++;
					intentos++;
					validarIntentos();
				}else if(lista_act2[i].parent.name == "caja9"){
					escena_juego.caja9.gotoAndStop('r7');
					escena_juego.opcion7.alpha = 0;
					errores++;
					intentos++;
					validarIntentos();
				}else if(lista_act2[i].parent.name == "caja10"){
					escena_juego.caja10.gotoAndStop('r7');
					escena_juego.opcion7.alpha = 0;
					errores++;
					intentos++;
					validarIntentos();
				}else if(lista_act2[i].parent.name == "caja11"){
					escena_juego.caja11.gotoAndStop('r7');
					escena_juego.opcion7.alpha = 0;
					errores++;
					intentos++;
					validarIntentos();
				}else{
					escena_juego.opcion7.x = 813,55;
					escena_juego.opcion7.y = 173,9;
				}
			}
			escena_juego.opcion3.x=813,55;
			escena_juego.opcion3.y=173,9;
		});
		
		//Colisiones para ficha opcion 4
		escena_juego.opcion4.on("pressup", function (evento) {
			console.log("Esta es la opcion 4");
			var lista_act2 = escena_juego.getObjectsUnderPoint(escena_juego.opcion4.x, escena_juego.opcion4.y);
			for (var i = 0; i < lista_act2.length; i++) {
				if (lista_act2[i].parent.name == "caja1") {
					escena_juego.caja1.gotoAndStop('r4');
					escena_juego.opcion4.alpha = 0;
					errores++;
					intentos++;
					validarIntentos();
				} else if(lista_act2[i].parent.name == "caja2"){
					escena_juego.caja2.gotoAndStop('r4');
					escena_juego.opcion4.alpha = 0;
					errores++;
					intentos++;
					validarIntentos();
				} else if(lista_act2[i].parent.name == "caja3"){
					escena_juego.caja3.gotoAndStop('r4');
					escena_juego.opcion4.alpha = 0;
					errores++;
					intentos++;
					validarIntentos();
				}else if(lista_act2[i].parent.name == "caja4"){
					escena_juego.caja4.gotoAndStop('r4');
					escena_juego.opcion4.alpha = 0;
					aciertos++;
					intentos++;
					validarIntentos();
				}else if(lista_act2[i].parent.name == "caja5"){
					escena_juego.caja5.gotoAndStop('r4');
					escena_juego.opcion4.alpha = 0;
					errores++;
					intentos++;
					validarIntentos();
				}else if(lista_act2[i].parent.name == "caja6"){
					escena_juego.caja6.gotoAndStop('r4');
					escena_juego.opcion4.alpha = 0;
					errores++;
					intentos++;
					validarIntentos();
				}else if(lista_act2[i].parent.name == "caja7"){
					escena_juego.caja7.gotoAndStop('r4');
					escena_juego.opcion4.alpha = 0;
					errores++;
					intentos++;
					validarIntentos();
				}else if(lista_act2[i].parent.name == "caja8"){
					escena_juego.caja8.gotoAndStop('r4');
					escena_juego.opcion4.alpha = 0;
					errores++;
					intentos++;
					validarIntentos();
				}else if(lista_act2[i].parent.name == "caja9"){
					escena_juego.caja9.gotoAndStop('r4');
					escena_juego.opcion4.alpha = 0;
					errores++;
					intentos++;
					validarIntentos();
				}else if(lista_act2[i].parent.name == "caja10"){
					escena_juego.caja10.gotoAndStop('r4');
					escena_juego.opcion4.alpha = 0;
					errores++;
					intentos++;
					validarIntentos();
				}else if(lista_act2[i].parent.name == "caja11"){
					escena_juego.caja11.gotoAndStop('r4');
					escena_juego.opcion4.alpha = 0;
					errores++;
					intentos++;
					validarIntentos();
				}else{
					escena_juego.opcion4.x = 813,55;
					escena_juego.opcion4.y = 318,4;
				}
			}
			escena_juego.opcion1.x=813,55;
			escena_juego.opcion1.y=318,4;
		});
		
		//Colisiones para ficha opcion 9
		escena_juego.opcion9.on("pressup", function (evento) {
			console.log("Esta es la opcion 9");
			var lista_act2 = escena_juego.getObjectsUnderPoint(escena_juego.opcion9.x, escena_juego.opcion9.y);
			for (var i = 0; i < lista_act2.length; i++) {
				if (lista_act2[i].parent.name == "caja1") {
					escena_juego.caja1.gotoAndStop('r9');
					escena_juego.opcion9.alpha = 0;
					errores++;
					intentos++;
					validarIntentos();
				} else if(lista_act2[i].parent.name == "caja2"){
					escena_juego.caja2.gotoAndStop('r9');
					escena_juego.opcion9.alpha = 0;
					errores++;
					intentos++;
					validarIntentos();
				} else if(lista_act2[i].parent.name == "caja3"){
					escena_juego.caja3.gotoAndStop('r9');
					escena_juego.opcion9.alpha = 0;
					errores++;
					intentos++;
					validarIntentos();
				}else if(lista_act2[i].parent.name == "caja4"){
					escena_juego.caja4.gotoAndStop('r9');
					escena_juego.opcion9.alpha = 0;
					errores++;
					intentos++;
					validarIntentos();
				}else if(lista_act2[i].parent.name == "caja5"){
					escena_juego.caja5.gotoAndStop('r9');
					escena_juego.opcion9.alpha = 0;
					errores++;
					intentos++;
					validarIntentos();
				}else if(lista_act2[i].parent.name == "caja6"){
					escena_juego.caja6.gotoAndStop('r9');
					escena_juego.opcion9.alpha = 0;
					errores++;
					intentos++;
					validarIntentos();
				}else if(lista_act2[i].parent.name == "caja7"){
					escena_juego.caja7.gotoAndStop('r9');
					escena_juego.opcion9.alpha = 0;
					errores++;
					intentos++;
					validarIntentos();
				}else if(lista_act2[i].parent.name == "caja8"){
					escena_juego.caja8.gotoAndStop('r9');
					escena_juego.opcion9.alpha = 0;
					errores++;
					intentos++;
					validarIntentos();
				}else if(lista_act2[i].parent.name == "caja9"){
					escena_juego.caja9.gotoAndStop('r9');
					escena_juego.opcion9.alpha = 0;
					aciertos++;
					intentos++;
					validarIntentos();
				}else if(lista_act2[i].parent.name == "caja10"){
					escena_juego.caja10.gotoAndStop('r9');
					escena_juego.opcion9.alpha = 0;
					errores++;
					intentos++;
					validarIntentos();
				}else if(lista_act2[i].parent.name == "caja11"){
					escena_juego.caja11.gotoAndStop('r9');
					escena_juego.opcion9.alpha = 0;
					errores++;
					intentos++;
					validarIntentos();
				}else{
					escena_juego.opcion9.x = 813,55;
					escena_juego.opcion9.y = 462,8;
				}
			}
		});
		
		//Colisiones para ficha opcion 3
		escena_juego.opcion3.on("pressup", function (evento) {
			console.log("Esta es la opcion 3");
			var lista_act2 = escena_juego.getObjectsUnderPoint(escena_juego.opcion3.x, escena_juego.opcion3.y);
			for (var i = 0; i < lista_act2.length; i++) {
				if (lista_act2[i].parent.name == "caja1") {
					escena_juego.caja1.gotoAndStop('r3');
					escena_juego.opcion3.alpha = 0;
					errores++;
					intentos++;
					validarIntentos();
				} else if(lista_act2[i].parent.name == "caja2"){
					escena_juego.caja2.gotoAndStop('r3');
					escena_juego.opcion3.alpha = 0;
					errores++;
					intentos++;
					validarIntentos();
				} else if(lista_act2[i].parent.name == "caja3"){
					escena_juego.caja3.gotoAndStop('r3');
					escena_juego.opcion3.alpha = 0;
					aciertos++;
					intentos++;
					validarIntentos();
				}else if(lista_act2[i].parent.name == "caja4"){
					escena_juego.caja4.gotoAndStop('r3');
					escena_juego.opcion3.alpha = 0;
					errores++;
					intentos++;
					validarIntentos();
				}else if(lista_act2[i].parent.name == "caja5"){
					escena_juego.caja5.gotoAndStop('r3');
					escena_juego.opcion3.alpha = 0;
					errores++;
					intentos++;
					validarIntentos();
				}else if(lista_act2[i].parent.name == "caja6"){
					escena_juego.caja6.gotoAndStop('r3');
					escena_juego.opcion3.alpha = 0;
					errores++;
					intentos++;
					validarIntentos();
				}else if(lista_act2[i].parent.name == "caja7"){
					escena_juego.caja7.gotoAndStop('r3');
					escena_juego.opcion3.alpha = 0;
					errores++;
					intentos++;
					validarIntentos();
				}else if(lista_act2[i].parent.name == "caja8"){
					escena_juego.caja8.gotoAndStop('r3');
					escena_juego.opcion3.alpha = 0;
					errores++;
					intentos++;
					validarIntentos();
				}else if(lista_act2[i].parent.name == "caja9"){
					escena_juego.caja9.gotoAndStop('r3');
					escena_juego.opcion3.alpha = 0;
					errores++;
					intentos++;
					validarIntentos();
				}else if(lista_act2[i].parent.name == "caja10"){
					escena_juego.caja10.gotoAndStop('r3');
					escena_juego.opcion3.alpha = 0;
					errores++;
					intentos++;
					validarIntentos();
				}else if(lista_act2[i].parent.name == "caja11"){
					escena_juego.caja11.gotoAndStop('r3');
					escena_juego.opcion3.alpha = 0;
					errores++;
					intentos++;
					validarIntentos();
				}else{
					escena_juego.opcion3.x = 813,55;
					escena_juego.opcion3.y = 173,9;
				}
			}
		});
		
		//Colisiones para ficha opcion 1
		escena_juego.opcion1.on("pressup", function (evento) {
			console.log("Esta es la opcion 1");
			var lista_act2 = escena_juego.getObjectsUnderPoint(escena_juego.opcion1.x, escena_juego.opcion1.y);
			for (var i = 0; i < lista_act2.length; i++) {
				if (lista_act2[i].parent.name == "caja1") {
					escena_juego.caja1.gotoAndStop('r1');
					escena_juego.opcion1.alpha = 0;
					aciertos++;
					intentos++;
					validarIntentos();
				} else if(lista_act2[i].parent.name == "caja2"){
					escena_juego.caja2.gotoAndStop('r1');
					escena_juego.opcion1.alpha = 0;
					errores++;
					intentos++;
					validarIntentos();
				} else if(lista_act2[i].parent.name == "caja3"){
					escena_juego.caja3.gotoAndStop('r1');
					escena_juego.opcion1.alpha = 0;
					errores++;
					intentos++;
					validarIntentos();
				}else if(lista_act2[i].parent.name == "caja4"){
					escena_juego.caja4.gotoAndStop('r1');
					escena_juego.opcion1.alpha = 0;
					errores++;
					intentos++;
					validarIntentos();
				}else if(lista_act2[i].parent.name == "caja5"){
					escena_juego.caja5.gotoAndStop('r1');
					escena_juego.opcion1.alpha = 0;
					errores++;
					intentos++;
					validarIntentos();
				}else if(lista_act2[i].parent.name == "caja6"){
					escena_juego.caja6.gotoAndStop('r1');
					escena_juego.opcion1.alpha = 0;
					errores++;
					intentos++;
					validarIntentos();
				}else if(lista_act2[i].parent.name == "caja7"){
					escena_juego.caja7.gotoAndStop('r1');
					escena_juego.opcion1.alpha = 0;
					errores++;
					intentos++;
					validarIntentos();
				}else if(lista_act2[i].parent.name == "caja8"){
					escena_juego.caja8.gotoAndStop('r1');
					escena_juego.opcion1.alpha = 0;
					errores++;
					intentos++;
					validarIntentos();
				}else if(lista_act2[i].parent.name == "caja9"){
					escena_juego.caja9.gotoAndStop('r1');
					escena_juego.opcion1.alpha = 0;
					errores++;
					intentos++;
					validarIntentos();
				}else if(lista_act2[i].parent.name == "caja10"){
					escena_juego.caja10.gotoAndStop('r1');
					escena_juego.opcion1.alpha = 0;
					errores++;
					intentos++;
					validarIntentos();
				}else if(lista_act2[i].parent.name == "caja11"){
					escena_juego.caja11.gotoAndStop('r1');
					escena_juego.opcion1.alpha = 0;
					errores++;
					intentos++;
					validarIntentos();
				}else{
					escena_juego.opcion1.x = 813,55;
					escena_juego.opcion1.y = 318,4;
				}
			}
		});
		
		
		
		//funcion que valida los intentos
		function validarIntentos() {
			console.log("Van "+intentos+" Intentos");
			console.log("Van "+aciertos+" Aciertos");
			console.log("Van "+errores+" Errores");
			if (intentos === 11) {
				escena_juego.btnVerificar.alpha = 1;
			}
		};
		
		
		//Accion del boton verificar
		escena_juego.btnVerificar.on('click', function () {
			if ((aciertos >= 11)&&(errores===0)) {
				escena_juego.gotoAndStop("feedbackOk");
			} else {
				escena_juego.gotoAndStop("feedbackWrong");
			}
		});
	}
	this.frame_2 = function() {
		escena_feedbackOk = this;
		escena_feedbackOk.stop();
	}
	this.frame_3 = function() {
		escena_feedbackWrong = this;
		escena_feedbackWrong.stop();
	}

	// actions tween:
	this.timeline.addTween(cjs.Tween.get(this).call(this.frame_0).wait(1).call(this.frame_1).wait(1).call(this.frame_2).wait(1).call(this.frame_3).wait(1));

	// instruccion
	this.instance = new lib.instruccion_inicial();
	this.instance.setTransform(481.15,320.75);
	this.instance._off = true;

	this.timeline.addTween(cjs.Tween.get(this.instance).wait(1).to({_off:false},0).to({_off:true},1).wait(2));

	// titulo
	this.instance_1 = new lib.CachedBmp_596();
	this.instance_1.setTransform(361.3,576.85,0.5,0.5);

	this.instance_2 = new lib.CachedBmp_595();
	this.instance_2.setTransform(331.7,570.5,0.5,0.5);

	this.timeline.addTween(cjs.Tween.get({}).to({state:[{t:this.instance_2},{t:this.instance_1}]}).wait(4));

	// marco
	this.instance_3 = new lib.MARCO();
	this.instance_3.setTransform(0,0,0.1618,0.1859);

	this.timeline.addTween(cjs.Tween.get(this.instance_3).wait(4));

	// mascara (mask)
	var mask = new cjs.Shape();
	mask._off = true;
	mask.graphics.p("EhG4AuFMAAAhcJMCNxAAAMAAABcJg");
	mask.setTransform(479.2,318.5);

	// texto
	this.instance_4 = new lib.CachedBmp_598();
	this.instance_4.setTransform(341.3,72.7,0.5,0.5);

	this.instance_5 = new lib.CachedBmp_597();
	this.instance_5.setTransform(241.65,66.15,0.5,0.5);

	var maskedShapeInstanceList = [this.instance_4,this.instance_5];

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

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

	// btns
	this.next = new lib.sig();
	this.next.name = "next";
	this.next.setTransform(874.45,566.05,0.413,0.4126,0,0,0,20.8,40.5);
	new cjs.ButtonHelper(this.next, 0, 1, 2, false, new lib.sig(), 3);

	this.back = new lib.Play();
	this.back.name = "back";
	this.back.setTransform(72.9,574.1,0.4133,0.4133,0,0,180,56.8,56.8);
	new cjs.ButtonHelper(this.back, 0, 1, 2, false, new lib.Play(), 3);

	this.opcion11 = new lib.opcion();
	this.opcion11.name = "opcion11";
	this.opcion11.setTransform(813.55,318.4);

	this.opcion10 = new lib.opcion();
	this.opcion10.name = "opcion10";
	this.opcion10.setTransform(977.55,462.8);

	this.opcion9 = new lib.opcion();
	this.opcion9.name = "opcion9";
	this.opcion9.setTransform(1135.7,462.35);

	this.opcion8 = new lib.opcion();
	this.opcion8.name = "opcion8";
	this.opcion8.setTransform(813.55,173.9);

	this.opcion7 = new lib.opcion();
	this.opcion7.name = "opcion7";
	this.opcion7.setTransform(1137,172.15);

	this.opcion6 = new lib.opcion();
	this.opcion6.name = "opcion6";
	this.opcion6.setTransform(813.55,462.8);

	this.opcion5 = new lib.opcion();
	this.opcion5.name = "opcion5";
	this.opcion5.setTransform(977.55,318.4);

	this.opcion4 = new lib.opcion();
	this.opcion4.name = "opcion4";
	this.opcion4.setTransform(1137,316.95);

	this.opcion3 = new lib.opcion();
	this.opcion3.name = "opcion3";
	this.opcion3.setTransform(1290.35,170.5);

	this.opcion2 = new lib.opcion();
	this.opcion2.name = "opcion2";
	this.opcion2.setTransform(977.55,173.9);

	this.opcion1 = new lib.opcion();
	this.opcion1.name = "opcion1";
	this.opcion1.setTransform(1290.35,315.9);

	this.btnVerificar = new lib.btn_califcar_act();
	this.btnVerificar.name = "btnVerificar";
	this.btnVerificar.setTransform(480.1,514.3,1.0714,1.0714,0,0,0,0.1,0.1);
	new cjs.ButtonHelper(this.btnVerificar, 0, 1, 2, false, new lib.btn_califcar_act(), 3);

	this.feedbackOk = new lib.globoTexto();
	this.feedbackOk.name = "feedbackOk";
	this.feedbackOk.setTransform(500.2,255.55);

	this.feedbackWrong = new lib.feedbackWrong();
	this.feedbackWrong.name = "feedbackWrong";
	this.feedbackWrong.setTransform(528.9,262.8);

	var maskedShapeInstanceList = [this.next,this.back,this.opcion11,this.opcion10,this.opcion9,this.opcion8,this.opcion7,this.opcion6,this.opcion5,this.opcion4,this.opcion3,this.opcion2,this.opcion1,this.btnVerificar,this.feedbackOk,this.feedbackWrong];

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

	this.timeline.addTween(cjs.Tween.get({}).to({state:[{t:this.back},{t:this.next}]}).to({state:[{t:this.btnVerificar},{t:this.opcion1},{t:this.opcion2},{t:this.opcion3},{t:this.opcion4},{t:this.opcion5},{t:this.opcion6},{t:this.opcion7},{t:this.opcion8},{t:this.opcion9},{t:this.opcion10},{t:this.opcion11}]},1).to({state:[{t:this.feedbackOk}]},1).to({state:[{t:this.feedbackWrong}]},1).wait(1));

	// area
	this.caja11 = new lib.CajaRespuesta();
	this.caja11.name = "caja11";
	this.caja11.setTransform(460.9,412.8,0.8386,0.8386);

	this.caja10 = new lib.CajaRespuesta();
	this.caja10.name = "caja10";
	this.caja10.setTransform(323.55,412.8,0.8386,0.8386);

	this.caja9 = new lib.CajaRespuesta();
	this.caja9.name = "caja9";
	this.caja9.setTransform(186.2,412.8,0.8386,0.8386);

	this.caja8 = new lib.CajaRespuesta();
	this.caja8.name = "caja8";
	this.caja8.setTransform(598.3,289.95,0.8386,0.8386);

	this.caja7 = new lib.CajaRespuesta();
	this.caja7.name = "caja7";
	this.caja7.setTransform(460.9,289.95,0.8386,0.8386);

	this.caja6 = new lib.CajaRespuesta();
	this.caja6.name = "caja6";
	this.caja6.setTransform(323.55,289.95,0.8386,0.8386);

	this.caja5 = new lib.CajaRespuesta();
	this.caja5.name = "caja5";
	this.caja5.setTransform(186.2,289.95,0.8386,0.8386);

	this.caja4 = new lib.CajaRespuesta();
	this.caja4.name = "caja4";
	this.caja4.setTransform(598.3,171.5,0.8386,0.8386);

	this.caja3 = new lib.CajaRespuesta();
	this.caja3.name = "caja3";
	this.caja3.setTransform(460.9,171.5,0.8386,0.8386);

	this.caja2 = new lib.CajaRespuesta();
	this.caja2.name = "caja2";
	this.caja2.setTransform(323.55,171.5,0.8386,0.8386);

	this.caja1 = new lib.CajaRespuesta();
	this.caja1.name = "caja1";
	this.caja1.setTransform(186.2,171.5,0.8386,0.8386);

	var maskedShapeInstanceList = [this.caja11,this.caja10,this.caja9,this.caja8,this.caja7,this.caja6,this.caja5,this.caja4,this.caja3,this.caja2,this.caja1];

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

	this.timeline.addTween(cjs.Tween.get({}).to({state:[]}).to({state:[{t:this.caja1},{t:this.caja2},{t:this.caja3},{t:this.caja4},{t:this.caja5},{t:this.caja6},{t:this.caja7},{t:this.caja8},{t:this.caja9},{t:this.caja10},{t:this.caja11}]},1).to({state:[]},1).wait(2));

	// sombra_area
	this.shape = new cjs.Shape();
	this.shape.graphics.f("#000000").s().p("ACQbbQhGAAgOg7QgDgNAAgRIAAuKQAAg+ArgTQASgHAagBIQ4AAQAaABASAHQArATAAA+IAAOKQAAARgDANQgOA7hGAAgAzUbbQhGAAgOg7QgDgNAAgRIAAuKQAAg+ArgTQASgHAagBIQ4AAQAaABASAHQArATAAA+IAAOKQAAARgDANQgOA7hGAAgEgo5AbbQhXgBAAhYIAAuKQAAhYBXgBIQ4AAQAaABASAHQArATAAA+IAAOKQAABYhXABgAX0H/QgUAAgQgFQgygQAAhEIAAuIQAAhZBWAAIQ4AAQBXAAAABZIAAOIQAABEgyAQQgQAFgVAAgACQH/QgVAAgQgFQgygQAAhEIAAuIQAAhZBXAAIQ4AAQBXAAAABZIAAOIQAABEgzAQQgQAFgUAAgAzUH/QgVAAgPgFQgzgQAAhEIAAuIQAAhZBXAAIQ4AAQBXAAAABZIAAOIQAABEgzAQQgQAFgUAAgEgo5AH/QhXAAAAhZIAAuIQAAhZBXAAIQ4AAQBXAAAABZIAAOIQAABZhXAAgAYCqfQhXABAAhaIAAuIQAAhaBXABIQ4AAQBXgBAABaIAAOIQAABahXgBgACdqfQhWABAAhaIAAuIQAAhaBWABIQ4AAQBXgBAABaIAAOIQAABahXgBgAzHqfQhWABAAhaIAAuIQAAhaBWABIQ4AAQBXgBAABaIAAOIQAABahXgBgEgosgKfQhWABAAhaIAAuIQAAhaBWABIQ4AAQBXgBAABaIAAOIQAABahXgBg");
	this.shape.setTransform(396.375,295.85);
	this.shape._off = true;

	var maskedShapeInstanceList = [this.shape];

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

	this.timeline.addTween(cjs.Tween.get(this.shape).wait(1).to({_off:false},0).to({_off:true},1).wait(2));

	// pj_graficos
	this.instance_6 = new lib.Interpolación6("synched",0);
	this.instance_6.setTransform(195.35,435.65,1.1335,1.1335);

	var maskedShapeInstanceList = [this.instance_6];

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

	this.timeline.addTween(cjs.Tween.get(this.instance_6).to({_off:true},1).wait(1).to({_off:false},0).wait(1).to({startPosition:0},0).wait(1));

	// fondo
	this.instance_7 = new lib.animacion0065();
	this.instance_7.setTransform(-115,-15,0.8716,0.8716);

	var maskedShapeInstanceList = [this.instance_7];

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

	this.timeline.addTween(cjs.Tween.get(this.instance_7).wait(4));

	this._renderFirstFrame();

}).prototype = p = new lib.AnMovieClip();
p.nominalBounds = new cjs.Rectangle(480,320,480,319.9);
// library properties:
lib.properties = {
	id: '300947A6434A499FBC5305090981491D',
	width: 960,
	height: 640,
	fps: 60,
	color: "#FFFFFF",
	opacity: 1.00,
	manifest: [
		{src:"images/MARCO.png?1684267707231", id:"MARCO"},
		{src:"images/pj12.png?1684267707231", id:"pj12"},
		{src:"images/actividad2b_atlas_1.png?1684267707193", id:"actividad2b_atlas_1"},
		{src:"images/actividad2b_atlas_2.png?1684267707193", id:"actividad2b_atlas_2"},
		{src:"images/actividad2b_atlas_3.png?1684267707193", id:"actividad2b_atlas_3"}
	],
	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<an.bootcompsLoaded.length; ++i) {
			fnCallback(an.bootcompsLoaded[i]);
		}
	}
};

an.compositions = an.compositions || {};
an.compositions['300947A6434A499FBC5305090981491D'] = {
	getStage: function() { return exportRoot.stage; },
	getLibrary: function() { return lib; },
	getSpriteSheet: function() { return ss; },
	getImages: function() { return img; }
};

an.compositionLoaded = function(id) {
	an.bootcompsLoaded.push(id);
	for(var j=0; j<an.bootstrapListeners.length; j++) {
		an.bootstrapListeners[j](id);
	}
}

an.getComposition = function(id) {
	return an.compositions[id];
}


an.makeResponsive = function(isResp, respDim, isScale, scaleType, domContainers) {		
	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);				
			}			
		}
		domContainers[0].width = w * pRatio * sRatio;			
		domContainers[0].height = h * pRatio * sRatio;
		domContainers.forEach(function(container) {				
			container.style.width = w * sRatio + 'px';				
			container.style.height = h * sRatio + 'px';			
		});
		stage.scaleX = pRatio*sRatio;			
		stage.scaleY = pRatio*sRatio;
		lastW = iw; lastH = ih; lastS = sRatio;            
		stage.tickOnUpdate = false;            
		stage.update();            
		stage.tickOnUpdate = true;		
	}
}
an.handleSoundStreamOnTick = function(event) {
	if(!event.paused){
		var stageChild = stage.getChildAt(0);
		if(!stageChild.paused || stageChild.ignorePause){
			stageChild.syncStreamSounds();
		}
	}
}
an.handleFilterCache = function(event) {
	if(!event.paused){
		var target = event.target;
		if(target){
			if(target.filterCacheList){
				for(var index = 0; index < target.filterCacheList.length ; index++){
					var cacheInst = target.filterCacheList[index];
					if((cacheInst.startFrame <= target.currentFrame) && (target.currentFrame <= cacheInst.endFrame)){
						cacheInst.instance.cache(cacheInst.x, cacheInst.y, cacheInst.w, cacheInst.h);
					}
				}
			}
		}
	}
}


})(createjs = createjs||{}, AdobeAn = AdobeAn||{});
var createjs, AdobeAn;