(function (cjs, an) {

var p; // shortcut to reference prototypes
var lib={};var ss={};var img={};
lib.ssMetadata = [
		{name:"actividad2a_atlas_1", frames: [[0,0,1471,1471]]},
		{name:"actividad2a_atlas_2", frames: [[532,1746,271,160],[805,1746,271,160],[1078,1884,271,160],[1802,1213,172,56],[1803,943,172,72],[1797,1149,172,62],[1628,1213,172,62],[1351,1884,250,160],[0,1746,333,123],[1603,1884,250,160],[532,1908,333,123],[1803,1017,167,64],[1628,1023,167,64],[1368,692,201,64],[1797,1083,167,64],[1628,1089,167,64],[0,1550,1213,194],[1215,1712,748,170],[1628,692,353,92],[1215,1484,748,226],[0,1884,530,92],[0,770,1063,498],[1628,786,334,68],[1368,514,544,91],[867,1908,193,78],[1855,1884,193,78],[1855,1964,193,78],[1628,856,193,78],[1823,856,173,85],[867,1988,173,57],[1628,936,173,85],[335,1746,173,90],[1114,1284,855,198],[0,1270,1112,278],[0,1978,479,65],[1368,607,593,83],[0,0,1366,768],[1114,770,512,512],[1368,0,512,512]]},
		{name:"actividad2a_atlas_3", frames: [[174,418,172,32],[0,0,172,56],[0,58,172,40],[0,100,172,40],[0,142,172,40],[0,184,172,40],[0,226,172,40],[0,268,172,40],[0,310,172,40],[0,352,172,40],[0,394,172,40],[0,436,172,40],[174,0,167,36],[174,38,167,36],[174,76,167,36],[174,114,167,36],[174,152,167,36],[174,190,167,36],[174,228,167,36],[174,266,167,36],[174,304,167,36],[174,342,167,36],[174,380,167,36]]}
];


(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_594 = function() {
	this.initialize(ss["actividad2a_atlas_2"]);
	this.gotoAndStop(0);
}).prototype = p = new cjs.Sprite();



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



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



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



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



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



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



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



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



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



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



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



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



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



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



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



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



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



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



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



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



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



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



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



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



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



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



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



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



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



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



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



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



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



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



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



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



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



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



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



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



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



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



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



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



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



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



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



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



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



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



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



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



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



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



(lib.CachedBmp_536 = function() {
	this.initialize(ss["actividad2a_atlas_2"]);
	this.gotoAndStop(32);
}).prototype = p = new cjs.Sprite();



(lib.CachedBmp_535 = function() {
	this.initialize(ss["actividad2a_atlas_2"]);
	this.gotoAndStop(33);
}).prototype = p = new cjs.Sprite();



(lib.CachedBmp_534 = function() {
	this.initialize(ss["actividad2a_atlas_2"]);
	this.gotoAndStop(34);
}).prototype = p = new cjs.Sprite();



(lib.CachedBmp_533 = function() {
	this.initialize(ss["actividad2a_atlas_2"]);
	this.gotoAndStop(35);
}).prototype = p = new cjs.Sprite();



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



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



(lib.drag = function() {
	this.initialize(ss["actividad2a_atlas_2"]);
	this.gotoAndStop(37);
}).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["actividad2a_atlas_2"]);
	this.gotoAndStop(38);
}).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_590();
	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_593();
	this.instance_2.setTransform(-142.75,25.55,0.5,0.5);

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

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

	this.instance_5 = new lib.CachedBmp_594();
	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.resultado = 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,op1r1:1,op1r2:2,op1r3:3,op1r4:4,op2r1:5,op2r2:6,op2r3:7,op2r4:8,op3r1:9,op3r2:10,op3r3:11,op3r4:12,op4r1:13,op4r2:14,op4r3:15,op4r4:16};
	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(17));

	// texto
	this.instance = new lib.CachedBmp_573();
	this.instance.setTransform(-43.35,-15.8,0.5,0.5);

	this.instance_1 = new lib.CachedBmp_574();
	this.instance_1.setTransform(-43.35,-10.85,0.5,0.5);

	this.instance_2 = new lib.CachedBmp_575();
	this.instance_2.setTransform(-43.35,-10.85,0.5,0.5);

	this.instance_3 = new lib.CachedBmp_576();
	this.instance_3.setTransform(-43.35,-10.85,0.5,0.5);

	this.instance_4 = new lib.CachedBmp_577();
	this.instance_4.setTransform(-43.35,-15.05,0.5,0.5);

	this.instance_5 = new lib.CachedBmp_578();
	this.instance_5.setTransform(-43.35,-9.35,0.5,0.5);

	this.instance_6 = new lib.CachedBmp_579();
	this.instance_6.setTransform(-43.35,-9.35,0.5,0.5);

	this.instance_7 = new lib.CachedBmp_580();
	this.instance_7.setTransform(-43.05,-18,0.5,0.5);

	this.instance_8 = new lib.CachedBmp_581();
	this.instance_8.setTransform(-43.05,-10.65,0.5,0.5);

	this.instance_9 = new lib.CachedBmp_582();
	this.instance_9.setTransform(-43.05,-10.65,0.5,0.5);

	this.instance_10 = new lib.CachedBmp_583();
	this.instance_10.setTransform(-43.05,-10.65,0.5,0.5);

	this.instance_11 = new lib.CachedBmp_584();
	this.instance_11.setTransform(-43.05,-10.65,0.5,0.5);

	this.instance_12 = new lib.CachedBmp_585();
	this.instance_12.setTransform(-43.05,-10.65,0.5,0.5);

	this.instance_13 = new lib.CachedBmp_586();
	this.instance_13.setTransform(-43.05,-13.05,0.5,0.5);

	this.instance_14 = new lib.CachedBmp_587();
	this.instance_14.setTransform(-43.05,-13.05,0.5,0.5);

	this.instance_15 = new lib.CachedBmp_588();
	this.instance_15.setTransform(-43.05,-8.2,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).wait(1));

	// fondo
	this.shape = new cjs.Shape();
	this.shape.graphics.f("#95150A").s().p("AmZDFQhkAAAAhkIAAjBQAAhkBkAAIMzAAQBkAAAABkIAADBQAABkhkAAg");
	this.shape.setTransform(0.025,0.025);

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

	this._renderFirstFrame();

}).prototype = p = new cjs.MovieClip();
p.nominalBounds = new cjs.Rectangle(-51,-19.7,102.1,39.5);


