home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Freelog Special Edition 10
/
FreelogHS10.iso
/
Apprendre
/
Trainers
/
id86.swf
/
scripts
/
frame_20
/
DoAction.as
Wrap
Text File
|
2002-02-16
|
3KB
|
148 lines
Correct = false;
TempAnswer = "";
if(Instrument == 1)
{
if(Valve1 == true)
{
TempAnswer += "1";
}
else
{
TempAnswer += "0";
}
if(Valve2 == true)
{
TempAnswer += "1";
}
else
{
TempAnswer += "0";
}
if(Valve3 == true)
{
TempAnswer += "1";
}
else
{
TempAnswer += "0";
}
CorrectAnswer = TrumpetFingering[NotePosition][Accidentals + 1];
}
else if(Instrument == 2)
{
if(Valve1 == true)
{
TempAnswer += "1";
}
else
{
TempAnswer += "0";
}
if(Valve2 == true)
{
TempAnswer += "1";
}
else
{
TempAnswer += "0";
}
if(Valve3 == true)
{
TempAnswer += "1";
}
else
{
TempAnswer += "0";
}
CorrectAnswer = HornFingering[NotePosition][Accidentals + 1];
}
else if(Instrument == 3)
{
if(SlidePosition == BoneSlide[NotePosition][Accidentals + 1].substr(0,1))
{
CorrectAnswer = BoneSlide[NotePosition][Accidentals + 1].substr(0,1);
TempAnswer = BoneSlide[NotePosition][Accidentals + 1].substr(0,1);
}
else if(SlidePosition == BoneSlide[NotePosition][Accidentals + 1].substr(1,1))
{
CorrectAnswer = BoneSlide[NotePosition][Accidentals + 1].substr(1,1);
TempAnswer = BoneSlide[NotePosition][Accidentals + 1].substr(1,1);
}
}
else if(Instrument == 4)
{
if(Valve1 == true)
{
TempAnswer += "1";
}
else
{
TempAnswer += "0";
}
if(Valve2 == true)
{
TempAnswer += "1";
}
else
{
TempAnswer += "0";
}
if(Valve3 == true)
{
TempAnswer += "1";
}
else
{
TempAnswer += "0";
}
if(Valve4 == true)
{
TempAnswer += "1";
}
else
{
TempAnswer += "0";
}
CorrectAnswer = EuphFingering[NotePosition][Accidentals + 1];
}
else if(Instrument == 5)
{
if(Valve1 == true)
{
TempAnswer += "1";
}
else
{
TempAnswer += "0";
}
if(Valve2 == true)
{
TempAnswer += "1";
}
else
{
TempAnswer += "0";
}
if(Valve3 == true)
{
TempAnswer += "1";
}
else
{
TempAnswer += "0";
}
CorrectAnswer = TubaFingering[NotePosition][Accidentals + 1];
}
if(TempAnswer == CorrectAnswer)
{
_root.CorrectBox = CorrectBox + 1;
_root.PercentBox = int(CorrectBox / (Number(IncorrectBox) + Number(CorrectBox)) * 100);
gotoAndPlay(10);
}
else
{
_root.IncorrectBox = IncorrectBox + 1;
_root.PercentBox = int(CorrectBox / (Number(IncorrectBox) + Number(CorrectBox)) * 100);
gotoAndPlay(30);
}