OK I've managed the name part
Now I have a new problem. I'm trying to create some kind of a selftest. The meaning is that people answer a few questions and than get a grade and some tips at the end. Also they get a survey of the answers thy've given.
This is how i thought solving this riddle:
Make question and give a few possible answers for each question. Each answers has a button each button gets following script:
on (release) {
gotoAndPlay(2);
vraag 1 = "Antwoord 1" ;
commentaar 1 = "commentaar 1" ;
score = score 3+ ;
}
My last frame would contain a few dynamic textboxes f.i. vraagA: variable vraag1 commentaar vraag A: variable commentaar 1....
It doesn't work I get the following error message:
Scene=Scene 1, Layer=Layer 1, Frame=1: Line 3: ';' expected
vraag 1 = "Antwoord 1" ;
Scene=Scene 1, Layer=Layer 1, Frame=1: Line 4: ';' expected
commentaar 1 = "commentaar 1" ;
Scene=Scene 1, Layer=Layer 1, Frame=1: Line 5: ';' expected
score = score 3+ ;
Scene=Scene 1, Layer=Layer 1, Frame=1: Line 3: ';' expected
vraag 1 = "Antwoord 2" ;
Scene=Scene 1, Layer=Layer 1, Frame=1: Line 4: ';' expected
commentaar 1 = "commentaar 2" ;
Scene=Scene 1, Layer=Layer 1, Frame=1: Line 5: ';' expected
score = score 5+ ;
Scene=Scene 1, Layer=Layer 1, Frame=1: Line 2: ')' or ',' expected
gotoAndPlay(2 ;
Scene=Scene 1, Layer=Layer 1, Frame=1: Line 3: ';' expected
vraag 1 = "Antwoord 3" ;
Scene=Scene 1, Layer=Layer 1, Frame=1: Line 4: ';' expected
commentaar 1 = "commentaar 3" ;
Scene=Scene 1, Layer=Layer 1, Frame=1: Line 5: ';' expected
score = score 1+ ;
Scene=Scene 1, Layer=Layer 1, Frame=2: Line 3: ';' expected
vraag 2 = "Antwoord 1" ;
Scene=Scene 1, Layer=Layer 1, Frame=2: Line 4: ';' expected
commentaar 2 = "commentaar 1" ;
Scene=Scene 1, Layer=Layer 1, Frame=2: Line 5: ';' expected
score = score 1+ ;
Scene=Scene 1, Layer=Layer 1, Frame=2: Line 3: ';' expected
vraag 2 = "antwoord 2" ;
Scene=Scene 1, Layer=Layer 1, Frame=2: Line 4: ';' expected
commentaar 2 = "commentaar 2" ;
Scene=Scene 1, Layer=Layer 1, Frame=2: Line 5: ';' expected
score = score 3+ ;
Scene=Scene 1, Layer=Layer 1, Frame=2: Line 3: ';' expected
vraag 2 = "antwoord 3" ;
Scene=Scene 1, Layer=Layer 1, Frame=2: Line 4: ';' expected
commentaar 2 = "commentaar 3" ;
Scene=Scene 1, Layer=Layer 1, Frame=2: Line 5: ';' expected
score = score 5+ ;
it doesn't even go to the next frame. Also when I test it it goes automatically to frame two evn though I've put a 'stop' at each frame.
Can you see where my little script is gowing wrong? Or am I thinking in the wrong direction and is this never going to work?
I'll post my fla it's just a draft version so I didn't pay any attention at the lay-out.
thx
Last edited by smirnie; 05-07-2004 at 03:43 AM.
|