(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_570();
	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_593();
	this.instance_2.setTransform(-146.65,25.65,0.5,0.5);

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

	this.instance_4 = new lib.CachedBmp_591();
	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 = {pegante1:0,pegante2:1,pegante3:2,pegante4:3,lechada1:4,lechada2:5,lechada3:6,lechada4:7,unidad1:8,unidad2:9,unidad3:10,unidad4:11,personal1:12,personal2:13,personal3:14,personal4:15};
	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(16));

	// tetxo
	this.instance = new lib.CachedBmp_553();
	this.instance.setTransform(-41.6,-15.7,0.5,0.5);

	this.instance_1 = new lib.CachedBmp_554();
	this.instance_1.setTransform(-41.6,-9.15,0.5,0.5);

	this.instance_2 = new lib.CachedBmp_555();
	this.instance_2.setTransform(-41.6,-9.15,0.5,0.5);

	this.instance_3 = new lib.CachedBmp_556();
	this.instance_3.setTransform(-41.6,-9.15,0.5,0.5);

	this.instance_4 = new lib.CachedBmp_557();
	this.instance_4.setTransform(-41.6,-7.5,0.5,0.5);

	this.instance_5 = new lib.CachedBmp_558();
	this.instance_5.setTransform(-41.6,-8.05,0.5,0.5);

	this.instance_6 = new lib.CachedBmp_559();
	this.instance_6.setTransform(-41.6,-8.05,0.5,0.5);

	this.instance_7 = new lib.CachedBmp_560();
	this.instance_7.setTransform(-41.6,-15,0.5,0.5);

	this.instance_8 = new lib.CachedBmp_561();
	this.instance_8.setTransform(-41.6,-8.9,0.5,0.5);

	this.instance_9 = new lib.CachedBmp_562();
	this.instance_9.setTransform(-41.6,-8.9,0.5,0.5);

	this.instance_10 = new lib.CachedBmp_563();
	this.instance_10.setTransform(-41.6,-8.9,0.5,0.5);

	this.instance_11 = new lib.CachedBmp_564();
	this.instance_11.setTransform(-41.6,-9.15,0.5,0.5);

	this.instance_12 = new lib.CachedBmp_565();
	this.instance_12.setTransform(-41.6,-8.05,0.5,0.5);

	this.instance_13 = new lib.CachedBmp_566();
	this.instance_13.setTransform(-50.6,-15.55,0.5,0.5);

	this.instance_14 = new lib.CachedBmp_567();
	this.instance_14.setTransform(-41.6,-15.55,0.5,0.5);

	this.instance_15 = new lib.CachedBmp_568();
	this.instance_15.setTransform(-41.6,-15.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).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).wait(1));

	// fondo
	this.shape = new cjs.Shape();
	this.shape.graphics.f().s("#000000").ss(1,1,1).p("Am3jAINuAAQBVAAAABLIAADrQAABLhVAAItuAAQhUAAAAhLIAAjrQAAhLBUAAg");

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

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

	this._renderFirstFrame();

}).prototype = p = new cjs.MovieClip();
p.nominalBounds = new cjs.Rectangle(-53.4,-20.3,106.8,40.6);


(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_resultados = 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.shape = new cjs.Shape();
	this.shape.graphics.f("#FFFFFF").s().p("EgzGAF2QhjAAgBhkIAAokQABhjBjAAMBmNAAAQBjAAAABjIAAIkQAABkhjAAg");

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

	this._renderFirstFrame();

}).prototype = getMCSymbolPrototype(lib.fondo_resultados, new cjs.Rectangle(-337,-37.4,674.1,74.9), null);


(lib.fondo_opciones = 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.shape = new cjs.Shape();
	this.shape.graphics.f("#9F031A").s().p("AndKrQgeAAgWgWQgVgVAAgeIAAzDQAAgeAVgVQAWgWAeAAIO7AAQAeAAAWAWQAVAVAAAeIAATDQAAAegVAVQgWAWgeAAg");
	this.shape.setTransform(-0.0043,49.5361,1.2897,1.7207);

	this.shape_1 = new cjs.Shape();
	this.shape_1.graphics.f("#FFFFFF").s().p("An7DJIAAktQAAhkBkAAIMvAAQBkAAAABkIAAEtg");
	this.shape_1.setTransform(-0.175,-88.075);

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

	this._renderFirstFrame();

}).prototype = getMCSymbolPrototype(lib.fondo_opciones, new cjs.Rectangle(-71,-108.1,142.1,275.1), null);


