Adobe® Flex® 4 Language Reference
Show Packages and Classes List |  Packages  |  Classes  |  Index  |  Appendixes
 
Compiler Warnings 

Compiler warning messages identify code that is valid and compiles successfully, but may not be what the author intended. To enable detecting these possible problems, compile ActionScript projects in warning mode.

Some of these warnings (for example, "Missing type declaration.") are coding style choices that you have the option whether to enforce. Others (for example, "Impossible assignment to null.") point out statements that are valid, but are unlikely to behave as the user expects. A third class of warnings covers issues you may encounter when porting ActionScript 2.0 code to ActionScript 3.0.


 CodeMessageDescription
 1008Missing type declaration. 
 1009%s '%s' has no type declaration. Not declaring a data type is a coding style preference. A function return type, parameter, or variable has no type declaration. However, using type declarations enables the compiler to write more efficient code, as well as detect more errors at compile time. Enable this warning if you want to be reminded when you fail to use a type declaration.  
 1012Illogical comparison with undefined. Only untyped variables (or variables of type *) can be undefined. 
 1013Variables of type %s cannot be undefined. The value undefined will be type coerced to %s before comparison. Only variables of type * can be undefined. With a few exceptions, uninitialized variables have a default value of null rather than undefined. The exceptions include: Boolean variables, which have a default value of false. Number variables, which have a default value of NaN, and int or uint variables, which have a default value of 0.  
 1030Function used in new expression returns a value. Result will be what the function returns, rather than a new instance of that function. 
 1031Migration issue: Result of new %s will be the return value of %s, rather than a new instance of that function. This is a code migration warning. The detected code behaves differently in ActionScript 3.0 than in ActionScript 2.0, as shown in the following example:
function f(){
   this.b = 22;
   this.a = new Array(2);Â  
   this.a[0] = 33;
   this.a[1] = 44;
   return a; 
   } 
   // returns a new instance of f in ActionScript 2.0 and a new 2 element array in ActionScript 3.0
   var d = new f();Â  // Warning here
   trace(d.a);       // undefined in ActionScript 3.0, [33,44] in ActionScript 2.0.
 
 1034Boolean() with no arguments returns false in ActionScript 3.0. Boolean() returned undefined in ActionScript 2.0. 
 1035Use of Boolean() with no arguments. This is a code migration warning. The Boolean() function returns false in ActionScript 3.0, but undefined in ActionScript 2.0.  
 1038In ActionScript 3.0, white space is ignored and '' returns 0. Number() returns NaN in ActionScript 2.0 when the parameter is '' or contains white space. 
 1039Migration issue: When the Number('') function is called with an empty string argument it returns 0 in ActionScript 3.0, and NaN in ActionScript 2.0. This is a code migration warning. The Number() method called with a String argument skips over all white space in the string and return a default value of 0 if no digits are detected. In ActionScript 2.0, any white space in the string causes the result to be NaN.  
 1044Array.toString() format has changed. 
 1045Migration issue: Array.toString() handling of null and undefined elements has changed. This is a code migration warning. In ActionScript 2.0, null array elements convert to null and undefined elements convert to undefined. In ActionScript 3.0, both null and undefined elements convert to the empty string ''. If you have code that parses the toString() output from an Array, you may need to adjust your code for this difference.  
 1058Unsupported ActionScript 2.0 property. 
 1059Migration issue: The property %s is no longer supported. %s. This is a code migration warning. The property you are attempting to use does not exist in ActionScript 3.0.  
 1060Unsupported ActionScript 2.0 function. 
 1061Migration issue: The method %s is no longer supported. %s. This is a code migration warning. The method you are attempting to use does not exist in ActionScript 3.0.  
 1066__resolve is no longer supported. 
 1067Migration issue: __resolve is no longer supported. Use the new Proxy class for similar functionality. This is a code migration warning. See Proxy in this language reference for more information on the replacement for __resolve.  
 1070_level is no longer supported. For more information, see the flash.display package. 
 1071Migration issue: _level is no longer supported. For more information, see the flash.display package. This is a code migration warning. The property you are attempting to use does not exist in ActionScript 3.0.  
 1072Class is sealed. It cannot have members added to it dynamically. 
 1073Migration issue: %s is not a dynamic class. Instances cannot have members added to them dynamically. This is a code migration warning. In ActionScript 2.0, many classes such as Number are dynamic, which means that new properties can be added to instances of those classes at run time. This warning results from code that tries to add a property to an instance of a non-dynamic class.  
 1082Change in scoping for the this keyword. Class methods extracted from an instance of a class will always resolve this back to that instance. In ActionScript 2.0 this is looked up dynamically based on where the method is invoked from. 
 1083Migration issue: Method %s will behave differently in ActionScript 3.0 due to the change in scoping for the this keyword. See the entry for warning 1083 for additional information. This is a code migration warning. This warning is generated when a method of an object is used as a value, usually as a callback function. In ActionScript 2.0, functions are executed in the context they are called from. In ActionScript 3.0, functions are always executed in the context where they were defined. Thus, variable and method names are resolved to the class that the callback is part of, rather than relative to the context it is called from, as in the following example:
class a 
{ 
   var x; 
   function a() { x = 1; } 
   function b() { trace(x); } 
}

