


Entonces tengo 2 frames en el primero aparece el siguiente codigo:
Código :
stop();
preguntas = ["Participar en campañas de reforestacion.", "Participar en la elaboración de un guion de cine.", "Diseñar materiales graficos.", "Realizar esculturas o pinturas.", "Comprender los problemas psicológicos de las personas. ", "Visitar una feria ganadera.", "Crear diseños innovadores para espacios urbanos.", "Evaluar proyectos de construccion.", "Reconocer diversas manifestaciones artisticas.", "Asesorar a otros para obtener ayuda del Estado.","Que wa?"];
opcion1 = ["Si", "Si", "Si", "Si", "Si", "Si", "Si", "Si", "Si", "Si","Si"];
opcion2 = ["Quizas", "Quizas", "Quizas", "Quizas", "Quizas", "Quizas", "Quizas", "Quizas", "Quizas", "Quizas","Quizas"];
opcion3 = ["No", "No", "No", "No", "No", "No", "No", "No", "No", "No","No"];
acertada = [1, 1, 1, 1, 1, 1, 1, 1, 1, 3,1];
makeQuestion = function (num) {
reset();
op1.gotoAndStop(2);
choice = 1;
quest.text = "Pregunta "+num;
pre.text = "¿"+preguntas[num-1]+"?";
op1_q.text = opcion1[num-1];
op2_q.text = opcion2[num-1];
op3_q.text = opcion3[num-1];
page.text = num+" / 10";
};
reset = function () {
op1.gotoAndStop(1);
op2.gotoAndStop(1);
op3.gotoAndStop(1);
};
op1.onRelease = function() {
reset();
this.gotoAndStop(2);
choice = 1;
};
op2.onRelease = function() {
reset();
this.gotoAndStop(2);
choice = 2;
};
op3.onRelease = function() {
reset();
this.gotoAndStop(2);
choice = 3;
};
next.onRelease = function() {
choice == acertada[num-1] ? ok += 1 : nok += 1;
num == 11 ? _root.gotoAndStop(2) : num++;
makeQuestion(num);
};
num = 1;
makeQuestion(num);
old = getTimer();
onEnterFrame = function () {
tiempo = ((getTimer()-old))/1000;
time.text = tiempo+" seg";
};
Y en el segundo frame aparece el siguiente codigo:
Código :
b_ok._xscale = (ok/10)*100;
b_nok._xscale = (nok/10)*100;
num_ok.text = (ok/10)*100+" %";
num_nok.text = (nok/10)*100+" %";
num_ok2.text = ok+" / 10";
num_nok2.text = nok+" / 10";
onEnterFrame = null;
time_fin.text = tiempo+" seg";
again.onRelease = function() {
gotoAndStop(1);
};
Necesito ke grafique las 11 areas en la ultima pantalla y de los porcentajes asi la persona sabra cual es su vocacion.
Necesito ayuda
de antemano
muchas gracias
Azagth
usa las etiquetas CODE por favor
