随笔 - 8  文章 - 55  trackbacks - 0
<2024年12月>
24252627282930
1234567
891011121314
15161718192021
22232425262728
2930311234

常用链接

留言簿(6)

随笔分类

随笔档案

文章分类

文章档案

朋友的Blog

最新评论

阅读排行榜

评论排行榜

Runtime Errors


Detailed description of runtime error codes. Content TBD.

CodeMessageDescription
1000 The system is out of memory. Flash needs more memory to compile your code than your system has available. Close some of the applications or processes running on your system.
1001 The method _ is not implemented.  
1002 The precision argument must be between 0 and 20; got _ You specified a value less than 0 or greater than 20 for the precision argument of a method or property. Pass a value between 0 and 20 as a precision argument.
1003 The radix argument must be between 2 and 36; got _ You passed a value less than 2 or greater than 36 for the radix argument of a method or property. Pass a value between 2 and 36 as a radix argument.
1005 Array index is not an integer (_) You tried to access a member of an array using an index value that is not an integer. Pass only integers as index values for arrays.
1006 Call attempted on an object that is not a function. This error occurs when you attempt to call a function that does not exist. Make sure that you are calling the correct function, and that the API has not changed from ActionScript 2.0. Also, make sure that you are using the correct object. For example, you will see this error when you use the following code (because the last line mistakingly calls the variable big instead of blg):
var blg:String = "foo";
            var big:Sprite = new Sprite();
            var error:int = big.length(); 
1007 Instantiation attempted on a non-constructor.  
1008 _ is ambiguous; more than one binding matches.  
1009 null has no properties. An object that evaluates to null can have no properties. This error can occur in some unexpected (though valid) situations. For example, consider the following code, which creates a Sprite object. Since this Sprite object is never added to the display list (via the addChild() method of a DisplayObjectContainer object), then its stage property is set to null, and as such, its stage property cannot have any properties. So the code generates the errror:
import flash.display.Sprite;
            var sprite1:Sprite = new Sprite();
            var q:String = sprite1.stage.quality;
1010 undefined has no properties. This error can occur if you are trying to access a property of an object that does not exist. For example:
var obj:Object = new Object();
            obj.a = "foo";
            trace(obj.b.prop);

You can also see this error because of a mispelling, for example in the following, where mc represents a MovieClip object on the display list, and the stage property is misspelled with a capital S (it should be stage):

trace(mc.Stage.quality);
1011 Method _ contained illegal opcode _ at offset _. See the note at the bottom of this table. *
1012 The last instruction exceeded code size. See the note at the bottom of this table. *
1013 Cannot call OP_findproperty when scopeDepth is 0. See the note at the bottom of this table. *
1014 Class _ could not be found.  
1015 Method _ cannot set default xml namespace See the note at the bottom of this table. *
1016 Descendants operator (..) not supported on type _.  
1017 Scope stack overflow. See the note at the bottom of this table. *
1018 Scope stack underflow. See the note at the bottom of this table. *
1019 Getscopeobject _ is out of bounds. See the note at the bottom of this table. *
1020 Code cannot fall off the end of a method. See the note at the bottom of this table. *
1021 At least one branch target was not on a valid instruction in the method See the note at the bottom of this table. *
1022 Type void may only be used as a function return type See the note at the bottom of this table. *
1023 Stack overflow. See the note at the bottom of this table. *
1024 Stack underflow. See the note at the bottom of this table. *
1025 An invalid register _ was accessed. See the note at the bottom of this table. *
1026 Slot _ exceeds slotCount=_ of _. See the note at the bottom of this table. *
1027 Method_info _ exceeds method_count=_. See the note at the bottom of this table. *
1028 Disp_id _ exceeds max_disp_id=_ of _. See the note at the bottom of this table. *
1029 Disp_id _ is undefined on _. See the note at the bottom of this table. *
1030 Stack depth unbalanced. _ != _. See the note at the bottom of this table. *
1031 Scope depth unbalanced. _ != _. See the note at the bottom of this table. *
1032 Cpool index _ out of range _. See the note at the bottom of this table. *
1033 Cpool entry _ wrong type. See the note at the bottom of this table. *
1034 Type Coercion failed: cannot convert _ to _ See the note at the bottom of this table. *
1035 Illegal super expression in method _ See the note at the bottom of this table. *
1037 Cannot assign to a method _ on _ See the note at the bottom of this table. *
1038 _ is already defined You cannot declare a variable or function with the same identfier name more than once within the same scope. In ActionScript 3.0, different code blocks (such as those used in two for loops in the same function definition) are considered to be in the same scope. See the note at the bottom of this table. *
1039 Cannot verify method until it is referenced See the note at the bottom of this table. *
1040 RHS of instanceof must be a Class or Function The expression on the right-hand side of the instanceOf operator must be a class or function.
1041 RHS of operator must be a Class The expression on the right-hand side of the instanceOf operator must be a class.
1042 Not an ABC file. major_version=_ minor_version=_ You are attempting to use an invalid file with the player: Possibly the tool that generates the SWF is out of date or the SWF itself is corrupt.
1043 Invalid code_length=_ See the note at the bottom of this table. *
1044 MethodInfo-_ unsupported flags=_ See the note at the bottom of this table. *
1045 Unsupported traits kind=_ See the note at the bottom of this table. *
1046 MethodInfo-_ referenced before definition See the note at the bottom of this table. *
1047 No Entry Point Found See the note at the bottom of this table. *
1049 Prototype objects must be vanilla Objects See the note at the bottom of this table. *
1050 Cannot convert _ to primitive. See the note at the bottom of this table. *
1051 Illegal early binding access to _ See the note at the bottom of this table. *
1052 Invalid URI passed to _ function. See the note at the bottom of this table. *
1053 Illegal override of _ in _ See the note at the bottom of this table. *
1054 Illegal range or target offsets in exception handler See the note at the bottom of this table. *
1056 Cannot create property _ on _ You are trying to assign a value to a nonexisting property on a class that isn’t dynamic. This could occur at run time but not at compile time because the compiler passes over content within the array operator ([]).
1057 _ may only contain methods See the note at the bottom of this table. *
1058 Illegal operand type: _ must be _ See the note at the bottom of this table. *
1059 ClassInfo-_ referenced before definition See the note at the bottom of this table. *
1060 ClassInfo _ exceeds class_count=_. See the note at the bottom of this table. *
1061 The value _ cannot be converted to _ without losing precision This error appears if you attempt to assign a decimal number to a property of type int.

This error also appears for out-of-range assignments, such as the following:

var m0:int = 2147483648; // int.MAX_VALUE == 2147483647

You can also see this error when using the bitwise left shift operator (<<). For example, consider the following code:

var m0:uint = 0xFF;
            var m1:uint = m0<<24;

The result of left shift operator (<<) is interpreted as a 32-bit two's complement number with sign. In the example, the result is a negative value, which causes the error when assigned to the uint typed property. A workaround is the following:

var m0:uint = 0xFF;
            var m1:uint = uint(m0<<24);
1063 Argument count mismatch on _. Expected _, got _  
1064 Cannot call method _ as constructor Extracted methods are permanently bound to the object they are extracted from. Therefore, they can not later be called as a constructor. For example, the following creates function f() in Class A:  
class A {
            function f() {}
            }
In the following code, extracting the function causes no error. However, creating a new instance of the function causes an error.
var a = new A()
            var m = a.f    // extract f, don't call it
            m()  // same as a.f()
            new m() // causes this error
1065 Variable _ is not defined You are using an undefined lexical reference. For example, in the following statements, the statement print(x) generates an error because x is undefined. However, the statement print(y) doesn't generate an error because y is defined:  
print("hello world")
            print(x) // x is undefined
            var y
            print(y) // No error, y is defined.
1066 Function('function body') is not supported Unlike JavaScript, Flash does not compile code on the fly using eval() and function("print('hello world')").  Thus, calling these as a constructor in Flash generates this error.
1067 Native method _ has illegal method body See the note at the bottom of this table. *
1068 _ and _ cannot be reconciled See the note at the bottom of this table. *
1069 Property _ not found on _ and there is no default value You are referencing an undefined property on a sealed class. For example, the following generates this error when it references property x, which is not defined and can’t be created dynamically:
class A {}  // sealed class, not dynamic
            print(new A().x) // no property x defined on A, and A is not dynamic
 
1070 Method _ not found on _ You are using a super statement to call a function, but the function doesn’t exist in the super class. For example, the following code generates the error:
class A() {}
            class B extends A {
               function f() { print(super.f()); } // error 1070, there is no f on A
            }
