 	// This is the actual class that is thrown by script code (see throwError above)
 	// When exceptions of this class are thrown, they are not treated as "unhandled",
 	// but simply indicate that script code wants a COM error returned.
-	public dynamic class ProviderError extends Error {
+	public dynamic class ProviderError extends axtam.com.Error {
 		function ProviderError(hresult, excepinfo:EXCEPINFO = null) {
 			super(hresult, excepinfo)
 		}


package {

    import flash.utils.*; // for our ByteArray clone - either it should die, or we rename the package in our clone!

    public function compileString(str, fname:String = "", startLineNumber:int = 0): ByteArray
    {
        import Parse.*;
        import Lex.*; // needed to set lnCoord below, for reasons too magic for markh :)
        var top = []

        var parser = new Parser(str,top,fname);
        parser.scan.lnCoord += startLineNumber;
        var prog = parser.program();
        var bytes = Gen::cg(prog).getBytes();

        var b = new ByteArray();
        b.endian = "littleEndian";

        for (var i = 0, len = bytes.length; i<len; ++i) {
            b.writeByte(uint(bytes[i]));
        }
        return b
    }
}

package {


	namespace ESC = "ESC"; // implicit namespace from esc-env.ast

	// 'eval' support is still a work in progress.
	public function eval(...rest) {} // just needs to exist!!
}

// a clone of the File class from shell/toplevel.as
