home *** CD-ROM | disk | FTP | other *** search
- function initQuestion(scale)
- {
- var _loc1_ = scale;
- this._x = startx;
- this._y = starty;
- _level0.zoomTo(_level0.mcscene.question4._x,_level0.mcscene.question4._y,100);
- fond._xscale = 35;
- fond._yscale = fond._xscale;
- fond.fonction = function()
- {
- question.transAlpha(100,5);
- };
- question._alpha = 0;
- question.icone.gotoAndStop(_currentframe);
- question.num = _currentframe + "/15";
- if(_loc1_ != null)
- {
- fond.bounceScale(_loc1_,_loc1_,0.2,0.8);
- }
- else
- {
- fond.bounceScale(100,100,0.2,0.8);
- }
- }
- function fonctionValider()
- {
- var _loc3_ = question.radio1.getValue();
- var _loc2_ = 1;
- while(_loc2_ < 4)
- {
- var _loc1_ = question["radio" + _loc2_];
- if(_loc1_.getValue())
- {
- _loc1_.setValue("rouge");
- }
- _loc1_.setEnabled(false);
- _loc2_ = _loc2_ + 1;
- }
- question.radio1.setValue("vert");
- question.gotoAndStop(2);
- if(_loc3_)
- {
- score++;
- question.messageretour.gotoAndStop(1);
- }
- else
- {
- question.messageretour.gotoAndStop(2);
- }
- fond.onPress = function()
- {
- question._parent.startDrag();
- };
- fond.onRelease = function()
- {
- question._parent.stopDrag();
- };
- }
- stop();
- score = 0;
- startx = question._parent._x;
- starty = question._parent._y;
-