FrozenHaddock Tutorials: Crash a browser window

Great for practical jokes!

Simply put-

Code:
on(release){
for(i=1;i<=1000000000;i++){
}


Onto a button, and voila!

Explanation-
All this does is overworks the swf with a huge for loop.
For loops are generaly used in hittesting duplicated objects, and all it means is that it must test what is inbetween the {}'s 10000000000 times. This may bring up a box with "A script in this movie is causing flash player to run slowly" or it'll just crash the browser right off.

 

Written by: TazzyDevil XIII
Website: http://www.frozenhaddock.co.uk