Question:

Help with actionscript?

by  |  earlier

0 LIKES UnLike

allCorrect =0;

// check if all answers

// are correct

_root.onEnterFrame= function(){

if(_root.allCorrect==3){

gotoAndPlay (1435);}

}

allWrong =0;

// check if all answers

// are correct

_root.onEnterFrame= function(){if(_root.allWrong==2){gotoAnd... (1437);}

I'm trying to get drag and drop answers to work, apparently, I keep getting syntax errors.

 Tags:

   Report

1 ANSWERS


  1. No file in hand but possibly errors you need to follow up

    1. allCorrect is set to 0 at start, so the if(_root.allCorrect==3) will never become True

    2. allWrong is set to 0 at start, so the if(_root.allWrong==2) will never become True

    3. onEnterFrame should be under a movieclip like mc.onEnterFrame not under _root

    Hope this helps.

Question Stats

Latest activity: earlier.
This question has 1 answers.

BECOME A GUIDE

Share your knowledge and help people by answering questions.