While working with some vectors in AS3, I was in a hurry and typed out my vectors like this:
private var image_types:Vector.<String> = new Vector.<String>("png",'jpg','jpeg','gif');
This caused the Flash Player to crash without giving an error and needless to say, I had to reverse my steps until I figured out it was this Vector that was the problem.
In the code I displayed above, I assumed that I could define some elements on Vector construction like you can with the Array class. This assumption is what caused the problem and ultimately a bug that isn't isn't caught when compiling the code down, but unexpectedly caught on execution. The Vector class doesn't allow you to pass list items into the constructor, but instead allows you to pass an uint and a Boolean which tell it what length to have and if it should be fixed.
The solution was simple enough though, using the Vector global function, I was able to modify my code slightly and have it compile and execute as expected.
private var image_types:Vector.<String> = new Vector.<String>(["png",'jpg','jpeg','gif']);