var A:a = new a();
var f:Function = a.b; // warning triggered here
var x = 22;
f(); // prints 1 in ActionScript 3.0, 22 in ActionScript 2.0
 
 1084Missing namespace declaration (e.g. variable is not defined to be public, private, etc.). 
 1085%s will be scoped to the default namespace: %s internal. It will not be visible outside of this package. Not declaring a namespace is a coding style preference. Enable this warning if you want to be reminded when you forget to declare a namespace or access specifier for a definition. Without one, the definition is not visible to code located outside of this file. To make it visible to code outside this file, declare it with the access specifier public or with a namespace declaration. To keep the definition local to this file and avoid this warning, declare the definition as private.  
 1086ActionScript 3.0 iterates over an object's properties within a "for x in target" statement in random order. 
 1087Migration issue: ActionScript 3.0 iterates over an object's properties within a "for x in target" statement in random order. This is a code migration warning. In ActionScript 2.0, the order in which the properties of an object were processed was always the same. In ActionScript 3.0, the order is random and can change from machine to machine. If unexpected ordering behavior occurs, inspect this loop to determine if this change in behavior may affect your code.  
 1088Internal error in compiler. 
 1089Error code: %s. This is due to either a corrupt source file or a bug in the compiler code. Please contact Adobe, Inc. to file a bug.  
 1090EventHandler was not added as a listener. 
 1091Migration issue: %s This is a code migration warning. In ActionScript 2.0 declaring a method by a special name (such as onMouseDown) would cause Flash to call that method when a certain event occurred. In ActionScript 3.0, you must call addEventListener() with a method in order to register it to receive that event. See addEventListener in this language reference for details.  
 1092Negative value will become a large positive value when assigned to a uint data type. 
 1093Negative value used where a uint (non-negative) value is expected. Assigning a negative value to a uint data type results in an extremely large positive value. var x:uint = -1; trace(x); // 4294967295.  
 1096Illogical comparison with null. 
 1097Illogical comparison with null. Variables of type %s cannot be null. Instances of Boolean, int, uint, and Number cannot be null. The comparison operator type converts null to false before comparing it to a Boolean, or to 0 before comparing it with a Number, int, or uint data type.  
 1098Illogical comparison with NaN. Any comparison operation involving NaN will evaluate to false because NaN != NaN. 
 1099Illogical comparison with NaN. This statement always evaluates to false. NaN has the unique mathematical property that any comparison involving it evaluates to false. Use the global isNaN() function to detect a NaN value instead, as in the following example:
trace(NaN == NaN); // false!
trace(NaN != NaN); // false again!
trace(isNaN(NaN)); // true
 
 1100Assignment within conditional. 
 1101Assignment within conditional. Did you mean == instead of =? The result of an = assignment statement is the value of the right-hand side of the = statement. You can use an assignment statement as a conditional test, but it is not recommended. It usually is the result of a typo where a == equality test was intended, as the following example shows:
var x:Boolean = false;
var y:Boolean = true;
// it is hard to determine if the line below intentionally sets x's value to y's or if its a typo
if (x = y) { trace("x is assigned y's value of true, making the conditional test evaluate as true."); }
 
 1102Impossible null assignment. 
 1103null used where a %s value was expected. Boolean, Number, int, and uint variables cannot be assigned null as a value. The null value is implicitly cast to false when assigned to a Boolean, and to 0 when assigned to an int, uint, or Number.  
 1104Missing constructor. 
 1105No constructor function was specified for class %s. Not specifying a constructor function is a coding style preference. Enable this warning if you want to always declare constructors for classes. This warning is intended to help find cases where a class name is changed but its constructor's name is not. Conditions such as this are not flagged as a problem without this warning, the former constructor appears to be a normal function.  
 1106Empty statement. 
 1107Empty statement found where block of code expected. Did you type ';' accidentally? It is common to accidentally type ; before block of code.
 if (x == y);
{
	trace("This code will be executed no matter what are the x and y values.")
}
 
 1110Constant not initialized. 
 1111The constant was not initialized. 
 1112Possibly invalid Array cast operation. 
 1113Array(x) behaves the same as new Array(x). To cast a value to type Array use the expression x as Array instead of Array(x). 
 1114The super() statement was not called within the constructor. 
 1115The super() statement will be executed prior to entering this constructor. Add a call to super() within the constructor if you want to explicitly control when it is executed. Adding a call to super() within the constructor is a coding style preference. Enable this warning if you want to always be explicit about when super() is called. This can help catch cases where you meant to call super() after some local initialization code and forgot to add it.  
 2090Use Capabilities.version instead. 
 2091For more information, see InteractiveObject.focusRect. 
 2092For more information, see Stage.quality. 
 2093For more information, see Stage.quality. 
 2094For more information, see Stage.quality. 
 2095For more information, see Stage.quality. 
 2096Use the static property flash.media.SoundMixer.bufferTime instead. 
 2097This functionality is no longer supported. 
 2098For more information, see LoaderInfo.url. 
 2099This functionality is no longer supported. 
 2102Use '\n' for newline. 
 2103For more information, see textField.maxScroll. 
 2104The concept of levels does not exist in ActionScript 3.0, which instead provides direct access to the display list. See the flash.display package for details. 
 2105Use the parent property instead. 
 2106This property has been removed. The closest equivalent is the Stage, which serves as the root of the ActionScript 3.0 display list. 
 2107Try declaring caller as an argument of the function instead. 
 2108This functionality is no longer supported. 
 2109Use the parent property instead. 
 2110This functionality is no longer supported. 
 2111For more information, see Sprite.hitArea. 
 2112For more information, see the scrollH and scrollV properties of flash.text.TextField class. 
 2113Use MovieClip objects directly as arguments instead of paths. 
 2114For more information, see Video.videoHeight. 
 2115For more information, see Video.videoWidth. 
 2116For more information, see obsolete __proto__. 
 2117For more information, see DisplayObject.stage. 
 2118Use the registerClass() method in the flash.net package instead. 
 2617Use Math.random() instead. 
 2618Use String.fromCharCode() instead. 
 2619Use String.fromCharCode() instead. 
 2621Use String.charCodeAt() instead. 
 2622Use String.charCodeAt() instead. 
 2623Use the String.substr method instead. 
 2624Use the String.substr method instead. 
 2625Use the length property of the argument instead. 
 2626Use the length property of the argument instead. 
 2627For more information, see changes to ASnative. 
 2628Set properties directly on the instance using dot (.) notation instead. 
 2629Access properties directly using dot (.) notation instead. 
 2630Set properties directly on the instance using dot (.) notation instead. 
 2631For more information, see TextEvent.LINK and addEventListener(). 
 2633This method has moved to the flash.utils package. 
 2634Replaced by new MovieClip class constructor function. 
 2636Moved to flash.system package. Also, please see flash.external.ExternalInterface class for Javascript/ActionScript communication. 
 2638For equivalent functionality, see flash.net.URLLoader. The flash.net package also contains package-level functions navigateToURL() and sendToURL(). 
 2639For more information, see MovieClip.gotoAndPlay(). 
 2640For more information, see MovieClip.gotoAndStop(). 
 2641For more information, see MovieClip.play(). 
 2642For more information, see PrintJob.start(). 
 2643For more information, see PrintJob. 
 2644For more information, see PrintJob. 
 2645For more information, see PrintJob. 
 2646Use Container.removeChild(childName). For more information, see the DisplayObjectContainer class. 
 2647Moved to the flash.utils package. Consider using the Timer class instead. 
 2648For more information, see MovieClip.nextFrame(). 
 2649For more information, see MovieClip.startDrag(). 
 2650For more information, see MovieClip.stop(). 
 2651For more information, see Sound.stopAllSounds(). 
 2652For more information, see MovieClip.stopDrag(). 
 2653Use the dot (.) operator or the with statement instead. 
 2654For more information, see DisplayObject.stage and Stage.quality. 
 2656Use DisplayObjectContainer.removeChild(childName) instead. For more information, see the DisplayObjectContainer class. 
 2657Use DisplayObjectContainer.removeChild(childName) instead. For more information, see the DisplayObjectContainer class. 
 2658This function is no longer a global function, but is still available as a method of the TimerEvent, MouseEvent, and KeyboardEvent classes. 
 2659For more information, see Video.attachNetStream, Video.attachCamera. 
 2660Use the URLLoader class to perform loading and pass the result to StyleSheet.parseCSS() 
 2663In ActionScript 3.0 all classes are registered by default. If you are using AMF, see flash.utils.registerClassAlias() for more information. 
 2664Use accessor properties (get/set functions) or the flash.utils.Proxy class for similar functionality. 
 2665Use accessor properties (get/set functions) or the flash.utils.Proxy class for similar functionality. 
 2666For more information, see MovieClip.loadMovie(). 
 2667For more information, see MovieClip.loadMovieNum(). 
 2668For more information, see Loader.load(). 
 2669For more information, see Loader.load(). 
 2678For more information, see addEventListener ( eventName, listener, useCapture, priority ). 
 2679For more information, see removeEventListener ( eventName, listener, useCapture). 
 2680For more information, see addEventListener ( eventName, listener, useCapture, priority ). 
 2681For more information, see removeEventListener ( eventName, listener, useCapture). 
 2682For more information, see addEventListener ( eventName, listener, useCapture, priority ). 
 2683For more information, see removeEventListener ( eventName, listener, useCapture). 
 2684For more information, see addEventListener ( eventName, listener, useCapture, priority ). 
 2685For more information, see removeEventListener ( eventName, listener, useCapture). 
 2686Use SWF class to create sounds from library 
 3187The onStatus event handler is not triggered automatically by Flash Player at run time in ActionScript 3.0. You must first register this handler for the event using addEventListener ( 'status', callback_handler). 
 3188The onID3 event handler is not triggered automatically by Flash Player at run time in ActionScript 3.0. You must first register this handler for the event using addEventListener ( 'id3', callback_handler). 
 3189The onLoad event handler is not triggered automatically by Flash Player at run time in ActionScript 3.0. You must first register this handler for the event using addEventListener ( 'load', callback_handler). 
 3190The onSoundComplete event handler is not triggered automatically by Flash Player at run time in ActionScript 3.0. You must first register this handler for the event using addEventListener ( 'soundComplete', callback_handler). 
 3191The onSetFocus event handler is not triggered automatically by Flash Player at run time in ActionScript 3.0. You must first register this handler for the event using addEventListener ( 'focusIn', callback_handler). 
 3192The onResize event handler is not triggered automatically by Flash Player at run time in ActionScript 3.0. You must first register this handler for the event using addEventListener ( 'resize', callback_handler). 
 3193The onChanged event handler is not triggered automatically by Flash Player at run time in ActionScript 3.0. You must first register this handler for the event using addEventListener ( 'change', callback_handler). 
 3194The onKillFocus event handler is not triggered automatically by Flash Player at run time in ActionScript 3.0. You must first register this handler for the event using addEventListener ( 'focusOut', callback_handler). 
 3195The onScroller event handler is not triggered automatically by Flash Player at run time in ActionScript 3.0. You must first register this handler for the event using addEventListener ( 'scroll', callback_handler). 
 3198The onMouseDown event handler is not triggered automatically by Flash Player at run time in ActionScript 3.0. You must first register this handler for the event using addEventListener ( 'mouseDown', callback_handler). 
 3199The onMouseUp event handler is not triggered automatically by Flash Player at run time in ActionScript 3.0. You must first register this handler for the event using addEventListener ( 'mouseUp', callback_handler). 
 3200The onMouseMove event handler is not triggered automatically by Flash Player at run time in ActionScript 3.0. You must first register this handler for the event using addEventListener ( 'mouseMove', callback_handler). 
 3201The onMouseWheel event handler is not triggered automatically by Flash Player at run time in ActionScript 3.0. You must first register this handler for the event using addEventListener ( 'mouseWheel', callback_handler). 
 3202The onKeyDown event handler is not triggered automatically by Flash Player at run time in ActionScript 3.0. You must first register this handler for the event using addEventListener ( 'keyDown', callback_handler). 
 3203The onKeyUp event handler is not triggered automatically by Flash Player at run time in ActionScript 3.0. You must first register this handler for the event using addEventListener ( 'keyUp', callback_handler). 
 3204The onData event handler is not triggered automatically by Flash Player at run time in ActionScript 3.0. You must first register this handler for the event using addEventListener ( 'data', callback_handler). 
 3205The onHTTPStatus event handler is not triggered automatically by Flash Player at run time in ActionScript 3.0. You must first register this handler for the event using addEventListener ( 'httpStatus', callback_handler). 
 3206The onDragOut event handler is not triggered automatically by Flash Player at run time in ActionScript 3.0. You must first register this handler for the event using addEventListener ( 'mouseOut', callback_handler). 
 3207The onDragOver event handler is not triggered automatically by Flash Player at run time in ActionScript 3.0. You must first register this handler for the event using addEventListener ( 'mouseOver', callback_handler). 
 3211The onPress event handler is not triggered automatically by Flash Player at run time in ActionScript 3.0. You must first register this handler for the event using addEventListener ( 'mouseDown', callback_handler). 
 3212The onRelease event handler is not triggered automatically by Flash Player at run time in ActionScript 3.0. You must first register this handler for the event using addEventListener ( 'click', callback_handler). 
 3213The onReleaseOutside event handler is not triggered automatically by Flash Player at run time in ActionScript 3.0. You must first register this handler for the event using addEventListener ( 'mouseUp', callback_handler). 
 3214The onRollOut event handler is not triggered automatically by Flash Player at run time in ActionScript 3.0. You must first register this handler for the event using addEventListener ( 'mouseOut', callback_handler). 
 3215The onRollOver event handler is not triggered automatically by Flash Player at run time in ActionScript 3.0. You must first register this handler for the event using addEventListener ( 'mouseOver', callback_handler). 
 3217The onActivity event handler is not triggered automatically by Flash Player at run time in ActionScript 3.0. You must first register this handler for the event using addEventListener ( 'activity', callback_handler). 
 3219The onSelect event handler is not triggered automatically by Flash Player at run time in ActionScript 3.0. You must first register this handler for the event using addEventListener ( 'menuSelect', callback_handler). 
 3226The onEnterFrame is not triggered automatically by Flash Player at run time in ActionScript 3.0. You must first register this handler for the event using addEventListener ( 'enterFrame', callback_handler). 
 3240The onUnload event handler is not triggered automatically by Flash Player at run time in ActionScript 3.0. You must first register this handler for the event using addEventListener ( 'unload', callback_handler). 
 3241The onLoadComplete is not triggered automatically by Flash Player at run time in ActionScript 3.0. You must first register this handler for the event using addEventListener ( 'load', callback_handler). 
 3242The onLoadError event handler is not triggered automatically by Flash Player at run time in ActionScript 3.0. You must first register this handler for the event using addEventListener ( 'error', callback_handler). 
 3243The onLoadInit event handler is not triggered automatically by Flash Player at run time in ActionScript 3.0. You must first register this handler for the event using addEventListener ( 'init', callback_handler). 
 3244The onLoadProgress event handler is not triggered automatically by Flash Player at run time in ActionScript 3.0. You must first register this handler for the event using addEventListener ( 'progress', callback_handler). 
 3245The onLoadStart is not triggered automatically by Flash Player at run time in ActionScript 3.0. You must first register this handler for the event using addEventListener ( 'start', callback_handler). 
 3249The onClose event handler is not triggered automatically by Flash Player at run time in ActionScript 3.0. You must first register this handler for the event using addEventListener ( 'close', callback_handler). 
 3250The onConnect event handler is not triggered automatically by Flash player in ActionScript 3.0. You must first register this handler for the event using addEventListener ( 'connect', callback_handler). 
 3252onXML is not triggered automatically by Flash Player in ActionScript 3.0. You must first register this handler for the event using addEventListener ( 'xml', callback_handler). 
 3253Use the property hasChildNodes instead. 
 3254The XMLEvent class is obsolete, and the xml event is no longer dispatched. Only the data event is dispatched during file loading. 
 3255The XMLDoc class has been renamed XMLDocument. 
 3256Use the Accessibility.active property instead. 
 3257Use ActivityEvent.ACTIVITY constant instead. 
 3258Use DisplayObjectContainer.parent.getChildIndex instead. See help for the DisplayObjectContainer class, which is extended by MovieClip. 
 3259Use DisplayObjectContainer.parent.setChildIndex instead. See help for the DisplayObjectContainer class, which is extended by MovieClip. 
 3260Use DisplayObjectContainer.getChildAt instead. See help for the DisplayObjectContainer class, which is extended by MovieClip. 
 3261Use DisplayObjectContainer.numChildren instead. DisplayObjectContainer.addChild always adds the new child to index DisplayObjectContainer.numChildren. 
 3262Use the ByteArray.bytesAvailable property instead. 
 3263Use the ByteArray.position property instead. 
 3264Use the ByteArray.position property instead. 
 3265Use the Camera.getCamera() method instead. 
 3266Use the Camera.currentFPS property instead. 
 3267Use the Camera.keyFrameInterval property instead. 
 3268Use the Camera.loopback property instead. 
 3269Use the ColorTransform.color property instead. 
 3270Use the ColorTransform.color property instead. 
 3271Use the Container.textSnapshot property instead. 
 3272Use the ContextMenu.clone() method instead. 
 3273Use the ContextMenu.forwardAndBack property instead. 
 3274Use the ContextMenuItem.clone() method instead. 
 3275Use the CustomActions.actionsList property instead. 
 3276Use the DataEvent.DATA constant instead. 
 3277Use the DisplayObject.scaleX property instead. 
 3278Use the DisplayObject.scaleX property instead. 
 3279Use the DisplayObject.scaleY property instead. 
 3280Use the DisplayObject.scaleY property instead. 
 3281Use the DisplayObject.mouseX property instead. 
 3282Use the DisplayObject.mouseX property instead. 
 3283Use the DisplayObject.mouseY property instead. 
 3284Use the DisplayObject.mouseY property instead. 
 3285This feature is no longer supported. 
 3286This feature is no longer supported. 
 3287Use the DisplayObject.name property instead. 
 3288Use the DisplayObject.parent property instead. 
 3289Use the DisplayObject.mask property instead. 
 3290Use the DisplayObject.visible property instead. 
 3291Use the DisplayObject.x property instead. 
 3292Use the DisplayObject.y property instead. 
 3293Use the DisplayObject.rotation property instead. 
 3294Use the DisplayObject.alpha property instead. 
 3295Use the DisplayObject.width property instead. 
 3296Use the DisplayObject.height property instead. 
 3297Use the ExternalInterface.available property instead. 
 3298Use the ErrorEvent.ERROR constant instead. 
 3299Use the Event.isDefaultPrevented property instead. 
 3300Use the Event.ACTIVATE constant instead. 
 3301Use the Event.ADDED constant instead. 
 3302Use the Event.CANCEL constant instead. 
 3303Use the Event.CHANGE constant instead. 
 3304Use the Event.CLOSE constant instead. 
 3305Use the Event.COMPLETE constant instead. 
 3306Use the Event.CONNECT constant instead. 
 3307Use the Event.DEACTIVATE constant instead. 
 3308Use the Event.ENTER_FRAME constant instead. 
 3309Use the Event.ID3 constant instead. 
 3310Use the Event.INIT constant instead. 
 3311Use the Event.MOUSE_LEAVE constant instead. 
 3312Use the Event.OPEN constant instead. 
 3313Use the Event.REMOVED constant instead. 
 3314Use the Event.RENDER constant instead. 
 3315Use the Event.RESIZE constant instead. 
 3316Use the Event.SCROLL constant instead. 
 3317Use the Event.SELECT constant instead. 
 3318Use the Event.SOUND_COMPLETE constant instead. 
 3319Use the Event.TAB_CHILDREN_CHANGE constant instead. 
 3320Use the Event.TAB_ENABLED_CHANGE constant instead. 
 3321Use the Event.TAB_INDEX_CHANGE constant instead. 
 3322Use the Event.UNLOAD constant instead. 
 3323Use the FocusEvent.FOCUS_IN constant instead. 
 3324Use the FocusEvent.FOCUS_OUT constant instead. 
 3325Use the FocusEvent.KEY_FOCUS_CHANGE constant instead. 
 3326Use the FocusEvent.MOUSE_FOCUS_CHANGE constant instead. 
 3327Use the Graphics.beginBitmapFill() method instead. 
 3328Use the BitmapFilter.quality property instead. 
 3329Use KeyboardEvent.charCode instead. 
 3330Use KeyboardEvent.keyCode instead. 
 3331For more information, see the KeyboardEvent class. 
 3332For more information, see KeyboardEvent.ctrlKey, KeyboardEvent.altKey, and KeyboardEvent.shiftKey. 
 3333Use the PAGE_DOWN constant instead. 
 3334Use the PAGE_UP constant instead. 
 3335Use the DELETE constant instead. 
 3336Use the CAPS_LOCK constant instead. 
 3337Use one of the NUMPAD_0 -> NUMPAD_9 constants instead. 
 3338Use the InteractiveObject.focusRect property instead. 
 3339Use the InteractiveObject.contextMenu property instead. 
 3340Use the KeyboardEvent.charCode property instead. 
 3341Use the KeyboardEvent.keyCode property instead. 
 3342Use the Loader.contentLoaderInfo property instead. 
 3343This feature is no longer supported. 
 3344This feature is no longer supported. 
 3345Use the LoaderInfo.loaderURL property instead. 
 3346Use the LocalConnection.domain property instead. 
 3347Use the MenuEvent.contextMenuOwner property instead. 
 3348Use the Microphone.getMicrophone() method instead. 
 3349If the MovieClip subclass name is A use var mc= new A(); addChild(mc). For more information, see the DisplayObjectContainer class. 
 3350Use var mc= new MovieClip(); addChild(mc). For more information, see the DisplayObjectContainer class. 
 3351Use var tf= new TextField(); addChild(mc). For more information, see the DisplayObjectContainer class. 
 3352Use Container.removeChild(childName). For more information, see the DisplayObjectContainer class. 
 3353Use var l = new Loader(); addChild(l); l.load(new URLRequest("your url"));. For more information, see the Loader and DisplayObjectContainer classes. 
 3354Use DisplayObjectContainer.removeChild(childName) instead. For more information, see the DisplayObjectContainer class. 
 3355Use DisplayObjectContainer.removeChild(childName) instead. For more information, see the DisplayObjectContainer class. 
 3356Use DisplayObjectContainer.parent.getChildIndex instead. For more information, see the DisplayObjectContainer class, is extended by MovieClip. 
 3357Use DisplayObjectContainer.parent.setChildIndex instead. For more information, see the DisplayObjectContainer class, which is extended by MovieClip. 
 3358Use DisplayObjectContainer.getChildAt instead. For more information, see the DisplayObjectContainer class, which is extended by MovieClip. 
 3359Use DisplayObjectContainer.numChildren instead. DisplayObjectContainer.addChild always adds the new child to index DisplayObjectContainer.numChildren. 
 3360For more information, see DisplayObject.addChild. 
 3361For more information, see LoaderInfo.bytesLoaded and the Loader class. 
 3362For more information, see LoaderInfo.bytesTotal and the Loader class. 
 3363For equivalent functionality, see flash.net.URLLoader. The flash.net package also contains package-level functions navigateToURL() and sendToURL(). 
 3364For more information, see LoaderInfo.url and the Loader class. 
 3365For more information, see LoaderInfo.url and the Loader class. 
 3366Use the MovieClip.mask property instead. 
 3367For more information, see LoaderInfo.swfVersion and the Loader class. 
 3368Use the MovieClip.currentFrame property instead. 
 3369Use the MovieClip.framesLoaded property instead. 
 3370Use the MovieClip.totalFrames property instead. 
 3371For more information, see displayObjectInstance.root. 
 3372For more information, see displayObjectInstance.root. 
 3373Use the static propery flash.media.SoundMixer.bufferTime instead. 
 3374For more information, see the Graphics class. 
 3375For more information, see the Graphics class. 
 3376For more information, see the Graphics class. 
 3377For more information, see the Graphics class. 
 3378For more information, see the Graphics class. 
 3379For more information, see the Graphics class. 
 3380For more information, see the Graphics class. 
 3381For more information, see the Graphics class. 
 3382For more information, see the Graphics class. 
 3383For more information, see the Graphics class. 
 3384For more information, see the Graphics class. 
 3385For more information, see the Graphics class. 
 3386For more information, see the Graphics class. 
 3387For more information, see the Graphics class. 
 3388Use the NetStream.bufferTime property instead. 
 3389Use the NetStream.currentFPS property instead. 
 3390Use the NetStream.videoCodec property instead. 
 3391Use the NetStream.audioCodec property instead. 
 3392Use the ProductManager.isInstalled property instead. 
 3393Use the ProductManager.installedVersion property instead. 
 3394Use the ProductManager.isRunning property instead. 
 3395Use the Point.add() method instead. 
 3396Use the Proxy.deleteDescendants property instead. 
 3397Use the heapDump() method instead. 
 3398Use the ProgressEvent.bytesLoaded property instead. 
 3399Use the ProgressEvent.bytesTotal property instead. 
 3400Use the Rectangle.isEmpty property instead. 
 3401Use the SoundTransform.pan property instead. 
 3402Use the Sockect.bytesAvailable property instead. 
 3403Use the SharedObject.size property instead. 
 3404Use the SharedObject.fps property instead. 
 3405This is no longer supported. 
 3406Use the Sprite.constructChildren() method instead. 
 3407Use the Sprite.dropTarget property instead. 
 3408Use the Stage.focus property instead. 
 3409Use the Stage.focus property instead. 
 3411Use the Stage.showDefaultContextMenu property instead. 
 3412Use the StyleSheet.styleNames property instead. 
 3413Use an instance of URLLoader to load the StyleSheet data, and then pass the loaders data to the StyleSheet.parseCSS method. For more information, see the URLLoader and EventDispatcher classes. 
 3414Use an instance of URLLoader to load the StyleSheet data, and then pass the loaders data to the StyleSheet.parseCSS method. For more information, see the URLLoader and EventDispatcher classes. 
 3415Use an instance of URLLoader to load the StyleSheet data, and then pass the loaders data to the StyleSheet.parseCSS method. For more information, see the URLLoader and EventDispatcher classes. 
 3416Use an instance of URLLoader to load the StyleSheet data, and then pass the loaders data to the StyleSheet.parseCSS method. For more information, see the URLLoader and EventDispatcher classes. 
 3417Use an instance of URLLoader to load the StyleSheet data, and then pass the loaders data to the StyleSheet.parseCSS method. For more information, see the URLLoader and EventDispatcher classes. 
 3418Use the IME.enabled property instead. 
 3419Use the IME.enabled property instead. 
 3420Use the IME.instance property instead. 
 3421Use the IME.conversionMode property instead. 
 3422Use the IME.conversionMode property instead. 
 3423Use the System.vmVersion property instead. 
 3424Use the SWFLoaderInfo.swfVersion property instead. 
 3425Use the SWFLoaderInfo.actionScriptVersion property instead. 
 3426Use the TextField.defaultTextFormat property instead. 
 3427Use the TextField.defaultTextFormat property instead. 
 3428Use DisplayObjectContainer.parent.getChildIndex instead. For more information, see the DisplayObjectContainer class, which MovieClip extends. 
 3429Use DisplayObjectContainer.parent.setChildIndex instead. For more information, see the DisplayObjectContainer class, which MovieClip extends. 
 3430Use DisplayObjectContainer.getChildAt instead. For more information, see the DisplayObjectContainer class, which MovieClip extends. 
 3431Use DisplayObjectContainer.numChildren instead. DisplayObjectContainer.addChild always adds the new child to index DisplayObjectContainer.numChildren. 
 3432Use the TextField.replaceSelectedText() method instead. 
 3433Use the TextField.getLineIndexOfChar() method instead. 
 3434Use the TextField.selectionBeginIndex property instead. 
 3435Use the TextField.selectionEndIndex property instead. 
 3436Use the TextField.caretIndex property instead. 
 3437Use the Font.enumerateFonts() method instead. 
 3438Use the TextField.maxScrollV property instead. 
 3439Use the TextField.scrollH property instead. 
 3440Use the TextField.maxScrollH property instead. 
 3441Use the TextField.defaultTextFormat property instead. 
 3442Create a temporary TextField and use TextField.getLineMetrics instead. 
 3443Use the TextSnapshot.charCount property instead. 
 3444Use the navigateToURL() method in the flash.net package instead. 
 3445Use the sendToURL() method in the flash.net package instead. 
 3446Use the URLLoader.dataFormat property instead. 
 3447Use the URLStream.bytesAvailable property instead. 
 3448This property is no longer supported. 
 3449Use the URLRequest.applicationDomain property instead. 
 3450To add request headers, set the URLRequest.requestHeaders property to an array of URLRequestHeader objects. 
 3451Use an instance of URLLoader to load the XML file, then pass the URLLoaders data to the XMLDocuments constructor. For more information, see the URLLoader and EventDispatcher classes. 
 3452Use the sendToURL() method in the flash.net package instead. 
 3453Set a URLRequest object postData property and use it with a URLLoader object to load the XML file. Pass the URLLoaders data to the XMLDocuments constructor. For more information, see the URLLoader, URLRequest and EventDispatcher classes. 
 3454Use an instance of URLLoader to load the XML file, then pass the URLLoaders data to the XMLDocuments constructor. For more information, see the URLLoader and EventDispatcher classes. 
 3455To add request headers, set the URLRequest.requestHeaders property to an array of URLRequestHeader objects. 
 3456For more information, see URLLoader.bytesLoaded and the URLLoader class. 
 3457For more information, see URLLoader.bytesTotal and the URLLoader class. 
 3458Use an instance of URLLoader to load the XML file, then pass the loaders data to the StyleSheet.parseCSS method. For more information, see the URLLoader and EventDispatcher classes. 
 3459Use the URLRequest.contentType property instead. 
 3460Check for the possible exceptions thrown by the XMLDocument constructor or the XMLDocument.parseXML method instead. For more information, see XMLDocument. 
 3461The Button class has been renamed SimpleButton. 
 3462The Container class has been renamed DisplayObjectContainer. 
 3463The Image class has been renamed BitmapData. 
 3464The ImageFilter class has been renamed BitmapFilter. 
 3465The ImageSprite class has been renamed Bitmap. 
 3466The ImageLoaderInfo class has been renamed BitmapLoaderInfo. 
 3467The ImeEvent class has been renamed IMEEvent. 
 3468The Key class has been renamed Keyboard. 
 3469The LineMetrics class has been renamed TextLineMetrics. 
 3470For more information, see the URLVariables class, the URLRequest.urlVariables and URLRequest.postData properties, and the URLLoader.dataFormat property. 
 3471The MenuEvent class has been renamed ContextMenuEvent. 
 3472The SystemCapabilities class has been renamed Capabilities. 
 3473Use the TextField.getLineMetrics property instead. 
 3475The Button class has been renamed SimpleButton. 
 3476The Container class has been renamed DisplayObjectContainer. 
 3477The Image class has been renamed BitmapData. 
 3478The ImageFilter class has been renamed BitmapFilter. 
 3479The ImageSprite class has been renamed Bitmap. 
 3480The ImageLoaderInfo class has been renamed BitmapLoaderInfo. 
 3481The ImeEvent class has been renamed IMEEvent. 
 3482The Key class has been renamed Keyboard. 
 3483The LineMetrics class has been renamed TextLineMetrics. 
 3484For more information, see the URLVariables class, the URLRequest.urlVariables and URLRequest.postData properties, and the URLLoader.dataFormat property. 
 3485The MenuEvent class has been renamed ContextMenuEvent. 
 3486The SystemCapabilities class has been renamed Capabilities. 
 3487Use the TextField.getLineMetrics property instead. 
 3488For more information, see help for the Proxy class, which offers similar functionality. 
 3489Use the XMLUI.getProperty method instead. 
 3490Use the XMLUI.setProperty method instead. 
 3491Use the DisplayObject.accessibilityProperties property instead. 
 3492Use the DisplayObject.scale9Grid property instead. 
 3493Use the Graphics.drawOval method instead. 
 3494Use the NetConnection.connected property instead. 
 3495Use the Socket.connected property instead. 
 3496Use the URLStream.connected property instead. 
 3497Use the SyncEvent.changeList property instead. 
 3498Use the TextField.scrollV property instead. 
 3499Use the TextField.bottomScrollV property instead. 
 3500Use the BitmapDataChannel.RED constant instead. 
 3501Use the BitmapDataChannel.GREEN constant instead. 
 3502Use the BitmapDataChannel.BLUE constant instead. 
 3503Use the BitmapDataChannel.ALPHA constant instead. 
 3504Use the is operator instead. 
 3505Use the flash.system.Security.showSettings method instead. 
 3506Use the System.useCodePage property instead. 
 3507Use the flash.events.EventDispatcher class instead. 
 3508Use the static propery flash.media.SoundMixer.bufferTime instead. 
 3509Create a new instance of the bitmap library symbol class, i.e. new myBitmapName(), instead. 
 3510For more information, see Loader.load(). 
 3511The MovieClipLoader class has been replaced by the flash.display.Loader class. 
 3512The MovieClipLoader class has been replaced by the flash.display.Loader class. 
 3513For more information, see addEventListener(eventName, listener, useCapture, priority ). 
 3514For more information, see removeEventListener(eventName, listener, useCapture). 
 3515Use the flash.system.IMEConversionMode.ALPHANUMERIC_FULL constant instead. 
 3516Use the flash.system.IMEConversionMode.ALPHANUMERIC_HALF constant instead. 
 3517Use the flash.system.IMEConversionMode.CHINESE constant instead. 
 3518Use the flash.system.IMEConversionMode.JAPANESE_HIRAGANA constant instead. 
 3519Use the flash.system.IMEConversionMode.JAPANESE_KATAKANA_FULL constant instead. 
 3520Use the flash.system.IMEConversionMode.JAPANESE_KATAKANA_HALF constant instead. 
 3521Use the flash.system.IMEConversionMode.KOREAN constant instead. 
 3522Use the flash.system.IMEConversionMode.UNKNOWN constant instead. 
 3523For more information, see addEventListener ( eventName, listener, useCapture, priority ). 
 3524For more information, see removeEventListener ( eventName, listener, useCapture). 
 3527The onCancel event handler is not triggered automatically by Flash Player at run time in ActionScript 3.0. You must first register this handler for the event using addEventListener ( cancel, onCancel). 
 3528There is no direct replacement. The willTrigger() method can be used to tell if any listeners have been registered. 
 3529The onIMEComposition event handler is not triggered automatically by Flash Player at run time in ActionScript 3.0. You must first register this handler for the event using addEventListener ( imeComposition, handlerName). 
 3530For more information, see LoaderInfo.url and the Loader class. 
 3531Use the getFullYear() method instead. 
 3532Use the setFullYear() method instead. 
 3533Use the getUTCFullYear() method instead. 
 3534Use the rate property instead. 
 3535The Selection class has been removed. For more information, see the addEventListener method of the class you want selection information from. 
 3536The Selection class has been removed. For more information, see the addEventListener method of the class you want selection information from. 
 3537Use the gain property instead. 
 3538Color values can be assigned directly using the ColorTransform class constructor or properties. 
 3539Color values can be assigned directly using the ColorTransform class constructor or properties. 
 3540See help for the focus related properties of the flash.display.InteractiveObject class. 
 3541See help for the flash.display.Graphics.beginBitmapFill method. 
 3542See help for the flash.display.DisplayObject.hitTestObject() method. 
 3543See help for the addChild() method. 
 3544Use the load() method instead. 
 3545Use flash.media.SoundChannel.leftPeak and flash.media.SoundChannel.rightPeak to monitor and control the amplitude of a sound channel. 
 3546Use the soundTransform property instead. 
 3547Use the SoundTransform.pan property instead. 
 3548Use the SoundTransform.pan property instead. 
 3549Use the bytesLoaded property instead. 
 3550Use the bytesTotal property instead. 
 3551Inefficient use of += on a TextField. 
 3552Appending text to a TextField using += is many times slower than using the TextField.appendText() method. See this language reference for the appendText() method of the TextField class for details on this significant text optimization.  
 3553Possible missing parentheses. 
 3554Function value used where type %s was expected. Possibly the parentheses () are missing after this function reference. You can use functions themselves as values in ActionScript. The code in question is using a value of type Function where a type other than Function, Object, or * is expected. Usually, this indicates a typo where the parentheses () were omitted after the function name.  
 3555Use of the instanceof operator. 
 3556The instanceof operator is deprecated, use the is operator instead. 
 3557The allowDomain() event handler is now a standard method, rather than an event callback. For more information, see the new LocalConnection.allowDomain method. 
 3558The allowInsecureDomain() event handler is now a standard method, rather than an event callback. For more information, see the new LocalConnection.allowInsecureDomain method. 
 3559The global call() method is no longer supported. 
 3560The Color class has been removed. Use the flash.geom.ColorTransform class for equivalent functionality. 
 3561The Color class has been removed. Use the flash.geom.ColorTransform class for equivalent functionality. 
 3562ActionScript 3.0 SWF files always use exact domain matching rules. 
 3563The capabilities class has been renamed Capabilities. 
 3564The capabilities class has been renamed Capabilities. 
 3565For more information, see addEventListener(eventName, listener, useCapture, priority ). 
 3566For more information, see removeEventListener(eventName, listener, useCapture). 
 3567The onComplete event handler is not triggered automatically by Flash Player at run time in ActionScript 3.0. You must first register this handler for the event using addEventListener ('complete', callback_handler). 
 3568The onHTTPError event handler is not triggered automatically by Flash Player at run time in ActionScript 3.0. You must first register this handler for the event using addEventListener ('httpError', callback_handler). 
 3569The onIOError event handler is not triggered automatically by Flash Player at run time in ActionScript 3.0. You must first register this handler for the event using addEventListener ('ioError', callback_handler). 
 3570The onProgress event handler is not triggered automatically by Flash Player at run time in ActionScript 3.0. You must first register this handler for the event using addEventListener ('progress', callback_handler). 
 3571The onSecurityError event handler is not triggered automatically by Flash Player at run time in ActionScript 3.0. You must first register this handler for the event using addEventListener ('securityError', callback_handler). 
 3572The onOpen event handler is not triggered automatically by Flash Player at run time in ActionScript 3.0. You must first register this handler for the event using addEventListener ('open', callback_handler). 
 3573Possible usage of the ActionScript 2.0 XML class. 
 3574Migration issue: The ActionScript 2.0 XML class has been renamed XMLDocument. This is a code migration warning. XML is a different class in ActionScript 3.0 than it was in ActionScript 2.0. In ActionScript 3.0, the XMLDocument class is the equivalent of the XML class in ActionScript 2.0. The ActionScript 3.0 XML class offers improved functionality with an easier and more powerful API. See XML in the ActionScript Language Reference for additional details.  
 3575Invalid Date cast operation. 
 3576Date(x) behaves the same as new Date().toString(). To cast a value to type Date use "x as Date" instead of Date(x). 
 3581Importing a package by the same name as the current class will hide that class identifier in this scope. 
 3582Importing a package by the same name as the current class will hide that class identifier in this scope. 
 3583More than one argument has the same name. 
 3584More than one argument named '%s' specified. References to that argument will always resolve to the last one. 
 3585Use the Rectangle.containsRect method instead. 
 3586This functionality has been removed. 
 3587This functionality has been replaced by the flash.system.Capabilities.version property. 
 3588This functionality has been replaced by the flash.display.MovieClip.framesLoaded property. 
 3589The _global property has been removed. For equivalent functionality, use a static member of a class. 
 3590Non-Boolean value used where a Boolean value was expected. 
 3591%s used where a Boolean value was expected. The expression will be type coerced to Boolean. 
 3592Unknown property. 
 3593%s is not a recognized property of the dynamic class %s. The strict compilation mode does not check for undefined properties on instances of dynamic classes. The types Date, RegExp, and Error are dynamic for backwards compatibility with ECMAScript. This warning finds usages of undefined properties on instances of those classes. A common problem is attempting to get or set a non-existent year property on a Date value. The correct property name is fullYear.  
 3594Unknown method. 
 3595%s is not a recognized method of the dynamic class %s. The strict compilation mode does not check for undefined methods on instances of dynamic classes. The types Date, RegExp, and Error are dynamic for backwards compatibility with ECMAScript. This warning finds usages of undefined methods on instances of those classes.  
 3596Duplicate variable definition. 
 3597Duplicate variable definition. The compiler has detected a duplicate definition for a variable. This can lead to unexpected results. ActionScript does not support block level scoping of variables. All variables defined within a function body exist within the same scope, even if they are defined within an if statement, while statement, for statement, and so on: for example, the following code redeclares the variable x twice:

