Browse Source

flash.Error -> flash.errors.Error

Nicolas Cannasse 15 years ago
parent
commit
37e9f48cdf

+ 1 - 1
std/flash9/errors/IOError.hx

@@ -1,4 +1,4 @@
 package flash.errors;
 
-extern class IOError extends flash.Error {
+extern class IOError extends Error {
 }

+ 1 - 1
std/flash9/errors/IllegalOperationError.hx

@@ -1,4 +1,4 @@
 package flash.errors;
 
-extern class IllegalOperationError extends flash.Error {
+extern class IllegalOperationError extends Error {
 }

+ 1 - 1
std/flash9/errors/InvalidSWFError.hx

@@ -1,4 +1,4 @@
 package flash.errors;
 
-extern class InvalidSWFError extends flash.Error {
+extern class InvalidSWFError extends Error {
 }

+ 1 - 1
std/flash9/errors/MemoryError.hx

@@ -1,4 +1,4 @@
 package flash.errors;
 
-extern class MemoryError extends flash.Error {
+extern class MemoryError extends Error {
 }

+ 1 - 1
std/flash9/errors/ScriptTimeoutError.hx

@@ -1,4 +1,4 @@
 package flash.errors;
 
-extern class ScriptTimeoutError extends flash.Error {
+extern class ScriptTimeoutError extends Error {
 }

+ 1 - 1
std/flash9/errors/StackOverflowError.hx

@@ -1,4 +1,4 @@
 package flash.errors;
 
-extern class StackOverflowError extends flash.Error {
+extern class StackOverflowError extends Error {
 }

+ 2 - 2
std/flash9/events/AsyncErrorEvent.hx

@@ -1,7 +1,7 @@
 package flash.events;
 
 extern class AsyncErrorEvent extends ErrorEvent {
-	var error : flash.Error;
-	function new(type : String, ?bubbles : Bool, ?cancelable : Bool, ?text : String, ?error : flash.Error) : Void;
+	var error : flash.errors.Error;
+	function new(type : String, ?bubbles : Bool, ?cancelable : Bool, ?text : String, ?error : flash.errors.Error) : Void;
 	static var ASYNC_ERROR : String;
 }

+ 1 - 1
std/haxe/Serializer.hx

@@ -382,7 +382,7 @@ class Serializer {
 		buf.add("x");
 		#if flash9
 		if( untyped __is__(e,__global__["Error"]) ) {
-			var e : flash.Error = e;
+			var e : flash.errors.Error = e;
 			var s = e.getStackTrace();
 			if( s == null )
 				serialize(e.message);

+ 2 - 2
std/haxe/Stack.hx

@@ -49,7 +49,7 @@ class Stack {
 			a.shift(); // remove Stack.callStack()
 			return a;
 		#elseif flash9
-			var a = makeStack( new flash.Error().getStackTrace() );
+			var a = makeStack( new flash.errors.Error().getStackTrace() );
 			a.shift(); // remove Stack.callstack()
 			return a;
 		#elseif (flash || js)
@@ -72,7 +72,7 @@ class Stack {
 		#elseif as3
 			return new Array();
 		#elseif flash9
-			var err : flash.Error = untyped flash.Boot.lastError;
+			var err : flash.errors.Error = untyped flash.Boot.lastError;
 			if( err == null ) return new Array();
 			var a = makeStack( err.getStackTrace() );
 			var c = callStack();