Rebuscando por toda la web no consigo solucionar este problema, que paso a explicar.
He bajado un juego de drag and drop el cual es este http://www1.appstate.edu/~midgetta/media/flash/tutorials/draganddrop2/draganddrop2CODE2.fla
yo he modificado el diseño, para adaptarlo a mi site, pero tengo un problema este juego lo llamo desde un load movie
Código ActionScript :
on (release) {
loadMovieNum("evaluacion0.swf", 10);
}
Pero cuando llamo la animacion desde la pelicula madre los elementos no se pegan, cuando ejecuto el swf del juego funciona se arrastran y los elementos cuando coinciden se pegan, les pongo el codigo que esta en el primer frame para ver si solo es poner algun parent o this, pero la verdad ya me tome todo un dia y no encuentro por donde... muchas gracias por leer este mensaje y ojala puedan absolver mi duda.
Código ActionScript :
arm.onPress = function() {
arm.startDrag();
};
arm.onRelease = function() {
stopDrag();
if (arm._droptarget == "/arm1") {
arm._x = 237.0;
arm._y = 554.6;
if
(arm._droptarget == "/arm1" && neck._droptarget == "/neck1" && foot._droptarget == "/foot1" && head._droptarget == "/head1" && legs._droptarget == "/leg1" && hand._droptarget == "/hand1"){
nextFrame();}
} else {
arm._x = 336.4;
arm._y = 47.1;
}
};
//
neck.onPress = function() {
neck.startDrag();
};
neck.onRelease = function() {
stopDrag();
if (neck._droptarget == "/neck1") {
neck._x = 237.0;
neck._y = 523.7;
if
(arm._droptarget == "/arm1" && neck._droptarget == "/neck1" && foot._droptarget == "/foot1" && head._droptarget == "/head1" && legs._droptarget == "/leg1" && hand._droptarget == "/hand1"){
nextFrame();}
} else {
neck._x = 203.9;
neck._y = 63.1;
}
};
//
//
foot.onPress = function() {
foot.startDrag();
};
foot.onRelease = function() {
stopDrag();
if (foot._droptarget == "/foot1") {
foot._x = 237.0;
foot._y = 586.15;
if
(arm._droptarget == "/arm1" && neck._droptarget == "/neck1" && foot._droptarget == "/foot1" && head._droptarget == "/head1" && legs._droptarget == "/leg1" && hand._droptarget == "/hand1"){
nextFrame();}
} else {
foot._x = 401.75;
foot._y = 64.25;
}
};
//
//
//
//
head.onPress = function() {
head.startDrag();
};
head.onRelease = function() {
stopDrag();
if (head._droptarget == "/head1") {
head._x = 237.0;
head._y = 570.4;
if
(arm._droptarget == "/arm1" && neck._droptarget == "/neck1" && foot._droptarget == "/foot1" && head._droptarget == "/head1" && legs._droptarget == "/leg1" && hand._droptarget == "/hand1"){
nextFrame();}
} else {
head._x = 247.55;
head._y = 47.1;
}
};
//
//
//
//
legs.onPress = function() {
legs.startDrag();
};
legs.onRelease = function() {
stopDrag();
if (legs._droptarget == "/leg1") {
legs._x = 237.0;
legs._y = 539.6;
if
(arm._droptarget == "/arm1" && neck._droptarget == "/neck1" && foot._droptarget == "/foot1" && head._droptarget == "/head1" && legs._droptarget == "/leg1" && hand._droptarget == "/hand1"){
nextFrame();}
} else {
legs._x = 286.45;
legs._y = 47.1;
}
};
//
//
//
//
hand.onPress = function() {
hand.startDrag();
};
hand.onRelease = function() {
stopDrag();
if (hand._droptarget == "/hand1") {
hand._x = 237.0;
hand._y = 617.1;
if
(arm._droptarget == "/arm1" && neck._droptarget == "/neck1" && foot._droptarget == "/foot1" && head._droptarget == "/head1" && legs._droptarget == "/leg1" && hand._droptarget == "/hand1"){
nextFrame();}
} else {
hand._x = 523.3;
hand._y = 47.1;
}
};
//
//