function test() {
	var x:Number = 10;
	if (true) {
	    for (var x=0; x < 5; x++)  // warning here, this is the second defintion of x
	    trace(x);
	}
	trace(x); // 5, not 10.  The last value set by the for loop above is the current value of x
}
 
 3598Definition name is the same as an imported package name. Unqualified references to that name will resolve to the package and not the definition. 
 3599Definition name is the same as an imported package name. Unqualified references to that name will resolve to the package and not the definition. If a definition is named the same as a package that is in scope, then any unqualified references to that name will resolve to the package instead of the definition. This can result in unexpected errors when attempting to reference the variable. Any references to the definition need to be qualified to resolve to the definition and not the package.  
 3600Possible attempt to delete a fixed property. 
 3601The declared property %s cannot be deleted. To free associated memory, set its value to null. Delete removes dynamically defined properties from an object. Declared properties of a class can not be deleted, the operation merely fails silently. To free memory associated with this variable, set its value to null instead. 
 3602Use of deprecated definition. 
 3603'%s' has been deprecated. This definition is deprecated and may be removed in the future. 
 3604Use of deprecated definition. 
 3605%s  
 3606Use of deprecated definition. 
 3607'%s' has been deprecated. Please use '%s'.  
 3608Use of deprecated definition. 
 3609'%s' has been deprecated since %s. Please use '%s'.  
 3610Use of deprecated definition. 
 3611'%s' has been deprecated since %s.