AS3: Crashing your flash app.
Aim
To crash your flash app.
Knowledge needed
Knowledge of basic for loops.
Method
Okay, In this tutorial I will teach you how to crash your flash app.
It's really simple and easy to pick up.
First we are going to make a for loop.
for (var i:int = 0; i=0; i=0){
}
What this code does is first set the variable i. Then it checks if i=0 and if it is it sets i=0 and checks i again and so forth. It loops infinitely causing your script to timeout resulting in your flash application to stop working.
This could have some practical use I suppose.
You could put it in a game where if you detect someone variable tampering then you could do this to end the script and to stop the tampering.
And that has been my tutorial crashing your flash app.