STORY   LOOP   FURRY   PORN   GAMES
• C •   SERVICES [?] [R] RND   POPULAR
Archived flashes:
228069
/disc/ · /res/     /show/ · /fap/ · /gg/ · /swf/P0001 · P2560 · P5120

<div style="position:absolute;top:-99px;left:-99px;"><img src="http://swfchan.com:57475/11902957?noj=FRM11902957-28DC" width="1" height="1"></div>

Parejas Taringueras (beta) by ProfesorBigotin.swf

This is the info page for
Flash #227689

(Click the ID number above for more basic data on this flash file.)


ActionScript [AS1/AS2]
Combined Code
movieClip 7 ayudante_retirador { #initclip Object.registerClass('ayudante_retirador', ayudante_retirador); #endinitclip } movieClip 9 ayudante_cambiador { #initclip Object.registerClass('ayudante_cambiador', ayudante_cambiador); #endinitclip } // unknown tag 88 length 69 movieClip 12 puntaje_flotante { #initclip Object.registerClass('puntaje_flotante', puntaje_flotante); #endinitclip } // unknown tag 88 length 84 movieClip 18 { } movieClip 21 { } // unknown tag 88 length 62 movieClip 57 obj_tarjeta { #initclip Object.registerClass('obj_tarjeta', obj_tarjeta); #endinitclip } movieClip 59 pantalla_2 { #initclip Object.registerClass('pantalla_2', pantalla_2); #endinitclip } movieClip 60 carta_danzarina { #initclip Object.registerClass('carta_danzarina', carta_danzarina); #endinitclip } frame 1 { function reiniciar_variables() { nivel_actual = 1; cartas_actuales = 0; puntos = 0; tiempo = 10; tiempo_max = 10; nivel_array[1] = new Array(1, 1, 2, 2); nivel_array[2] = new Array(1, 1, 2, 2, 3, 3); nivel_array[3] = new Array(1, 1, 2, 2, 3, 3, 4, 4); nivel_array[4] = new Array(1, 1, 2, 2, 3, 3, 4, 4, 5, 5); nivel_array[5] = new Array(1, 1, 2, 2, 3, 3, 4, 4, 5, 5); nivel_array[6] = new Array(1, 1, 2, 2, 3, 3, 4, 4, 5, 5); } function formato_puntaje(f_texto, f_maximo) { var v1 = f_texto.length; while (v1 < f_maximo) { f_texto = '0' + f_texto; ++v1; } return f_texto; } function actualizar_puntaje(f_puntos) { if (f_puntos != undefined) { puntos += f_puntos; } _root.hud.p_arriba.puntos_tx.text = formato_puntaje(puntos.toString(), 7); } function actualizar_tiempo(f_tiempo) { if (f_tiempo != undefined) { tiempo += f_tiempo; } if (tiempo == undefined) { _root.tiempo_max = _root.tiempos_array[_root.nivel_actual]; _root.tiempo = _root.tiempo_max; } _root.hud.p_abajo.segundos_tx.text = formato_puntaje(tiempo.toString(), 2); if (tiempo <= 0) { for (var v2 in _root.array_tarjetas) { if (_root.array_tarjetas[v2]._currentframe == 1) { _root.array_tarjetas[v2].efecto_s._visible = false; } } _root.nivel.foo_apar = 2; _root.nivel.hud_superior = 'subir'; _root.hud.p_abajo.bomba.cuerda._visible = false; _root.hud.p_abajo.segundos_tx._visible = false; } } function cargar_nivel(f_id) { array_tarjetas.length = 0; array_tarjetas = []; nivel_actual = f_id; cartas_actuales = 0; var v2 = crear_clip('pantalla_2', _root); v2._x = 272; v2._y = 208; v2._name = 'nivel'; v2.swapDepths(_root.hud); v2.gotoAndStop(f_id); _root.hud.p_arriba.nivel_tx.text = formato_puntaje(nivel_actual.toString(), 2); } function crear_clip(f_nombre, f_destino) { var v1 = f_destino.getNextHighestDepth(); foo_obj_a = f_destino.attachMovie(f_nombre, f_nombre + v1, v1); return foo_obj_a; } stop(); var puntos = 0; var tiempo = 0; var tiempo_max = 0; var cartas_retirandose = 0; var nivel_actual = 0; var cartas_actuales = 0; var foo_obj_a; var foo_obj_b; var foo_obj_c; var array_tarjetas = []; var nivel_array = []; var tiempos_array = new Array(0, 20, 20, 25, 20, 20); var snd_giro = new Sound(); snd_giro.attachSound('page-flip-01a.wav'); var snd_ganar = new Sound(); snd_ganar.attachSound('Powerup71.wav'); var snd_error = new Sound(); snd_error.attachSound('failure1 - copia.wav'); var snd_tic = new Sound(); snd_tic.attachSound('tic.wav'); var snd_tac = new Sound(); snd_tac.attachSound('tac.wav'); _root.gotoAndStop(2); } movieClip 105 __Packages.ayudante_cambiador { #initclip if (!_global.ayudante_cambiador) { var v1 = function () { super(); }; _global.ayudante_cambiador = v1; _global.ayudante_cambiador extends MovieClip; var v2 = v1.prototype; v2.tarj_a = function () { if (this.fix_delete >= 50) { this.removeMovieClip(); } if (this.fix_delete < 50) { var v3 = random(_root.array_tarjetas.length); this.tarjeta_a = _root.array_tarjetas[v3]; if (this.tarjeta_a.estado != 0) { ++this.fix_delete; this.tarj_a(); } } }; v2.tarj_b = function () { if (this.fix_delete >= 50) { this.removeMovieClip(); } if (this.fix_delete < 50) { var v3 = random(_root.array_tarjetas.length); this.tarjeta_b = _root.array_tarjetas[v3]; if (this.tarjeta_b == this.tarjeta_a || this.tarjeta_b.estado != 0) { ++this.fix_delete; this.tarj_b(); } this.tarjeta_a.swapDepths(_root.nivel.getNextHighestDepth()); this.tarjeta_b.swapDepths(_root.nivel.getNextHighestDepth()); } }; v2.onLoad = function () { this._visible = false; this.tarj_a(); this.tarj_b(); }; v2.onEnterFrame = function () { ++this.tt; this.tarjeta_a._x += (this.tarjeta_b.x_inicial - this.tarjeta_a._x) / 8; this.tarjeta_a._y += (this.tarjeta_b.y_inicial - this.tarjeta_a._y) / 8; this.tarjeta_b._x += (this.tarjeta_a.x_inicial - this.tarjeta_b._x) / 9; this.tarjeta_b._y += (this.tarjeta_a.y_inicial - this.tarjeta_b._y) / 9; if (this.tt == 40) { this.tarjeta_a._x = this.tarjeta_b.x_inicial; this.tarjeta_a._y = this.tarjeta_b.y_inicial; this.tarjeta_b._x = this.tarjeta_a.x_inicial; this.tarjeta_b._y = this.tarjeta_a.y_inicial; var v4 = this.tarjeta_a.x_inicial; var v3 = this.tarjeta_a.y_inicial; this.tarjeta_a.x_inicial = this.tarjeta_b.x_inicial; this.tarjeta_a.y_inicial = this.tarjeta_b.y_inicial; this.tarjeta_b.x_inicial = v4; this.tarjeta_b.y_inicial = v3; _root.nivel.esp_cambiando = 0; this.removeMovieClip(); } }; v2.tt = 0; v2.fix_delete = 0; ASSetPropFlags(_global.ayudante_cambiador.prototype, null, 1); } #endinitclip } movieClip 106 __Packages.puntaje_flotante { #initclip if (!_global.puntaje_flotante) { var v1 = function () { super(); }; _global.puntaje_flotante = v1; _global.puntaje_flotante extends MovieClip; var v2 = v1.prototype; v2.onLoad = function () { this._xscale = -100; this.y_inicial = this._y; }; v2.onEnterFrame = function () { ++this.tt; if (this.tt == 4) { if (this._visible == true) { this.tt = 3; this._visible = false; } else { if (this._visible == false) { this.tt = 0; this._visible = true; } } } this._y += (this.y_inicial - 50 - this._y) / 8; }; v2.yvelocity = 0; v2.tt = 0; ASSetPropFlags(_global.puntaje_flotante.prototype, null, 1); } #endinitclip } movieClip 107 __Packages.obj_tarjeta { #initclip if (!_global.obj_tarjeta) { var v1 = function () { super(); }; _global.obj_tarjeta = v1; _global.obj_tarjeta extends MovieClip; var v2 = v1.prototype; v2.onLoad = function () { this._x = Math.floor(this._x / 8) * 8; this._y = Math.floor(this._y / 8) * 8; _root.array_tarjetas.push(this); this.y_inicial = this._y; this.x_inicial = this._x; ++_root.cartas_actuales; this.gotoAndStop(2); this.xscale_inicial = this._xscale; var v3 = random(_root.nivel_array[_root.nivel_actual].length); this.id = _root.nivel_array[_root.nivel_actual][v3]; _root.nivel_array[_root.nivel_actual].splice(v3, 1); }; v2.xvelocity = 0; v2.yvelocity = -20; v2.nombre_id = 'tarjeta'; v2.id = 1; v2.estado = 0; ASSetPropFlags(_global.obj_tarjeta.prototype, null, 1); } #endinitclip } movieClip 108 __Packages.pantalla_2 { #initclip if (!_global.pantalla_2) { var v1 = function () { super(); }; _global.pantalla_2 = v1; _global.pantalla_2 extends MovieClip; var v2 = v1.prototype; v2.verificar_victoria = function () { if (_root.cartas_actuales <= 0 && _root.cartas_retirandose <= 0) { _root.actualizar_tiempo(); _root.nivel.swapDepths(_root.getNextHighestDepth()); _root.nivel.removeMovieClip(); _root.cargar_nivel(_root.nivel_actual + 1); } }; v2.onLoad = function () { _root.tiempo_max = _root.tiempos_array[_root.nivel_actual]; _root.tiempo = _root.tiempo_max; _root.actualizar_tiempo(); this._alpha = 0; this._xscale = 0; this._yscale = 0; _root.estado = 1; }; v2.onMouseDown = function () { if (this.foo_apar == 1) { for (var v5 in _root.array_tarjetas) { var v3 = _root.array_tarjetas[v5]; if (this._ymouse > v3._y && this._ymouse < v3._y + v3._height) { if (this._xmouse > v3._x - v3._width / 2 && this._xmouse < v3._x + v3._width / 2) { if (v3.estado == 0 && this.carta_b == '') { _root.snd_giro.start(0, 1); v3.gotoAndStop(2); v3.estado = 1; if (this.carta_a == '') { this.carta_a = v3; } else { if (this.carta_a != '' && this.carta_b == '') { this.carta_b = v3; for (var v4 in _root.array_tarjetas) { if (_root.array_tarjetas[v4]._currentframe == 1) { _root.array_tarjetas[v4].efecto_s._visible = false; } } } } } } } } } }; v2.onEnterFrame = function () { _root.hud.p_abajo.bomba.cuerda.gotoAndStop(Math.round((_root.tiempo / _root.tiempo_max) * 100)); if (this.hud_superior == 'bajar') { _root.hud.p_arriba._y += (20 - _root.hud.p_arriba._y) / 18; if (_root.hud.p_arriba._y > 0) { _root.hud.p_arriba._y = 0; this.hud_superior = ''; } } if (this.hud_superior == 'subir') { _root.hud.p_arriba._y += (-120 - _root.hud.p_arriba._y) / 18; if (_root.hud.p_arriba._y < -100) { _root.hud.p_arriba._y = -100; this.hud_superior = ''; } } if (this.hud_inferior == 'bajar') { _root.hud.p_abajo._y += (445 - _root.hud.p_abajo._y) / 18; if (_root.hud.p_abajo._y > 435) { _root.hud.p_abajo._y = 435; this.hud_inferior = ''; } } if (this.hud_inferior == 'subir') { _root.hud.p_abajo._y += (325 - _root.hud.p_abajo._y) / 10; if (_root.hud.p_abajo._y < -335) { _root.hud.p_abajo._y = -335; this.hud_inferior = ''; } } this._alpha += (100 - this._alpha) / 12; if (this.foo_apar == 2) { ++this.fin_tt; for (var v5 in _root.array_tarjetas) { _root.array_tarjetas[v5]._alpha -= 4; } if (this.fin_tt > 20) { _root.hud.p_abajo.bomba._x += (350 - _root.hud.p_abajo.bomba._x) / 13; _root.hud.p_abajo.bomba._y += (-178 - _root.hud.p_abajo.bomba._y) / 13; if (_root.hud.p_abajo.bomba._x > 330) { _root.hud.p_abajo.bomba._x = 330; } if (_root.hud.p_abajo.bomba._y < -158) { _root.hud.p_abajo.bomba._y = -158; } if (_root.hud.p_abajo.bomba._x > 320) { _root.hud.p_abajo.bomba.bomba.gotoAndStop(2); } if (this.fin_tt > 75) { _root.hud.removeMovieClip(); _root.gotoAndStop(4); this.removeMovieClip(); } } } if (this.foo_apar == 1) { if (_root.cartas_actuales > 0) { ++this.tiempo_tt; if (this.tiempo_tt == 30) { var v9 = random(7); if (_root.nivel_actual > 3 && this.esp_cambiando == 0 && v9 == 5) { } _root.snd_tac.start(0, 1); this.tiempo_tt = 0; --_root.tiempo; _root.actualizar_tiempo(); } } for (var v6 in this.cartas_fracaso) { var v3 = this.cartas_fracaso[v6]; v3._xscale += (v3.xscale_inicial - v3._xscale) / 5; if (v3._xscale > 0) { v3.gotoAndStop(2); if (v3._xscale >= v3.xscale_inicial - 5) { for (v5 in this.cartas_fracaso) { this.cartas_fracaso[v5]._xscale = this.cartas_fracaso[v5].xscale_inicial; this.cartas_fracaso[v5].gotoAndStop(1); this.cartas_fracaso[v5].estado = 0; } this.cartas_fracaso.length = 0; this.cartas_fracaso = []; } } } this.carta_a._xscale += (-this.carta_a.xscale_inicial - this.carta_a._xscale) / 6; if (this.carta_a._xscale < 0) { this.carta_a.gotoAndStop(this.carta_a.id + 2); } this.carta_b._xscale += (-this.carta_b.xscale_inicial - this.carta_b._xscale) / 6; if (this.carta_b._xscale < 0) { this.carta_b.gotoAndStop(this.carta_b.id + 2); if (this.carta_b._xscale <= -this.carta_b.xscale_inicial + 5) { for (v5 in _root.array_tarjetas) { if (_root.array_tarjetas[v5]._currentframe == 1) { _root.array_tarjetas[v5].efecto_s._visible = true; } } this.carta_b._xscale = -this.carta_b.xscale_inicial; if (this.carta_a.id == this.carta_b.id) { trace('win!'); var v13 = _root.crear_clip('puntaje_flotante', this.carta_a); var v12 = _root.crear_clip('puntaje_flotante', this.carta_b); v13.puntos_tx.text = '+ ' + this.carta_a.puntos_tx.text; v12.puntos_tx.text = '+ ' + this.carta_b.puntos_tx.text; var v8 = this.carta_a.puntos_tx.text; var v7 = this.carta_b.puntos_tx.text; v8 = parseInt(v8); v7 = parseInt(v7); _root.actualizar_puntaje(v8 + v7); _root.snd_ganar.start(0, 1); var v11 = _root.crear_clip('ayudante_retirador', _root.nivel); v11.cliente = this.carta_a; var v10 = _root.crear_clip('ayudante_retirador', _root.nivel); v10.cliente = this.carta_b; _root.cartas_retirandose += 2; var v4 = []; for (v6 in _root.array_tarjetas) { if (_root.array_tarjetas[v6]._name == this.carta_a._name) { v4.push(v6); } if (_root.array_tarjetas[v6]._name == this.carta_b._name) { v4.push(v6); } } trace(v4[0] + ' ' + v4[1]); _root.array_tarjetas.splice(v4[0], 1); _root.array_tarjetas.splice(v4[1], 1); this.carta_a = ''; this.carta_b = ''; _root.cartas_actuales -= 2; if (_root.cartas_actuales <= 0) { this.hud_inferior = 'bajar'; } } else { trace('fail!'); _root.snd_error.start(0, 1); this.cartas_fracaso.push(this.carta_a); this.cartas_fracaso.push(this.carta_b); this.carta_a = ''; this.carta_b = ''; } } } } _root.hud.test.text = _root.array_tarjetas.length; if (this.foo_apar == 0) { this._xscale += (110 - this._xscale) / 20; this._yscale += (110 - this._yscale) / 20; if (this._xscale > 40 && this.hud_inferior == '') { this.hud_inferior = 'subir'; } if (this._xscale > 70 && this.hud_superior == '') { this.hud_superior = 'bajar'; } if (this._xscale > 100) { this._xscale = 100; this._yscale = 100; this.foo_apar = 1; _root.estado = 0; for (v6 in _root.nivel) { _root.nivel[v6].nombre_id = 'tarjeta'; if ('tarjeta') { _root.nivel[v6].gotoAndStop(1); } } } } }; v2.hud_superior = ''; v2.hud_inferior = 'bajar'; v2.fin_tt = 0; v2.esp_cambiando = 0; v2.foo_apar = 0; v2.carta_a = ''; v2.carta_b = ''; v2.cartas_fracaso = []; v2.tiempo_tt = 0; v2.tiempo_ll = 0; ASSetPropFlags(_global.pantalla_2.prototype, null, 1); } #endinitclip } movieClip 109 __Packages.carta_danzarina { #initclip if (!_global.carta_danzarina) { var v1 = function () { super(); }; _global.carta_danzarina = v1; _global.carta_danzarina extends MovieClip; var v2 = v1.prototype; v2.onLoad = function () { if (this.tt == undefined) { this.tt = 0; } this.y_inicial = this._y; }; v2.onEnterFrame = function () { ++this.tt; ++this.tt; this._y += this.yvelocity; this.yvelocity += 1; if (this._y > this.y_inicial) { this._y = this.y_inicial; this.yvelocity = 0; } if (this.tt == 80) { this.tt = 0; this.yvelocity = -8; } }; v2.yvelocity = 0; ASSetPropFlags(_global.carta_danzarina.prototype, null, 1); } #endinitclip } movieClip 110 __Packages.ayudante_retirador { #initclip if (!_global.ayudante_retirador) { var v1 = function () { super(); }; _global.ayudante_retirador = v1; _global.ayudante_retirador extends MovieClip; var v2 = v1.prototype; v2.onLoad = function () { this._visible = false; this.cliente.swapDepths(_root.nivel.getNextHighestDepth()); }; v2.onEnterFrame = function () { this.cliente._alpha = 85 + random(6); this.cliente._y += this.cliente.yvelocity; this.cliente.yvelocity += 2.5; if (this.cliente._y >= this.cliente.y_inicial) { this.cliente._x += this.cliente.xvelocity; this.cliente._y = this.cliente.y_inicial; this.cliente.yvelocity = 0; this.cliente.xvelocity = 20; if (this.cliente._x > Stage.width / 2 || this.cliente._x + this.cliente._width < -(Stage.width / 2)) { --_root.cartas_retirandose; _root.nivel.verificar_victoria(); this.cliente.swapDepths(_root.nivel.getNextHighestDepth()); this.cliente.removeMovieClip(); this.removeMovieClip(); } } }; ASSetPropFlags(_global.ayudante_retirador.prototype, null, 1); } #endinitclip } frame 2 { stop(); } button 67 { on (press) { _root.gotoAndStop(3); } } // unknown tag 88 length 62 instance of movieClip 60 carta_danzarina { onClipEvent (load) { tt = 0; } } instance of movieClip 60 carta_danzarina { onClipEvent (load) { tt = 10; } } instance of movieClip 60 carta_danzarina { onClipEvent (load) { tt = 20; } } instance of movieClip 60 carta_danzarina { onClipEvent (load) { tt = 30; } } frame 3 { reiniciar_variables(); _root.tiempo_max = _root.tiempos_array[_root.nivel_actual]; _root.tiempo = _root.tiempo_max; cargar_nivel(1); actualizar_puntaje(); actualizar_tiempo(); _root.hud.p_arriba._y = -100; _root.hud.p_abajo._y = 435; } movieClip 74 { } movieClip 77 { } movieClip 80 { } movieClip 81 { } movieClip 88 { } movieClip 90 { } movieClip 91 { instance bomba of movieClip 81 { onClipEvent (load) { this.gotoAndStop(1); } } } // unknown tag 88 length 61 movieClip 94 { } // unknown tag 88 length 67 movieClip 102 { } movieClip 103 { } frame 4 { gotoAndStop(2); }




http://swfchan.com/46/227689/info.shtml
Created: 14/11 -2019 00:48:35 Last modified: 14/11 -2019 00:48:35 Server time: 28/04 -2024 14:12:12