Courseware case of multiple-choice

Related Tags:

  The first needle code 

  Click here to download the source files 

  Answer_array = new Array (-1, -1, -1, -1); 
  Key1_array = new Array (-1, -1, -1, 1); 
  _root.total = 0; 
  For (var i = 1; i <5; i) ( 
  Eval ( "l" i). Key = 1; 
  Eval ( "l" i). OnRelease = function () ( 
  This.play (); 
  Num = Number (this._name.slice (1, 2)); 
  This.key =-this.key; 
  Answer_array [num-1] = this.key; 
  ); 
  ) 
  Answer._visible = false; 
  Answer.close_win._visible = false; 
  Answer_show.onRelease = function () ( 
  K = 0; 
  For (var i = 0; i <4; i) ( 
  If (answer_array == key1_array [i] [i]) ( 
  K; 
  ) 
  ) 
  Trace (k); 
  If (k == 4) ( 
  Answer.right_num = "right"; 
  _root.total; 
  Else () 
  Answer.right_num = "error"; 
  ) 
  Answer._visible = true; 
//----------------------
  For (var i = 1; i <5; i) ( 
  Eval ( "l" i). Enabled = false; 
  ) 
  ); 
  Answer.head.onPress = function () ( 
  Answer.startDrag (); 
  ); 
  Answer.head.onRelease = function () ( 
  Answer.stopDrag (); 
  ); 
  Answer.close_win.onRelease = function () ( 
  Answer._visible = false; 
  ); 
  Answer.answer.onRelease = function () ( 
  For (var i = 0; i <4; i) ( 
  If (key1_array [i] == 1) ( 
  Eval ( "l" (i 1)). GotoAndStop (2); 
  Answer_array [i] = 1; 
  Else () 
  Eval ( "l" (i 1)). GotoAndStop (1); 
  Answer_array [i] = 1; 
  ) 
  ) 
  ); 
  Answer.nextt.onRelease = function () ( 
  For (var i = 1; i <5; i) ( 
  Eval ( "l" i). GotoAndStop (1); 
  ) 
  _root.nextFrame (); 
  For (var i = 1; i <5; i) ( 
  Eval ( "l" i). Enabled = true; 
  ) 
  ); 
  Stop (); 

Related articles:

  Tip points:    SEAM manufacturers rely mainly on the effect of filling.    Before creating this effect, we should focus on the objects curly look at the picture of the location of light sources, as well as the size of different crimp caused by the effect of fillet or mite...
Div + CSS layout entry Tutorial - produced pages - making good use of border and clear
  Author: aultoale: 2006-06-10 document types: from the original: Blue ideal    This section inside, is mainly want to tell you how to use good border and clear both attributes.    First, if you have used the table creating homepages, and you should know that if in the for...
CSS learning should pay attention to learning method
  Learning anything is the same, from primary schools, secondary schools, universities, in addition to learning, is learning!    To grasp CSS, first of all, we want to learn HTML, I just started from scratch learning, spent one month time to learn HTML, not teachers, the book is the ...
Entrepreneurs do not need too much personal website technology
  Web 2.0 wave in the lead, the Internet seems to have returned to a 99, 2000 was the hottest Internet time.    Many people are beginning tempted to think that "the Internet such a good business environment, if they can not earn a bucket of payment deficit."    I...
Another good way to promote the website - resources law on cooperation
  Web site resources to promote mutual cooperation is an important method, one of the most simple forms of cooperation for the exchange of links.    Other sites have content sharing, exchange of resources and each recommendation, despite the forms and methods of not * for the same, b...