(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.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_546();
	this.instance.setTransform(-86.9,-16.7,0.5,0.5);

	this.instance_1 = new lib.CachedBmp_545();
	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_541();
	this.instance.setTransform(-45.05,-18.15,0.4667,0.4667);

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

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

	this.instance_3 = new lib.CachedBmp_544();
	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_552();
	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(-361.05,45.3);
	this.instance_1.alpha = 0;
	this.instance_1._off = true;

	this.instance_2 = new lib.mano_cerrada_clip();
	this.instance_2.setTransform(-273.85,-89.3);
	this.instance_2._off = true;

	this.timeline.addTween(cjs.Tween.get(this.instance_1).wait(19).to({_off:false},0).to({x:-273.85,y:-89.3,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:-269.05,y:142.5},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("actividad2b.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,76.25);
	new cjs.ButtonHelper(this.btnFinalizar, 0, 1, 1);

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

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

	this.instance_1 = new lib.CachedBmp_550();
	this.instance_1.setTransform(-61.45,-103.65,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("A8XszIh5AKIAAmeMBHeAAAMAAAAmPMhHeAAAIAA6MIBrAtA+QspIq9A8IK9Ep");
	this.shape.setTransform(0,0.025);

	this.shape_1 = new cjs.Shape();
	this.shape_1.graphics.f("#FFFFFF").s().p("A+QTIIAA6MIBrAtIhrgtIq9kpIK9g8IB5gKIh5AKIAAmeMBHeAAAMAAAAmPg");
	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_549();
	this.instance.setTransform(-174.1,-59.75,0.5,0.5);

	this.instance_1 = new lib.CachedBmp_548();
	this.instance_1.setTransform(-122.55,-107.1,0.5,0.5);

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

	this.instance_2 = new lib.CachedBmp_547();
	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.actividad2a = 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,actividad:1,feedbackOk:2,feedbackWrong:3};
	props.loop = loop;
	props.reversed = reversed;
	cjs.MovieClip.apply(this,[props]);

	this.actionFrames = [0,1];
	// timeline functions:
	this.frame_0 = function() {
		escena_intro = this;
		escena_intro.stop();
		
		escena_intro.next.on('click', function(){
			escena_intro.gotoAndStop('actividad');
		});
		
		escena_intro.back.on('click', function(){
			pasarEstado();
		});
	}
	this.frame_1 = function() {
		escena_juego = this;
		escena_juego.stop();
		
		let aciertos = 0;
		let errores = 0;
		intentos=0;
		
		
		escena_juego.btnVerificar.alpha=0;
		
		//Establecimiento de textos para cada pieza
		escena_juego.pegante1.gotoAndStop("pegante3");
		escena_juego.pegante2.gotoAndStop("pegante2");
		escena_juego.pegante3.gotoAndStop("pegante1");
		escena_juego.pegante4.gotoAndStop("pegante4");
		
		escena_juego.lechada1.gotoAndStop("lechada1");
		escena_juego.lechada2.gotoAndStop("lechada2");
		escena_juego.lechada3.gotoAndStop("lechada3");
		escena_juego.lechada4.gotoAndStop("lechada4");
		
		escena_juego.unidad1.gotoAndStop("unidad1");
		escena_juego.unidad2.gotoAndStop("unidad2");
		escena_juego.unidad3.gotoAndStop("unidad3");
		escena_juego.unidad4.gotoAndStop("unidad4");
		
		escena_juego.personal1.gotoAndStop("personal1");
		escena_juego.personal2.gotoAndStop("personal2");
		escena_juego.personal3.gotoAndStop("personal3");
		escena_juego.personal4.gotoAndStop("personal4");
		
		//adicionando la propiedad pointer true a cada pieza
		escena_juego.pegante1.cursor = "pointer";
		escena_juego.pegante2.cursor = "pointer";
		escena_juego.pegante3.cursor = "pointer";
		escena_juego.pegante4.cursor = "pointer";
		
		escena_juego.lechada1.cursor = "pointer";
		escena_juego.lechada2.cursor = "pointer";
		escena_juego.lechada3.cursor = "pointer";
		escena_juego.lechada4.cursor = "pointer";
		
		escena_juego.unidad1.cursor = "pointer";
		escena_juego.unidad2.cursor = "pointer";
		escena_juego.unidad3.cursor = "pointer";
		escena_juego.unidad4.cursor = "pointer";
		
		escena_juego.personal1.cursor = "pointer";
		escena_juego.personal2.cursor = "pointer";
		escena_juego.personal3.cursor = "pointer";
		escena_juego.personal4.cursor = "pointer";
		
		//Mouse children para cada pieza
		escena_juego.pegante1.mouseChildren = false;
		escena_juego.pegante2.mouseChildren = false;
		escena_juego.pegante3.mouseChildren = false;
		escena_juego.pegante4.mouseChildren = false;
		
		escena_juego.lechada1.mouseChildren = false;
		escena_juego.lechada2.mouseChildren = false;
		escena_juego.lechada3.mouseChildren = false;
		escena_juego.lechada4.mouseChildren = false;
		
		escena_juego.unidad1.mouseChildren = false;
		escena_juego.unidad2.mouseChildren = false;
		escena_juego.unidad3.mouseChildren = false;
		escena_juego.unidad4.mouseChildren = false;
		
		escena_juego.personal1.mouseChildren = false;
		escena_juego.personal2.mouseChildren = false;
		escena_juego.personal3.mouseChildren = false;
		escena_juego.personal4.mouseChildren = false;
		
		//funciones de arrastrado de alternativas arena
		escena_juego.pegante1.addEventListener("pressmove", dragMovieClip);
		escena_juego.pegante2.addEventListener("pressmove", dragMovieClip);
		escena_juego.pegante3.addEventListener("pressmove", dragMovieClip);
		escena_juego.pegante4.addEventListener("pressmove", dragMovieClip);
		
		escena_juego.lechada1.addEventListener("pressmove", dragMovieClip);
		escena_juego.lechada2.addEventListener("pressmove", dragMovieClip);
		escena_juego.lechada3.addEventListener("pressmove", dragMovieClip);
		escena_juego.lechada4.addEventListener("pressmove", dragMovieClip);
		
		escena_juego.unidad1.addEventListener("pressmove", dragMovieClip);
		escena_juego.unidad2.addEventListener("pressmove", dragMovieClip);
		escena_juego.unidad3.addEventListener("pressmove", dragMovieClip);
		escena_juego.unidad4.addEventListener("pressmove", dragMovieClip);
		
		escena_juego.personal1.addEventListener("pressmove", dragMovieClip);
		escena_juego.personal2.addEventListener("pressmove", dragMovieClip);
		escena_juego.personal3.addEventListener("pressmove", dragMovieClip);
		escena_juego.personal4.addEventListener("pressmove", dragMovieClip);
		
		
		function dragMovieClip(evt) {
		    evt.currentTarget.x = evt.stageX/stage.scaleX;
		    evt.currentTarget.y = evt.stageY/stage.scaleY;
		}
		
		//Colisiones para fichas de pegante
		escena_juego.pegante3.on("pressup", function(evento){
			var lista_act2 = escena_juego.getObjectsUnderPoint(escena_juego.pegante3.x, escena_juego.pegante3.y);
			for(var i=0; i< lista_act2.length; i++){
				if(lista_act2[i].parent.name == "respuestas1"){
					escena_juego.respuestas1.gotoAndStop('op1r1');
					escena_juego.pegante3.alpha=0;
					aciertos++;
					intentos++;
					validarIntentos();
					
				}else{
					escena_juego.pegante3.x=215,35;
					escena_juego.pegante3.y=274,3;
				}
			}
		});
		
		escena_juego.pegante1.on("pressup", function(evento){
			var lista_act2 = escena_juego.getObjectsUnderPoint(escena_juego.pegante1.x, escena_juego.pegante1.y);
			for(var i=0; i< lista_act2.length; i++){
				if(lista_act2[i].parent.name == "respuestas1"){
					escena_juego.respuestas1.gotoAndStop('op1r3');
					escena_juego.pegante1.alpha=0;
					errores++;
					intentos++;
					validarIntentos();
					
					
				}else{
					escena_juego.pegante1.x=215,35;
					escena_juego.pegante1.y=173,15;
				}
			}
		});
		
		
		escena_juego.pegante2.on("pressup", function(evento){
			var lista_act2 = escena_juego.getObjectsUnderPoint(escena_juego.pegante2.x, escena_juego.pegante2.y);
			for(var i=0; i< lista_act2.length; i++){
				if(lista_act2[i].parent.name == "respuestas1"){
					escena_juego.respuestas1.gotoAndStop('op1r2');
					escena_juego.pegante2.alpha=0;
					errores++;
					intentos++;
					validarIntentos();
					
					
				}else{
					escena_juego.pegante2.x=215,35;
					escena_juego.pegante2.y=223,85;
				}
			}
		});
		
		escena_juego.pegante4.on("pressup", function(evento){
			var lista_act2 = escena_juego.getObjectsUnderPoint(escena_juego.pegante4.x, escena_juego.pegante4.y);
			for(var i=0; i< lista_act2.length; i++){
				if(lista_act2[i].parent.name == "respuestas1"){
					escena_juego.respuestas1.gotoAndStop('op1r4');
					escena_juego.pegante4.alpha=0;
					errores++;
					intentos++;
					validarIntentos();
					
					
				}else{
					escena_juego.pegante4.x=215,35;
					escena_juego.pegante4.y=330,35;
				}
			}
		});
		
		
		//Colisiones para fichas de Lechadas
		escena_juego.lechada1.on("pressup", function(evento){
			var lista_act2 = escena_juego.getObjectsUnderPoint(escena_juego.lechada1.x, escena_juego.lechada1.y);
			for(var i=0; i< lista_act2.length; i++){
				if(lista_act2[i].parent.name == "respuestas2"){
					escena_juego.respuestas2.gotoAndStop('op2r1');
					escena_juego.lechada1.alpha=0;
					aciertos++;
					intentos++;
					validarIntentos();
					
					
				}else{
					escena_juego.lechada1.x=396,2;
					escena_juego.lechada1.y=173,15;
				}
			}
		});
		
		escena_juego.lechada2.on("pressup", function(evento){
			var lista_act2 = escena_juego.getObjectsUnderPoint(escena_juego.lechada2.x, escena_juego.lechada2.y);
			for(var i=0; i< lista_act2.length; i++){
				if(lista_act2[i].parent.name == "respuestas2"){
					escena_juego.respuestas2.gotoAndStop('op2r2');
					escena_juego.lechada2.alpha=0;
					errores++;
					intentos++;
					validarIntentos();
					
					
				}else{
					escena_juego.lechada2.x=396,2;
					escena_juego.lechada2.y=223,85;
				}
			}
		});
		
		escena_juego.lechada3.on("pressup", function(evento){
			var lista_act2 = escena_juego.getObjectsUnderPoint(escena_juego.lechada3.x, escena_juego.lechada3.y);
			for(var i=0; i< lista_act2.length; i++){
				if(lista_act2[i].parent.name == "respuestas2"){
					escena_juego.respuestas2.gotoAndStop('op2r3');
					escena_juego.lechada3.alpha=0;
					errores++;
					intentos++;
					validarIntentos();
					
					
				}else{
					escena_juego.lechada3.x=396,2;
					escena_juego.lechada3.y=274,3;
				}
			}
		});
		
		escena_juego.lechada4.on("pressup", function(evento){
			var lista_act2 = escena_juego.getObjectsUnderPoint(escena_juego.lechada4.x, escena_juego.lechada4.y);
			for(var i=0; i< lista_act2.length; i++){
				if(lista_act2[i].parent.name == "respuestas2"){
					escena_juego.respuestas2.gotoAndStop('op2r4');
					escena_juego.lechada4.alpha=0;
					errores++;
					intentos++;
					validarIntentos();
					
					
				}else{
					escena_juego.lechada4.x=396,2;
					escena_juego.lechada4.y=330,35;
				}
			}
		});
		
		//Colisiones para fichas de unidades
		escena_juego.unidad1.on("pressup", function(evento){
			var lista_act2 = escena_juego.getObjectsUnderPoint(escena_juego.unidad1.x, escena_juego.unidad1.y);
			for(var i=0; i< lista_act2.length; i++){
				if(lista_act2[i].parent.name == "respuestas3"){
					escena_juego.respuestas3.gotoAndStop('op3r1');
					escena_juego.unidad1.alpha=0;
					aciertos++;
					intentos++;
					validarIntentos();
					
					
				}else{
					escena_juego.unidad1.x=575,35;
					escena_juego.unidad1.y=173,15;
				}
			}
		});
		
		escena_juego.unidad2.on("pressup", function(evento){
			var lista_act2 = escena_juego.getObjectsUnderPoint(escena_juego.unidad2.x, escena_juego.unidad2.y);
			for(var i=0; i< lista_act2.length; i++){
				if(lista_act2[i].parent.name == "respuestas3"){
					escena_juego.respuestas3.gotoAndStop('op3r2');
					escena_juego.unidad2.alpha=0;
					errores++;
					intentos++;
					validarIntentos();
					
					
				}else{
					escena_juego.unidad2.x=575,35;
					escena_juego.unidad2.y=223,85;
				}
			}
		});
		
		escena_juego.unidad3.on("pressup", function(evento){
			var lista_act2 = escena_juego.getObjectsUnderPoint(escena_juego.unidad3.x, escena_juego.unidad3.y);
			for(var i=0; i< lista_act2.length; i++){
				if(lista_act2[i].parent.name == "respuestas3"){
					escena_juego.respuestas3.gotoAndStop('op3r3');
					escena_juego.unidad3.alpha=0;
					errores++;
					intentos++;
					validarIntentos();
					
					
				}else{
					escena_juego.unidad3.x=575,35;
					escena_juego.unidad3.y=274,3;
				}
			}
		});
		
		escena_juego.unidad4.on("pressup", function(evento){
			var lista_act2 = escena_juego.getObjectsUnderPoint(escena_juego.unidad4.x, escena_juego.unidad4.y);
			for(var i=0; i< lista_act2.length; i++){
				if(lista_act2[i].parent.name == "respuestas3"){
					escena_juego.respuestas3.gotoAndStop('op3r4');
					escena_juego.unidad4.alpha=0;
					errores++;
					intentos++;
					validarIntentos();
					
					
				}else{
					escena_juego.unidad4.x=575,35;
					escena_juego.unidad4.y=330,35;
				}
			}
		});
		
		//Colisiones para fichas de personal
		escena_juego.personal1.on("pressup", function(evento){
			var lista_act2 = escena_juego.getObjectsUnderPoint(escena_juego.personal1.x, escena_juego.personal1.y);
			for(var i=0; i< lista_act2.length; i++){
				if(lista_act2[i].parent.name == "respuestas4"){
					escena_juego.respuestas4.gotoAndStop('op4r1');
					escena_juego.personal1.alpha=0;
					aciertos++;
					intentos++;
					validarIntentos();
					
					
				}else{
					escena_juego.personal1.x=754,5;
					escena_juego.personal1.y=173,15;
				}
			}
		});
		
		escena_juego.personal2.on("pressup", function(evento){
			var lista_act2 = escena_juego.getObjectsUnderPoint(escena_juego.personal2.x, escena_juego.personal2.y);
			for(var i=0; i< lista_act2.length; i++){
				if(lista_act2[i].parent.name == "respuestas4"){
					escena_juego.respuestas4.gotoAndStop('op4r2');
					escena_juego.personal2.alpha=0;
					errores++;
					intentos++;
					validarIntentos();
					
					
				}else{
					escena_juego.personal2.x=754,5;
					escena_juego.personal2.y=223,85;
				}
			}
		});
		
		escena_juego.personal3.on("pressup", function(evento){
			var lista_act2 = escena_juego.getObjectsUnderPoint(escena_juego.personal3.x, escena_juego.personal3.y);
			for(var i=0; i< lista_act2.length; i++){
				if(lista_act2[i].parent.name == "respuestas4"){
					escena_juego.respuestas4.gotoAndStop('op4r3');
					escena_juego.personal3.alpha=0;
					errores++;
					intentos++;
					validarIntentos();
					
					
				}else{
					escena_juego.personal3.x=754,5;
					escena_juego.personal3.y=274,3;
				}
			}
		});
		
		escena_juego.personal4.on("pressup", function(evento){
			var lista_act2 = escena_juego.getObjectsUnderPoint(escena_juego.personal4.x, escena_juego.personal4.y);
			for(var i=0; i< lista_act2.length; i++){
				if(lista_act2[i].parent.name == "respuestas4"){
					escena_juego.respuestas4.gotoAndStop('op4r4');
					escena_juego.personal4.alpha=0;
					errores++;
					intentos++;
					validarIntentos();
					
					
				}else{
					escena_juego.personal4.x=754,5;
					escena_juego.personal4.y=330,35;
				}
			}
		});
		
		function validarIntentos(){
			if(intentos==4){
				escena_juego.btnVerificar.alpha=1;
			}
		};
		
		escena_juego.btnVerificar.on('click', function(){
			if(aciertos===4){
				escena_juego.gotoAndStop("feedbackOk");
			}else{
				escena_juego.gotoAndStop("feedbackWrong");
			}
		});
	}

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

	// 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_534();
	this.instance_1.setTransform(361.3,576.85,0.5,0.5);

	this.instance_2 = new lib.CachedBmp_533();
	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_536();
	this.instance_4.setTransform(341.3,84.4,0.5,0.5);

	this.instance_5 = new lib.CachedBmp_535();
	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).wait(3));

	// 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.btnVerificar = new lib.btn_califcar_act();
	this.btnVerificar.name = "btnVerificar";
	this.btnVerificar.setTransform(480.25,530,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.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}]},1).to({state:[{t:this.feedbackOk}]},1).to({state:[{t:this.feedbackWrong}]},1).wait(1));

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

	this.personal4 = new lib.opcion();
	this.personal4.name = "personal4";
	this.personal4.setTransform(754.5,330.35);

	this.personal3 = new lib.opcion();
	this.personal3.name = "personal3";
	this.personal3.setTransform(754.5,274.3);

	this.personal2 = new lib.opcion();
	this.personal2.name = "personal2";
	this.personal2.setTransform(754.5,223.85);

	this.personal1 = new lib.opcion();
	this.personal1.name = "personal1";
	this.personal1.setTransform(754.5,173.15);

	this.unidad4 = new lib.opcion();
	this.unidad4.name = "unidad4";
	this.unidad4.setTransform(575.35,330.35);

	this.unidad3 = new lib.opcion();
	this.unidad3.name = "unidad3";
	this.unidad3.setTransform(575.35,274.3);

	this.unidad2 = new lib.opcion();
	this.unidad2.name = "unidad2";
	this.unidad2.setTransform(575.35,223.85);

	this.unidad1 = new lib.opcion();
	this.unidad1.name = "unidad1";
	this.unidad1.setTransform(575.35,173.15);

	this.lechada4 = new lib.opcion();
	this.lechada4.name = "lechada4";
	this.lechada4.setTransform(396.2,330.35);

	this.lechada3 = new lib.opcion();
	this.lechada3.name = "lechada3";
	this.lechada3.setTransform(396.2,274.3);

	this.lechada2 = new lib.opcion();
	this.lechada2.name = "lechada2";
	this.lechada2.setTransform(396.2,223.85);

	this.lechada1 = new lib.opcion();
	this.lechada1.name = "lechada1";
	this.lechada1.setTransform(396.2,173.15);

	this.pegante4 = new lib.opcion();
	this.pegante4.name = "pegante4";
	this.pegante4.setTransform(215.35,330.35);

	this.pegante3 = new lib.opcion();
	this.pegante3.name = "pegante3";
	this.pegante3.setTransform(215.35,274.3);

	this.pegante2 = new lib.opcion();
	this.pegante2.name = "pegante2";
	this.pegante2.setTransform(215.35,223.85);

	this.pegante1 = new lib.opcion();
	this.pegante1.name = "pegante1";
	this.pegante1.setTransform(215.35,173.15);

	this.respuestas4 = new lib.resultado();
	this.respuestas4.name = "respuestas4";
	this.respuestas4.setTransform(755.85,459.75);

	this.respuestas3 = new lib.resultado();
	this.respuestas3.name = "respuestas3";
	this.respuestas3.setTransform(570.8,459.75);

	this.respuestas2 = new lib.resultado();
	this.respuestas2.name = "respuestas2";
	this.respuestas2.setTransform(390.45,459.75);

	this.respuestas1 = new lib.resultado();
	this.respuestas1.name = "respuestas1";
	this.respuestas1.setTransform(213.95,459.75);

	this.instance_7 = new lib.fondo_resultados();
	this.instance_7.setTransform(481.5,461.45);

	this.instance_8 = new lib.CachedBmp_540();
	this.instance_8.setTransform(713.9,98.9,0.5,0.5);

	this.instance_9 = new lib.CachedBmp_539();
	this.instance_9.setTransform(352.75,107,0.5,0.5);

	this.instance_10 = new lib.CachedBmp_538();
	this.instance_10.setTransform(531.95,98.9,0.5,0.5);

	this.instance_11 = new lib.fondo_opciones();
	this.instance_11.setTransform(752.55,205.55);

	this.instance_12 = new lib.fondo_opciones();
	this.instance_12.setTransform(573.5,205.55);

	this.instance_13 = new lib.fondo_opciones();
	this.instance_13.setTransform(394.5,205.55);

	this.instance_14 = new lib.CachedBmp_537();
	this.instance_14.setTransform(176,107,0.5,0.5);

	this.instance_15 = new lib.fondo_opciones();
	this.instance_15.setTransform(215.5,205.55);

	var maskedShapeInstanceList = [this.instance_6,this.personal4,this.personal3,this.personal2,this.personal1,this.unidad4,this.unidad3,this.unidad2,this.unidad1,this.lechada4,this.lechada3,this.lechada2,this.lechada1,this.pegante4,this.pegante3,this.pegante2,this.pegante1,this.respuestas4,this.respuestas3,this.respuestas2,this.respuestas1,this.instance_7,this.instance_8,this.instance_9,this.instance_10,this.instance_11,this.instance_12,this.instance_13,this.instance_14,this.instance_15];

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

	this.timeline.addTween(cjs.Tween.get({}).to({state:[{t:this.instance_6}]}).to({state:[{t:this.instance_15},{t:this.instance_14},{t:this.instance_13},{t:this.instance_12},{t:this.instance_11},{t:this.instance_10},{t:this.instance_9},{t:this.instance_8},{t:this.instance_7},{t:this.respuestas1},{t:this.respuestas2},{t:this.respuestas3},{t:this.respuestas4},{t:this.pegante1},{t:this.pegante2},{t:this.pegante3},{t:this.pegante4},{t:this.lechada1},{t:this.lechada2},{t:this.lechada3},{t:this.lechada4},{t:this.unidad1},{t:this.unidad2},{t:this.unidad3},{t:this.unidad4},{t:this.personal1},{t:this.personal2},{t:this.personal3},{t:this.personal4}]},1).to({state:[{t:this.instance_6}]},1).to({state:[{t:this.instance_6}]},1).wait(1));

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

	var maskedShapeInstanceList = [this.instance_16];

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

	this.timeline.addTween(cjs.Tween.get(this.instance_16).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: 30,
	color: "#FFFFFF",
	opacity: 1.00,
	manifest: [
		{src:"images/MARCO.png?1684267696787", id:"MARCO"},
		{src:"images/pj12.png?1684267696787", id:"pj12"},
		{src:"images/actividad2a_atlas_1.png?1684267696744", id:"actividad2a_atlas_1"},
		{src:"images/actividad2a_atlas_2.png?1684267696744", id:"actividad2a_atlas_2"},
		{src:"images/actividad2a_atlas_3.png?1684267696745", id:"actividad2a_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;