Hey guys, I currently have a code of a switch statement for as1 - as2.
This is it:
switch (int(Math.random() * 20))
{
case 0:
{
hint = "The total amount of confusion in this world remains constant. It just gets shifted around.";
break;
}
case 1:
{
hint = "If you experience poor performance, adjust the quality settings in your preference menu option.";
break;
}
case 2:
{
hint = "Anticipation of death is better than death itself.";
break;
}
case 3:
{
hint = "At the core of all well-founded belief lies belief that is unfounded.";
break;
}
case 4:
{
hint = "The problem with instant gratification is that it takes too long.";
break;
}
case 5:
{
hint = "Never let your schooling interfere with your education.";
break;
}
case 6:
{
hint = "Beware of geeks bearing gifs.";
break;
}
case 7:
{
hint = "Collaboration is essential: It allows you to blame someone else.";
break;
}
case 8:
{
hint = "Read my MIPs - no new VAXes.";
break;
}
case 9:
{
hint = "Where is the sea, said the fish, as they swam through it.";
break;
}
case 10:
{
hint = "You can safely blame any bugs on Aoedipus, who is too busy grinding battlegrounds to do QA on her own work.";
break;
}
case 11:
{
hint = "Anything worth doing is worth overdoing.";
break;
}
case 12:
{
hint = "There is more to life than increasing its speed.";
break;
}
case 13:
{
hint = "Don\'t worry, this will take about as long as the time it takes to play a 2v2 match with 4 ret pallies.";
break;
}
case 14:
{
hint = "There is nothing worse than the brilliant image of a fuzzy concept.";
break;
}
case 15:
{
hint = "If you are not part of the solution, you are part of the precipitate.";
break;
}
case 16:
{
hint = "Two wrongs don\'t make a right, but three lefts do.";
break;
}
case 17:
{
hint = "The heresy of today is the logic of tomorrow.";
break;
}
case 18:
{
hint = "It\'s not that life is so short, it\'s just that you\'re dead a really long time.";
break;
}
case 19:
{
hint = "Those who love sausage, the law, and holy canon should never watch any of them being made.";
break;
}
case 20:
{
hint = "What if there were no hypothetical questions?";
break;
}
} // End of switch
hint = "HINT: " + hint;
This code is for a dynamic tet with the var ‘hint’ (No ’ ’ )
But in as3 there is no var and I am having trouble converting it to AS3 coding, can someone show me the correct conversion of the code to make it work with AS3. I will make the instance name ‘hint’.
Thank you ahead of time.