After making a puzzle, I need that goto... of another framework?

Estoy doing application puzzle pero Necesito UN tipo una al disk las fichas envies me an otro donde framework to carge UN distinto puzzle

El código than I am using are:

////////////////////////////////////////////////////////////////////////////////////
VARIABLES

Esta variable where el resultado del juego.
var correcto:Boolean = false;
Where all the clips of arrastre
var clip: Array = [drag1, drag2, drag3, drag4, drag5, drag6];
Where los numbers Los destino para los arrastre clips clips
var destinos:Array = [hit1, hit2, hit3, hit4, hit5, hit6];


////////////////////////////////////////////////////////////////////////////////////
FUNCTIONS

Funcion that runs al inicio y programa the escena
function Empezar() {}
GuardarDatos();
ProgramarArrastres();
Corregir();
}

Where los datos made initially of los como arrastre clips variables inside of each clip.
ESTOS datos will use despues para ver if is ha dejado sober el destino, o para colocarlos nuevo
in su position dinna
function GuardarDatos() {}
for (var i = 0; i < clips.length; i ++) {}
[i] clips clips [i] ._x = .xIni;
[i] clips clips [i] ._y = .yIni;
clips [i] .destino = destinos [i];
clips [i] .prof = clips [i] .getDepth ();
}
}

Programa los arrastre clips, added a cada uno los eventos delivery y onRelease
function ProgramarArrastres() {}
for (var i = 0; i < clips.length; i ++) {}
video clips [i] = var;
clip.onPress = function() {}
startDrag (this, false);
this.swapDepths (getNextHighestDepth ());
}
clip.onRelease = function() {}
Soltar (this);
this.swapDepths (this.prof);
}
}
}

Esta funcion to reproduce itself cuando el evento los clips any delivery
arrastre. Checks TR el arrastre sober esta su destino clip, if clip so, lo
put in the same position is Quebec. If not, lo devuelve has the start position that is ha
stored al principio.
function Soltar (clip) {}
clip.stopDrag ();
{if (clip. HitTest (clip.destino))}
clip._x = clip.destino._x;
clip._y = clip.destino._y;
} else {}
clip._x = clip.xIni;
clip._y = clip.yIni;
}
Corregir();
}

Corrects el juego. Recorre todos los arrastre clips y ve if estan colocados
o No. Change values of los campos of text Resuelto_txt y Aciertos_txt
show los datos del juego para.
function Corregir() {}
never var = 0;
for (var i = 0; i < clips.length; i ++) {}
{if (clips [i]. HitTest (Destinos [i]))}
never ++;
}
}
correcto = (never == clips.length)? true:false;
Resuelto_txt. Text = correcto;
Aciertos_txt. Text = never;
}

Empezamos
Empezar();

Gracias
Stop();

I don't see how it can work better because it's not properly coded.  When you use an 'if' to compare things, you need to use ==.

= is to assign a value to something, then that is must be compared to something.

Second, unless you have created a new variable that are not displayed, there is no variable "corregir", only function

Tags: Adobe Animate

Similar Questions

Maybe you are looking for

  • Random user accounts

    I use Server, version 5.1.7 running on a Mac Pro El Capitan. After that I turned on remote management and tried to access the machine with another Mac, I noticed that there were a bunch of new entries users. I guess there are about 50 of them, and th

  • hour system of a gps receiver

    Hello. I use Labview 8.6. I managed to export data from a Garmin GPS receiver (on serial port). Ok. Now, I want to synchronize with my PC GPS, for the same time. How can I do?

  • printer, continuous printing to stop in half way through

    printer, continuous printing to stop in half way through

  • Only the groups showing them in App Contacts

    I have recentlly had to restore my phone to an earlier backup. However, now when I go to Contacts, I don't see that local groups. When I go on my account gmail on a desktop browser, I see all my contacts and my groups that I made. If the groups still

  • Display (LCD &amp; external) does not

    Hello I have a HP NC6400, who gave me a service of quality for many years. Recently the LCD edge and external screens have stopped working.  At the start, they will be flashing for a while but then the external screen goes black and the on-board LCD