Hi, im trying to get this AS to work. The only thing it needs to do is when you press the right answer-button it should add a point to the global score( globalscore + 1) and when the global score gets to its maximum then the timeline starts playing to the end. The wrong answers are not suposed to do anything. The right answers are “æ(ae)”(an icelandic letter:)) and below “i”(see fla. file). I just cannot figure out what´s wrong…
Can someone help me:)?
The right-answer button code:
on (press) {
_global.score++;
_root;
gotoAndPlay("start");
tellTarget ("/sael") {
gotoAndPlay("byrjun");
}
}
The first frame code:
stop();
_global.score = 0;
_global.maxscore = 2;
if (_global.score>=_global.maxscore) {
_root;
gotoAndPlay(2);
}