[CF3] Action Script crashes Flash

[FONT=Arial][SIZE=2]I have just upgraded to Flash CS3 and have all the updates running on Windows XP.[/SIZE][/FONT]

[FONT=Arial][SIZE=2]When publishing to a network drive (not tried local publishing yet) with the attached change of script Flash crashes.[/SIZE][/FONT]

[FONT=Arial][SIZE=2]First time it happened the then working swf file running in a browser from web server (not running from local link) when trying to re-open the fla flash files I got an error message from windows saying the file could not be found, even though it was still showing up in explorer. After re-starting the file was ok again.[/SIZE][/FONT]

[FONT=Arial][SIZE=2]Now both Firefox 2 and IE 7 crash when trying to load the swf (via the html generated file) but the problem of the local fla file not opening after flash crashes does not seem to be a problem.[/SIZE][/FONT]


Works...

function draw_box(w,h,c,yof,xof){
	var new_box = this.createEmptyMovieClip("new_box"+i, i++);
	new_box.beginFill(c);

	new_box.lineStyle(0,0x000000,0);

	new_box.moveTo(xof, yof);
	new_box.lineTo(w+xof, yof);
	new_box.lineTo(w+xof, yof-h);
	new_box.lineTo(xof, yof-h);
	new_box.lineTo(xof, yof);
	new_box.endFill();
	return new_box;
}

crashes flash

function draw_box(w,h,c,yof,xof){
var new_box = this.createEmptyMovieClip("new_box"+i, i++);
var fillType:String = "radial";
var colors:Array = [0xFF0000, 0x0000FF];
var alphas:Array = [100, 100];
var ratios:Array = [0, 0xFF];
var matrix:Object = {a:x, b:y, c:w, d:h, e:200, f:0, g:200, h:200, i:1};
var spreadMethod:String = "reflect";
var interpolationMethod:String = "linearRGB";
var focalPointRatio:Number = 0.9;
with ("new_box"+i) {
    beginGradientFill(fillType, colors, alphas, ratios, matrix, spreadMethod, interpolationMethod, focalPointRatio);
	new_box.moveTo(xof, yof);
	new_box.lineTo(w+xof, yof);
	new_box.lineTo(w+xof, yof-h);
	new_box.lineTo(xof, yof-h);
	new_box.lineTo(xof, yof);
	new_box.endFill();
}
}