link de codigo :
http://go.yuri.at/juegos/memory/index.html
onClipEvent (MouseUp) {
if (_root.listo && hitTest(_root._xmouse,_root._ymouse,false)){
if (this._currentframe == 1){
gotoAndStop(2);
this_name = this._name.substr(0, this.length-1);
_root.abierta += 1;
if (_root.abierta == 1){
_root.cartabierta1 = this;
_root.cartabierta1_name = this_name;
}
else if (_root.abierta == 2) {
_root.abierta = 0;
_root.cartabierta2 = this;
if (_root.cartabierta1_name == this_name){
this._alpha = 50;
_root.cartabierta1._alpha = 50;
_root.parejas += 1;
if (_root.parejas == _root.num/2){
_root.parejas = 0;
_root.gotoAndPlay(26);
}
}
else{
_root.listo = false;
_root.timer.gotoAndPlay(2);
}
}
}
}
}
y como ocupo unos archivos flv por eso debo pasarlo a flash 7