Welcome to Scribd, the world's digital library. Read, publish, and share books and documents. See more
Download
Standard view
Full view
of .
Look up keyword
Like this
1Activity
0 of .
Results for:
No results containing your search query
P. 1
Sothink Easyquiz Code

Sothink Easyquiz Code

Ratings: (0)|Views: 23 |Likes:
Published by sengprum

More info:

Published by: sengprum on Mar 06, 2010
Copyright:Attribution Non-commercial

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
download as DOC, PDF, TXT or read online from Scribd
See more
See less

03/05/2010

pdf

text

original

 
Enter scene page1:stop(); _root.rightNum=0; _root.wrongNum=0;function doCheck(){if(_root.check.enabled==false){ _root.check.enabled=true; _root.feedback="Click on the Check button.";}}function checkMultipleChoice(){ _root.check.enabled=false; _root.next.enabled=true;var results=[];for(var i=0;i<_root.Options.length;i++){ _root[_root.Options[i]].enabled=false;if(_root[_root.Options[i]].selected==true){results.push(_root.Options[i]);}}if(results.sort().toString()==_root.answer.sort().toString()){ _root.rightNum+=1; _root.feedback=_root.feedback_right;}else{ _root.wrongNum+=1; _root.feedback=_root.feedback_wrong;}}function checkRadioChoice(){ _root.check.enabled=false; _root.next.enabled=true;for(var i=0;i<_root.Options.length;i++){ _root[_root.Options[i]].enabled=false;}if(radioGroup.selection==_root[_root.answer]){ _root.rightNum+=1; _root.feedback=_root.feedback_right;}else{ _root.wrongNum+=1; _root.feedback=_root.feedback_wrong;}}function checkMultipleChoice2(){ _root.check.enabled=false; _root.next.enabled=true; _root.list.enabled=false;if(_root.list.selectedIndices.sort().toString()==_root.answer.sort().toString()){ _root.rightNum+=1; _root.feedback=_root.feedback_right;}else{ _root.wrongNum+=1; _root.feedback=_root.feedback_wrong;}}function checkTextInput(){ _root.check.enabled=false; _root.next.enabled=true;
 
 _root.inputTxt.type="dynamic";for(var i=0;i<_root.answer.length;i++){if(_root.inputTxt.text.toLowerCase().indexOf(_root.answer[i].toLowerCase())==-1){ _root.wrongNum+=1; _root.feedback=_root.feedback_wrong;return;}} _root.rightNum+=1; _root.feedback=_root.feedback_right;}
Note on page:
Start button: _root.nextScene();
Enter Scene Page II:
stop(); _root.next.enabled=false; _root.check.enabled=false;//The following can be replaced _root.Options=["c1","c2","c3","c4"]; _root.answer=["c3","c1"]; _root.feedback_wrong="wrong,A&C are right."; _root.feedback_right="right!"; _root.feedback="Click on a Checkbox";
Note on page:
ABCD _root.doCheck();ButtonCheck: _root.checkMultipleChoice();ButtonNext: _root.nextFrame();
Enter Scene Page III:
stop(); _root.next.enabled=false; _root.check.enabled=false;//The following can be replaced _root.Options=["r1","r2","r3","r4"]; _root.answer="r3"; _root.feedback_wrong="wrong,C is right."; _root.feedback_right="right!"; _root.feedback="Click on a Radio Button";
Note on page:
Radionbttn: _root.doCheck(); bttnCheck: _root.checkRadioChoice();
 
BttnNext: _root.nextFrame();
Enter Scene IV:
stop(); _root.next.enabled=false; _root.check.enabled=false;//The following can be replaced _root.answer=[0,2,6]; _root.feedback_wrong="wrong,A,C&G are right."; _root.feedback_right="right!"; _root.feedback="Press Ctrl and click on an item of the list.";
Note onPage:
Scroolbar textbox _root.doCheck();BttnCheck  _root.checkMultipleChoice2();BttnNex:----//-----
Enter Scene V:
stop(); _root.next.enabled=false; _root.check.enabled=false; _root.inputTxt.onChanged = function() { _root.doCheck();};//The following can be replaced _root.answer=["orange","strawberry","lemon","Chinese gooseberry"]; _root.feedback_wrong="wrong."; _root.feedback_right="right!"; _root.feedback="Input your answer.";
Note onPage:
Horizonal Scrollbar  _root.img._x=-_root.xScroll.scrollPosition+213; (img of fruit, see fill property) _root.img._y=-_root.yScroll.scrollPosition+235;Input textbox NocodeCheckbtn _root.checkMultipleChoice2();
Enter Scene VI:
stop(); _root.percent=Math.floor(_root.rightNum/(_root.wrongNum+_root.rightNum)*100)+"%";
Note onPage:Dynamic type text:
Var: rightNum

You're Reading a Free Preview

Download
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->