Hey guys, finally learning AS3 and migrating some of my code snippets over from AS2. I tried reproducing one of my most used bit of code - the dynamic border - in AS3, but I have run into a small problem.

PHP Code:
var sw:int stage.stageWidth -1;
var 
sh:int stage.stageHeight -1;

var 
mc:MovieClip = new MovieClip();
// change your color here
mc.graphics.lineStyle(1,000000);
mc.graphics.lineTo(sw,0);
mc.graphics.lineTo(sw,sh);
mc.graphics.lineTo(0,sh);
mc.graphics.lineTo(0,0);
addChild(mc); 
So this code works great in Firefox but fails miserably in IE6, Flash Player 9. So my question is does anybody have a workaround that works on IE6, Player 9? Huge thanks for taking the time to read.

*Also I'm sure someone will ask why does the border need to be added in AS - we get a lot of swfs from clients. We can insert code into swfs to fix little problems like this.

thanks again!