Checking three 'if' statements are correct or wrong
Hi Guys
I'm working on a quiz where a user has to drag three movie clips to correct positions then press the 'next' button to move on (calls funtion nxt)
I have nxt function to check to see if the three movie clips have been dragged onto the three correct positions (other movieclips), the code works but only if all three are correct.
I want the function to check to see if all the clips have hit the right target,
if so, then add +1 to the 'score' and go to frame 'end'
if the clips aren't on the right target then just go to frame 'end'
At the moment the nxt function doesn't work if the answers are wrong.
Can anyone point me in the right direction?
The quiz is here online, only four questions
and here's the code for question 4 that i need some help with...
function nxt(event:MouseEvent):void
{
if (asc1_mc.hitTestObject(blank1_mc))
if (shou_mc.hitTestObject(blank2_mc))
if (crossb_mc.hitTestObject(blank3_mc))
{score++;
gotoAndStop ("end")}
else
{gotoAndStop ("end")}
}