1071 Function _ has already been bound to _  
1072 Disp_id 0 is illegal. See the note at the bottom of this table. *
1073 Non-override method _ replaced because of duplicate disp_id _ See the note at the bottom of this table. *
1074 Illegal write to read-only property _ on _  
1075 Math is not a function You are trying to call math() as a function, but math is a class with static methods.
1076 Math is not a constructor You can not instantiate the Math class.   
1077 Illegal read of write-only property _ on _  
1078 Illegal opcode/multiname combination: _<_> See the note at the bottom of this table. *
1079 Native methods not allowed in loaded code See the note at the bottom of this table. *
1080 Illegal value for namespace See the note at the bottom of this table. *
1081 Property _ not found on _ and there is no default value  
1082 No default namespace has been set See the note at the bottom of this table. *
1083 The prefix "_" for element "_" is not bound. An attribute name or element name has a prefix but no matching namespace was found. This statement generates an error because there is no foo namespace to match foo:x:
<foo:x xmlns:clowns='http://circuscenter.com'>
1084 Element or attribute ("_") do not match QName production: QName::=(NCName':')?NCName You have foo: or :foo as an element or attribute name, but there is nothing on the other side of the colon.
1085 The element type "_" must be terminated by the matching end-tag "</_>".  
1086 The _ method works only on lists containing one item. The XMLList class propagates the XML-specific functions to one child if it only has one item in its list. If more than one item is in the list, the routines fail with this error. This happens for the following XMLList functions that mimic XML functions:

addNamespace, appendChild, childIndex, inScopeNamespaces, insertChildAfter, insertChildBefore, name, namespace, localName, namespaceDeclarations, nodeKind, prependChild, removeNamespace, replace, setChildren, setLocalName, setName, and setNamespace.

1087 Assignment to indexed XML is not allowed.  
1088 The markup in the document following the root element must be well-formed. These are some possible causes of this error:
1089 Assignment to lists with more than one item is not supported  
1090 XML parser failure: element is malformed An element name is malformed. This example of an element name is malformed because a trailing right angle bracket > is missing:
<a/><b></b
1091 XML parser failure: Unterminated CDATA section  
1092 XML parser failure: Unterminated XML declaration  
1093 XML parser failure: Unterminated DOCTYPE declaration  
1094 XML parser failure: Unterminated comment  
1095 XML parser failure: Unterminated attribute  
1096 XML parser failure: Unterminated element  
1097 XML parser failure: Unterminated processing instruction  
1098 Illegal prefix '_' for 'no namespace'. The namespace constructor throws this error if you try to pass in an empty URI with a non-empty prefix as in this example:
ns = new Namespace ("prefix", "");
            
1100 Cannot supply flags when constructing one RegExp from another. Creating a new regular expression from an existing one also copies its flags. To create a regular expression with different flags, use the new operator and set the flags as desired. For example, this statement creates a regular expression and specifies flag settings: var re:RegExp = new RegExp("ali", /s)
 
Alternatively, this statement creates a regular expression that has the same flags as re:
var re2:RegExp = new RegExp(re, ...)
 
1101 Cannot verify method _ with unknown scope See the note at the bottom of this table. *
1102 Illegal default value for type _ See the note at the bottom of this table. *
1103 Class _ cannot extend final base class See the note at the bottom of this table. *
1104 Attribute "_" was already specified for element "_".  
1107 The ABC data is corrupt, attempt to read out of bounds See the note at the bottom of this table. *
1108 The OP_newclass opcode was used with the incorrect base class See the note at the bottom of this table. *
1109 Attempt to directly call unbound function _ from method _ See the note at the bottom of this table. *
1110 _ cannot extend _ See the note at the bottom of this table. *
1111 _ cannot implement _ See the note at the bottom of this table. *
1112 Argument count mismatch on class coercion. Expected 1, got _  
1113 OP_newactivation used in method without NEED_ACTIVATION flag See the note at the bottom of this table. *
1114 OP_getglobalslot or OP_setglobalslot used with no global scope See the note at the bottom of this table. *
1115 _ is not a constructor  
1116 second argument to Function.prototype.apply must be an array  
1117 Invalid XML name: _  
1118 Illegal cyclical loop between nodes  
1119 Delete operator not supported with operand of type _.  
1120 Cannot delete property _ on _  
1121 Method _ has a duplicate method body  
1122 Interface method _ has illegal method body  
1123 Filter operator not supported on type _.  
1500 Error opening file '_'.  
1501 Error writing to file '_'.  
1502 A script has executed for longer than 15 seconds.  
1503 A script did not exit in a timely fashion and was terminated.  
1504 End of file  
1505 The string index _ is out of bounds; must be in range _ to _.  
1506 The range specified is invalid.  
1507 Argument '_' may not be null.  
1508 The value specified for argument '_' is invalid. You are possibly trying to pass the wrong data type. For example, the code
public function doSomething(const:int):void {
            }
            this ["doSomething"] ("str")
