ActionScript Compiler

Is there a freeware or shareware program that will compile actionScript? For example, if I typed in the following code:

onLoad = function {
_root.moveTo(50, 50);
_root.lineTo(200, 200);
}

it would create a .swf that would draw the line.

I’m looking to find a way to work on some actionScript while at school (they don’t have flash). So preferably the program would be able to run from a thumb drive.

I know this is a long shot, and there probably isn’t any such thing, but if anyone knows, it would be you guys :ub: