Hi, i'm trying to automate a questionary using array.
// In the compositionReady for the stage
sym.actual = 0;
sym.arr = [ "Hi","Love","You" ] // This is my question array.
sym.checkArr = function(){ // this the function that i use to check whis question of the array i'm going to use.
sym.Question = arr[actual]; // i want to use the value "Hi", and then increase my "actual" var and then use the value "Love"
}
// In my symbol timeline i use a trigger, in that trigger i use
sym.stop();
sym.quest = sym.getComposition().getStage().Question; // I'm getting the Question value;
sym.$("Ask").html(quest ); //"Ask" is an empty textfield;
sym.getComposition().getStage().actual ++; // Increase "actual" for the nex time.
But the code doesn't work, i think the problem is the way i use the array index.
Please help!
Thanks =)