generates an error at runtime because doSomething is cast as an int data type.  
1509 There was an error decompressing the data. The de-compressor reached the end of the stream, but more data was expected. The compressed data stream is probably corrupted.
2000 No active security context.  
2001 Too few arguments were specified; got _, _ expected.  
2002 Operation attempted on invalid socket.  
2003 Invalid socket port number specified.  
2004 One of the parameters is invalid.  
2005 Parameter _ is of the incorrect type. Should be type _.  
2006 The supplied index is out of bounds.  
2007 Parameter _ must be non-null.  
2008 Parameter _ must be one of the accepted values.  
2009 This method cannot be used on a text field with a style sheet.  
2010 Untrusted local files are not permitted to use sockets.  
2011 Socket connection failed to _:_.  
2012 _ class cannot be instantiated.  
2013 Feature can only be used in Flash Authoring.  
2014 Feature is not available at this time.  
2015 Invalid image.  
2016 Asset with ID _ could not be found.  
2017 Only trusted local files may cause the Flash Player to exit.  
2018 System.exit is only available in the standalone Flash Player.  
2019 Depth specified is invalid.  
2020 MovieClips objects with different parents cannot be swapped.  
2021 Object creation failed.  
2022 Class _ must inherit from DisplayObject to link to a symbol.  
2023 Class _ must inherit from Sprite to link to the root.  
2024 An object cannot be added as a child of itself.  
2025 The supplied DisplayObject must be a child of the caller.  
2026 An error occurred navigating to the URL _.  
2028 Local untrusted file _ may not access Internet URL _.  
2029 This URLStream object does not have a stream opened.  
2030 End of file was encountered.  
2031 Socket Error.  
2032 Stream Error.  
2033 Key Generation Failed.  
2034 Invalid Key.  
2035 URL Not Found.  
2036 Load Never Completed.  
2037 Functions called in incorrect sequence, or earlier call was unsuccessful.  
2038 File I/O Error.  
2039 Invalid remote URL protocol. The remote URL protocol must be HTTP or HTTPS.  
2041 Only one file browsing session may be performed at a time.  
2044 Unhandled _:.  
2045 The digest property is not supported by this load operation.  
2046 The preload operation requires a digest.  
2047 Security sandbox violation: _: _ may not access _.  
2048 Security sandbox violation: _ may not load data from _.  
2049 Security sandbox violation: _ may not upload data to _.  
2051 Security sandbox violation: _ may not evaluate scripting URLs within _.  
2052 Only String arguments are permitted for allowDomain and allowInsecureDomain.  
2053 Security sandbox violation: _ may not clear an interval timer set by _.  
2054 The value of Security.exactSettings cannot be changed after it has been used.  
2055 The print job could not be started.  
2056 The print job could not be sent to the printer.  
2057 The page could not be added to the print job.  
2058 There was an error decompressing the data.  
2059 Security sandbox violation: _ may not overwrite an ExternalInterface callback added by _.  
2060 Security sandbox violation: ExternalInterface caller _ may not access _.  
2061 No ExternalInterface callback _ registered.  
2062 Children of Event must override clone() {return new MyEventClass (...);}.  
2063 Error attempting to execute IME command.  
2064 Mouse capture has already been set.  
2065 The focus cannot be set for this target.  
2066 The Timer delay specified is out of range.  
2067 The ExternalInterface is not available in this container. ExternalInterface requires Internet Explorer ActiveX, Firefox, Mozilla 1.7.5 and greater, or other browsers that support NPRuntime.  
2068 Invalid sound.  
2069 The Loader class does not implement this method.  
2070 Security sandbox violation: caller _ may not access Stage owned by _.  
2071 The Stage class does not implement this property or method.  
2072 There was a problem downloading the application.  
2073 There was a problem saving the application to disk.  
2074 The stage is too small to fit the download ui.  
2075 The downloaded file is invalid.  
2076 There was an unexpected error in the download.  
2077 This filter operation cannot be performed with the specified input parameters.  
2078 The name property of a Timeline-placed object cannot be modified.  
2079 Classes derived from Bitmap can only be associated with defineBits characters (bitmaps).  
2080 setCapture can only be called inside of a mouseDown handler.  
2081 Bitmap constructor requires a BitmapData object.  
2082 Connect failed because the object is already connected.  
2083 Close failed because the object is not connected.  
2084 The AMF encoding of the arguments cannot exceed 40K.  
2085 Parameter _ must be non-empty string.  
2086 A setting in the mms.cfg file prohibits this FileReference request.  
2087 The FileReference.download() file name contains prohibited characters.  
2088 The Proxy class does not implement getProperty. It must be overridden by a subclass.  
2089 The Proxy class does not implement setProperty. It must be overridden by a subclass.  
2090 The Proxy class does not implement callProperty. It must be overridden by a subclass.  
2091 The Proxy class does not implement hasProperty. It must be overridden by a subclass.  
2092 The Proxy class does not implement deleteProperty. It must be overridden by a subclass.  
2093 The Proxy class does not implement getDescendants. It must be overridden by a subclass.  
2094 Event dispatch recursion overflow.  
2095 Unhandled exception with asynchronous handler _.  
2096 The HTTP request header _ may not be set via ActionScript.  
2097 The FileFilter Array is not in the correct format.  
2098 The loading object is not a .swf file, you cannot request SWF properties from it.  
2099 The loading object is not sufficiently loaded to provide this information.  
2100 The ByteArray parameter in Loader.loadBytes() must have length greater than 0.  
2101 The String passed to URLVariables.decode() must be a URL-encoded query string containing name/value pairs.  
2102 The before XMLNode parameter must be a child of the caller.  
2103 XML recursion failure: new child would create infinite loop.  
2104 BitmapData.draw can not render cross-domain objects.  
2105 The Proxy class does not implement nextNameIndex. It must be overridden by a subclass.  
2106 The Proxy class does not implement nextName. It must be overridden by a subclass.  
2107 The Proxy class does not implement nextValue. It must be overridden by a subclass.  
2108 Scene _ was not found.  
2109 Frame label _ not found in scene _.  
2110 The value of Security.disableAVM1Loading cannot be set unless the caller may access the stage and is in an AVM2 movie.  
2111 Security.disableAVM1Loading is true so the current load of the AVM1 movie has been blocked.  
2112 Provided parameter LoaderContext.ApplicationDomain is from a disallowed domain.  
2113 Provided parameter LoaderContext.SecurityDomain is from a disallowed domain.  
2114 Parameter _ must be null.  
2115 Parameter _ must be false.  
2116 Parameter _ must be true.  
2117 Security sandbox violation: Non-import loading was requested (LoaderContext.securityDomain = null) but an LoaderContext.applicationDomain was in a different domain than the requested movie.  
2118 The LoaderInfo class does not implement this method.  
2119 Security sandbox violation: caller _ may not access LoaderInfo.applicationDomain owned by _.  
2120 Security sandbox violation: _: _ may not access _.  
2121 Security sandbox violation: _: _ may not access _.  
2122 Security sandbox violation: _: _ may not access _. Policy files are still being accessed.  
2123 Security sandbox violation: _: _ may not access _. No policy files granted access.  
2124 Loaded file is an unknown type.  
2125 Security sandbox violation: _ may not use Runtime Shared Library _ because crossing the boundary between AVM2(ActionScript 3.0) and AVM1(ActionScript 1.0 or ActionScript 2.0) objects is not allowed.  
2126 NetConnection object must be connected.  
2127 FileReference POST data cannot be type ByteArray.  


* Note: This error is thrown while the compiler is checking the bytecode; that is, before executing the code. Under normal circumstances, you should never see this error. If you are using the Macromedia compiler and see this error, please file a compiler bug at [page tbd]. If you are using a third-party compiler and see one of these errors, please notify the compiler developer.


在加一个AS3.0参考手册地址:AS3.0参考手册

posted on 2006-04-30 10:07 blog搬家了--[www.ialway.com/blog] 阅读(5666) 评论(0)  编辑  收藏 所属分类: Flex

只有注册用户登录后才能发表评论。


网站导航: